Downloads Β· 30 days
55
40% of all-time downloads
hotdogs/Agents-A1-4B-kimi-Preview
Agents-A1-4B-kimi-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-kimi-Preview</h1
Downloads Β· 30 days
55
40% of all-time downloads
All-time downloads
137
Public
Parameters
4.2B
25.3 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 on Kimi K3 coding and debugging traces. Specializes in coding agent behavior, debugging, and step-by-step tool-use.
| Capability | Description |
|---|---|
| π» Coding Agent | Trained on real Kimi K3 coding traces β planning, debugging, building |
| π§ Step-by-step Reasoning | Autonomous agent-style reasoning |
| π§ Tool Calling | Hermes/Qwen function-calling format |
| π¬ Multi-turn | 61% multi-turn conversations |
| π Thai + English | Native bilingual support |
| π Multi-language | Python, C, C++, Go, Java, Rust, Bash, and more |
| β‘ 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-kimi-Preview",
torch_dtype="auto",
device_map="auto",
trust_remote_code=True
)
tokenizer = AutoTokenizer.from_pretrained("hotdogs/Agents-A1-4B-kimi-Preview")
messages = [{"role": "user", "content": "Write a Python function to sort a list"}]
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 quantized version coming soon.
| File | Size | Description |
|---|---|---|
model.safetensors | 8.41 GB | Full BF16 precision (Transformers) |
| Parameter | Value |
|---|---|
| Base | InternScience/Agents-A1-4B |
| Parameters | ~4.29B |
| Hidden Size | 2,560 |
| Attention | Linear + Standard hybrid (8 full-attn layers) |
| Context | 4,096 tokens (trained) |
| Precision | BF16 |
| Format | ChatML (Jinja2 template) |
| Vocab | 248,320 tokens |
InternScience/Agents-A1-4B β A 4B VLM based on Qwen3.5 architecture with hybrid linear/full attention. Fine-tuned on the text decoder only.
greghavens/kimi-k3-coding-and-debugging-traces β 4,928 high-quality coding agent traces from Kimi K3, featuring:
Preprocessed: 3,389 clean rows after deduplication and filtering (3,219 train / 170 val).
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Training Pipeline β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β Base Model LoRA Adapter β
β (Agents-A1-4B) (r=64, Ξ±=128) β
β β β β
β βββββββββββββ¬βββββββββββββββββββ β
β β β
β Unsloth FastLanguageModel β
β 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 β β
β β β’ ~8.5 hours on 4Γ3060 β β
β ββββββββββββ¬ββββββββββββββββ β
β β β
β βΌ β
β Final Model (scale=0.4) β
β (LoRA merged into text decoder) β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
The LoRA was tested at multiple merge scales to find the optimal balance between preserving base knowledge and applying the fine-tuned behavior:
| Merge Scale | Max Weight Diff | Safety |
|---|---|---|
| 0.3 | 0.007812 | Very safe |
| 0.6 | 0.015625 | β Looping |
| 0.4 | 0.010498 | Optimal β |
Max weight diff measures the largest change in any single weight tensor compared to the base model. Values below 0.02 are considered safe β the model retains base knowledge while incorporating new behaviors. The final merge uses scale=0.4 for a good balance.
| Component | Spec |
|---|---|
| GPUs | 4Γ NVIDIA RTX 3060 12GB |
| Total VRAM | 48 GB |
| Training Time | ~8 hours 32 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 |
| Merge Scale | 0.4 |
| Metric | Value |
|---|---|
| Original rows | 4,928 |
| Cleaned rows | 3,389 |
| Train / Val | 3,219 / 170 |
| Multi-turn rate | 61.3% |
| Mean tokens | 1,055 |
| Max tokens | 3,579 |
| Categories | 156 |
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