hotdogs/Agents-A1-4B-Fable-Preview
<h1 align="center">๐ค Agents-A1-4B-Fable-Preview</h1>
<p align="center"> <b>4B Agent Model (Text-only) โ SFT Fine-tuned ยท Fable Reasoning ยท Tool-Calling</b> </p>
<p align="center"> <img src="https://img.shields.io/badge/license-AGPL--3.0-red"> <img src="https://img.shields.io/badge/Agents--A1-4B-blue"> <img src="https://img.shields.io/badge/SFT-LoRA-brightgreen"> <img src="https://img.shields.io/badge/Fable-Reasoning-orange"> <img src="https://img.shields.io/badge/Preview-v0.1-yellow"> </p>
<br>
Preview release โ Fine-tuned from InternScience/Agents-A1-4B (Qwen3.5-based VLM, text decoder only) on high-quality Fable-style reasoning traces. Features agentic reasoning with think blocks, tool-use patterns, and multi-turn conversation support.
Evaluation
SWE-bench Verified (subset)
Note: This is evaluated on a 200-instance subset (first 200 by dataset index, not a stratified random sample), not the full 500-instance SWE-bench Verified set. Results may differ from a full-set evaluation. Full results and prediction files available at [link if you publish them].
โจ Key Features
๐ Usage
Python (Transformers)
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"hotdogs/Agents-A1-4B-Fable-Preview",
torch_dtype="auto",
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("hotdogs/Agents-A1-4B-Fable-Preview")
messages = [{"role": "user", "content": "Hello"}]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, return_tensors="pt")
outputs = model.generate(inputs, max_new_tokens=256, temperature=0.6)
print(tokenizer.decode(outputs[0]))GGUF (llama.cpp)
For GGUF quantized version with vision support (via mmproj), see: ๐ hotdogs/Agents-A1-4B-Fable-Preview-GGUF
๐ฆ Downloads
๐งฌ Architecture
Note: This is the text decoder only (Qwen3_5ForCausalLM). For vision capabilities, use the GGUF version with mmproj from the base model.
๐๏ธ Training Details
Base Model
**InternScience/Agents-A1-4B** โ A 4B VLM based on Qwen3.5 architecture with hybrid linear/full attention. We fine-tuned the text decoder only.
Dataset
**hotdogs/uka-fable-reasoning/perfect-v1** โ 3,500 high-quality multi-turn agent reasoning traces, featuring:
- Fable-5 style think blocks
- Tool-use trajectories
- Multi-turn conversations
- System-prompt guided interactions
- Quality-controlled (QC passed)
Training Pipeline
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Training Pipeline โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ Base Model LoRA Adapter โ
โ (Agents-A1-4B VLM) (r=64, ฮฑ=128) โ
โ โ โ โ
โ โโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ โ
โ โ โ
โ Unsloth FastLanguageModel โ
โ (text decoder only) โ
โ device_map="auto" ยท 4ร RTX 3060 12GB โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ Custom SFTDataset โ โ
โ โ โข apply_chat_template() โ โ
โ โ โข Tokenize (4096 max) โ โ
โ โ โข Mask prompt tokens โ โ
โ โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโ โ
โ โ HF Trainer (no SFTTr.) โ โ
โ โ โข BF16 ยท LR=1e-4 โ โ
โ โ โข max_grad_norm=1.0 โ โ
โ โ โข 3 epochs ยท batch=1 โ โ
โ โ โข ~9 hours on 4ร3060 โ โ
โ โโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ โ
โ โ โ
โ โผ โ
โ Final Model (scale=0.35) โ
โ (LoRA merged into text decoder) โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโHardware
Hyperparameters
โ What This Model Excels At
- Agent tasks โ Tool calling, planning, multi-step reasoning
- Reasoning โ Think-block style chain-of-thought
- Coding โ Python, shell scripts, system tasks
- Multi-turn โ Full conversation trajectories
- Thai + English โ Native bilingual capability
โ ๏ธ Limitations
- 4B model โ Smaller than 27B/72B models, may not match their depth
- Preview โ Early release, more training data planned
- Text-only โ This release is the text decoder only. For vision, use the GGUF version with mmproj.
๐ Support / เนเธเธฃเธเธชเธเธฑเธเธชเธเธธเธ
If you find this model useful, please consider supporting my work! เธซเธฒเธเธเธธเธเธเธดเธเธงเนเธฒเนเธกเนเธเธฅเธเธตเนเธกเธตเธเธฃเธฐเนเธขเธเธเน เธเธฃเธธเธเธฒเธชเธเธฑเธเธชเธเธธเธเธเธฅเธเธฒเธเธเธญเธเธเธฑเธเธเนเธงเธขเธเธฐเธเธฐ! ๐
<p align="center"> <img src="https://huggingface.co/hotdogs/Qwen35B-Agent-R2/raw/main/donate.webp" alt="Bitcoin QR โ Donate" width="256"> </p>
โฟ Bitcoin โ BTC:
bc1qf27cyk3vmugcdyv9xdtuv5jwz37863crpj5c9vThank you for your support! ๐โจ เธเธญเธเธเธธเธเธกเธฒเธเน เธชเธณเธซเธฃเธฑเธเธเธฒเธฃเธชเธเธฑเธเธชเธเธธเธเธเนเธฒ! ๐๐ค
๐ Acknowledgements / เธเธญเธเธเธธเธ
- [InternScience](https://huggingface.co/InternScience) โ For the Agents-A1-4B base model
- [Qwen Team (Alibaba)](https://qwenlm.github.io) โ For the Qwen3.5 architecture
- [Unsloth AI](https://unsloth.ai) โ For the training optimizations
- All dataset contributors and the open-source AI community โค๏ธ
Built with โค๏ธ by UKA โ 18-year-old coder & cybersecurity expert
