Instructions to use hotdogs/Agents-A1-4B-Fable-Preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hotdogs/Agents-A1-4B-Fable-Preview with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="hotdogs/Agents-A1-4B-Fable-Preview") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("hotdogs/Agents-A1-4B-Fable-Preview") model = AutoModelForCausalLM.from_pretrained("hotdogs/Agents-A1-4B-Fable-Preview", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hotdogs/Agents-A1-4B-Fable-Preview with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hotdogs/Agents-A1-4B-Fable-Preview" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hotdogs/Agents-A1-4B-Fable-Preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hotdogs/Agents-A1-4B-Fable-Preview
- SGLang
How to use hotdogs/Agents-A1-4B-Fable-Preview with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "hotdogs/Agents-A1-4B-Fable-Preview" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hotdogs/Agents-A1-4B-Fable-Preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "hotdogs/Agents-A1-4B-Fable-Preview" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hotdogs/Agents-A1-4B-Fable-Preview", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use hotdogs/Agents-A1-4B-Fable-Preview with Docker Model Runner:
docker model run hf.co/hotdogs/Agents-A1-4B-Fable-Preview
🤖 Agents-A1-4B-Fable-Preview
4B Agent Model (Text-only) — SFT Fine-tuned · Fable Reasoning · Tool-Calling
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.
✨ Key Features
| 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) |
🚀 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
| 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 |
🧬 Architecture
| 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.
🏋️ 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
| Component | Spec |
|---|---|
| GPUs | 4× NVIDIA RTX 3060 12GB |
| Total VRAM | 48 GB |
| Training Time | ~9 hours 20 min |
| Framework | Unsloth + HuggingFace Trainer |
Hyperparameters
| 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 |
✅ 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!
หากคุณคิดว่าโมเดลนี้มีประโยชน์ กรุณาสนับสนุนผลงานของฉันด้วยนะคะ! 🙏
₿ Bitcoin — BTC:
bc1qf27cyk3vmugcdyv9xdtuv5jwz37863crpj5c9v
Thank you for your support! 🙏✨
ขอบคุณมากๆ สำหรับการสนับสนุนค่า! 💖🤗
🙏 Acknowledgements / ขอบคุณ
- InternScience — For the Agents-A1-4B base model
- Qwen Team (Alibaba) — For the Qwen3.5 architecture
- 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
- Downloads last month
- 105
Model tree for hotdogs/Agents-A1-4B-Fable-Preview
Base model
InternScience/Agents-A1-4B