Downloads ยท 30 days
39
17% of all-time downloads
hotdogs/Agents-A1-4B-Fable-Preview
Agents-A1-4B-Fable-Preview is a text generation model from hotdogs. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as agpl-3.0.
<h1 align="center"๐ค Agents-A1-4B-Fable-Preview</h1
Downloads ยท 30 days
39
17% of all-time downloads
All-time downloads
232
Public
Parameters
4.2B
16.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.4 GB ยท 100%
From the Hugging Face model README
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.
| Metric | Value |
|---|---|
| Resolve rate | 49.5% (99/200) |
| Instances evaluated | 200 / 500 (first 200, index-ordered slice) |
| Scaffold | mini-swe-agent v2.4.6 |
| Agent config | step_limit=250, cost_limit=$3.0, temperature=0.0 |
| Inference | llama.cpp, F16, ctx=131072 |
| Empty patches | 13/200 (6.5%) |
| Date | 2026-08-02 |
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].
| Capability | Description |
|---|---|
| ๐ง Fable Reasoning | Step-by-step CoT with <think> blocks |
| ๐ง Tool Calling | Hermes/Qwen function-calling format |
| ๐ฌ Multi-turn | Trained on full agent trajectories |
| ๐ Thai + English | Native bilingual support |
| ๐ป Code & Shell | Python, bash, system tasks |
| โก Fast Inference | 4B params โ runs on consumer GPUs (6-8 GB VRAM) |
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]))
For GGUF quantized version with vision support (via mmproj), see: ๐ hotdogs/Agents-A1-4B-Fable-Preview-GGUF
| File | Size | Quant | Description |
|---|---|---|---|
Agents-A1-4B-Fable-Preview (Safetensors) | 8.41 GB | BF16 | Full precision (Transformers) |
| GGUF versions | 2.6โ8.4 GB | IQ4_NL to f16 | See GGUF repo |
| Parameter | Value |
|---|---|
| Base | InternScience/Agents-A1-4B |
| Parameters | ~4.29B |
| Hidden Size | 2,560 |
| Attention | Linear + Standard hybrid (8 full-attn layers) |
| Context | 8,192 tokens (trained on 4,096) |
| Precision | BF16 / GGUF quantized |
| Format | ChatML (Jinja2 template) |
| Vocab | 248,320 tokens |
Note: This is the text decoder only (Qwen3_5ForCausalLM). For vision capabilities, use the GGUF version with mmproj from the 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.
hotdogs/uka-fable-reasoning/perfect-v1 โ 3,500 high-quality multi-turn agent reasoning traces, featuring:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 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) โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Component | Spec |
|---|---|
| GPUs | 4ร NVIDIA RTX 3060 12GB |
| Total VRAM | 48 GB |
| Training Time | ~9 hours 20 min |
| Framework | Unsloth + HuggingFace Trainer |
| Parameter | Value |
|---|---|
| LoRA Rank | 64 |
| LoRA Alpha | 128 |
| Learning Rate | 1e-4 |
| Scheduler | Cosine (warmup 3%) |
| Optimizer | AdamW 8-bit |
| Max Grad Norm | 1.0 |
| Sequence Length | 4,096 |
| Batch Size | 1 per GPU (eff. 4) |
| Epochs | 3 |
| Gradient Checkpointing | โ |
| Precision | BF16 |
If you find this model useful, please consider supporting my work!
เธซเธฒเธเธเธธเธเธเธดเธเธงเนเธฒเนเธกเนเธเธฅเธเธตเนเธกเธตเธเธฃเธฐเนเธขเธเธเน เธเธฃเธธเธเธฒเธชเธเธฑเธเธชเธเธธเธเธเธฅเธเธฒเธเธเธญเธเธเธฑเธเธเนเธงเธขเธเธฐเธเธฐ! ๐
bc1qf27cyk3vmugcdyv9xdtuv5jwz37863crpj5c9v
Thank you for your support! ๐โจ
เธเธญเธเธเธธเธเธกเธฒเธเน เธชเธณเธซเธฃเธฑเธเธเธฒเธฃเธชเธเธฑเธเธชเธเธธเธเธเนเธฒ! ๐๐ค
Built with โค๏ธ by UKA โ 18-year-old coder & cybersecurity expert