CoolFace
Modelpublic

hotdogs/Agents-A1-4B-Fable-Preview

sourceHugging Faceagpl-3.0updated 2mo agoView on Hugging Face
0likes38downloads
Model Card

<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)

MetricValue
Resolve rate49.5% (99/200)
Instances evaluated200 / 500 (first 200, index-ordered slice)
Scaffoldmini-swe-agent v2.4.6
Agent configsteplimit=250, costlimit=$3.0, temperature=0.0
Inferencellama.cpp, F16, ctx=131072
Empty patches13/200 (6.5%)
Date2026-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].

โœจ Key Features

CapabilityDescription
๐Ÿง  Fable ReasoningStep-by-step CoT with <think> blocks
๐Ÿ”ง Tool CallingHermes/Qwen function-calling format
๐Ÿ’ฌ Multi-turnTrained on full agent trajectories
๐ŸŒ Thai + EnglishNative bilingual support
๐Ÿ’ป Code & ShellPython, bash, system tasks
โšก Fast Inference4B params โ€” runs on consumer GPUs (6-8 GB VRAM)

๐Ÿš€ Usage

Python (Transformers)

python
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

FileSizeQuantDescription
Agents-A1-4B-Fable-Preview (Safetensors)8.41 GBBF16Full precision (Transformers)
GGUF versions2.6โ€“8.4 GBIQ4_NL to f16See GGUF repo

๐Ÿงฌ Architecture

ParameterValue
BaseInternScience/Agents-A1-4B
Parameters~4.29B
Hidden Size2,560
AttentionLinear + Standard hybrid (8 full-attn layers)
Context8,192 tokens (trained on 4,096)
PrecisionBF16 / GGUF quantized
FormatChatML (Jinja2 template)
Vocab248,320 tokens
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

ComponentSpec
GPUs4ร— NVIDIA RTX 3060 12GB
Total VRAM48 GB
Training Time~9 hours 20 min
FrameworkUnsloth + HuggingFace Trainer

Hyperparameters

ParameterValue
LoRA Rank64
LoRA Alpha128
Learning Rate1e-4
SchedulerCosine (warmup 3%)
OptimizerAdamW 8-bit
Max Grad Norm1.0
Sequence Length4,096
Batch Size1 per GPU (eff. 4)
Epochs3
Gradient Checkpointingโœ…
PrecisionBF16

โœ… 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:

bc1qf27cyk3vmugcdyv9xdtuv5jwz37863crpj5c9v

Thank 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