Downloads · 30 days
95
25% of all-time downloads
seanpoyner/smolcode-coder-rust-1.5b-tools
smolcode-coder-rust-1.5b-tools is a text generation model from seanpoyner. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
A LoRA fine-tune of Qwen2.5-Coder-1.5B-Instruct that teaches the model to emit native <toolcall function calls, so a ≤2B coder model can drive an agentic coding loop.
Downloads · 30 days
95
25% of all-time downloads
All-time downloads
385
Public
Parameters
1.8B
4.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.6 GB · 76%
From the Hugging Face model README
A LoRA fine-tune of Qwen2.5-Coder-1.5B-Instruct that teaches the model to emit
native <tool_call> function calls, so a ≤2B coder model can drive an agentic
coding loop.
Built for smolcode — an SLM-optimized agentic coding assistant — for the Hugging Face Build Small hackathon.
Out of the box, small Qwen-Coder models describe tool calls as plain-text JSON
instead of emitting the native <tool_call> format that runtimes (Ollama,
llama.cpp) parse — which breaks agentic tool-use loops. This fine-tune closes
that gap on a tiny (≤2B, Tiny-Titan-class) model.
apply_chat_template(tools=...) used at inference — so the training target
is byte-identical to the served prompt.Standard Qwen2.5 chat template with tools=. The model responds with
<tool_call>{"name": ..., "arguments": ...}</tool_call> when a tool is warranted.
v2 fixes the v1 train/inference template mismatch (v1 hit 0.92 teacher-forced token
accuracy but decoded degenerately because it was trained on a hand-rendered Hermes
ChatML format, not Qwen's apply_chat_template output). v2 trains and serves through
one shared template and is gated on a free-generation tool-call parse-rate eval
(≥90% on held-out smolcode prompts) before release — see eval_toolcall.py in the
smolcode repo.
Apache-2.0 (inherits from the base model).