SkillForge-skiller-1B
A small assistant that runs in the browser, on the user's device, through
WebLLM. It is the model behind the
/skiller page of Skill Forge.
It is Qwen2.5-1.5B-Instruct, fine-tuned on the product's own material, then
quantized to MLC's q4f16_1 format. The size in the name is the family it is
published under; the base is Qwen2.5-1.5B-Instruct.
What it does
One set of weights, two jobs, chosen by the system prompt:
- general chat. It answers ordinary questions the way a chat assistant does, in the user's language, at the length the question deserves.
- skill writing. Its specialty is skills for AI agents: Markdown documents with a name, a description and a numbered procedure. It writes or improves one only when asked, and never invents facts it does not have.
Every reply is a chain of thought: a short <reasoning> block, then the answer.
The reasoning keeps a 1.5B model on track for multi-step answers, and the chat
renders it in a collapsible panel so it does not clutter the answer.
Training
- Base:
Qwen/Qwen2.5-1.5B-Instruct. - Method: LoRA (r=16, alpha=32, dropout 0.05) on all attention and MLP projections; 18.46M trainable parameters.
- Data: 555 examples, built by
build_dataset.pyfrom the product's own material: 47 real skill domains, 128 real questions with answers, control examples, and the hand-written pairs from the earlier 0.5B model. - Prompt: only the reply tokens are in the loss; the prompt is masked.
- Runs on CPU. See
README.mdfor the full pipeline.
Use
In the browser through WebLLM, the model card is
src/lib/skiller-webllm.ts; the weights are served from this Hugging Face repo,
in the MLC layout at the root, and WebLLM appends resolve/main/ itself.
With transformers, load the fp16 build from the merged/ subfolder — the root
of this repo is the quantized MLC build, which transformers cannot read. Apply
the chat template and the system prompt from src/lib/skiller.ts:
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "Ciao22/SkillForge-skiller-1B"
tok = AutoTokenizer.from_pretrained(f"{repo}", subfolder="merged")
model = AutoModelForCausalLM.from_pretrained(f"{repo}", subfolder="merged")
messages = [
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": "What is a database index?"},
]
ids = tok.apply_chat_template(
messages, add_generation_prompt=True, return_tensors="pt", return_dict=False
)
out = model.generate(ids, max_new_tokens=400)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
Recent transformers returns a BatchEncoding from apply_chat_template when
only return_tensors is given; return_dict=False keeps it a plain tensor.
With Ollama, pull the 4-bit GGUF straight from this repo (0.99 GB, versus 3.09 GB for the f16):
ollama run hf.co/Ciao22/SkillForge-skiller-1B:Q4_K_M
The Q4_K_M build was quantized from the f16 GGUF and checked by generating with
llama-cli: coherent Italian at about 31 tokens/s on CPU. To build locally
instead, from the GGUF in out/gguf/:
python build_modelfile.py
ollama create SkillForge-skiller-1B -f Modelfile
ollama run SkillForge-skiller-1B
Limits
It is a small model. It is private and runs without a server, but it is not a frontier model: for a long or subtle document, a larger model is better. It can be wrong, and it will occasionally produce a weak step; treat its output as a draft.
License
Apache 2.0, following the base model.