Instructions to use distil-labs/distil-commit-bot-ts-Qwen3-0.6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use distil-labs/distil-commit-bot-ts-Qwen3-0.6B with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("distil-labs/distil-commit-bot-ts-Qwen3-0.6B", dtype="auto") - llama-cpp-python
How to use distil-labs/distil-commit-bot-ts-Qwen3-0.6B with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="distil-labs/distil-commit-bot-ts-Qwen3-0.6B", filename="model.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use distil-labs/distil-commit-bot-ts-Qwen3-0.6B with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf distil-labs/distil-commit-bot-ts-Qwen3-0.6B # Run inference directly in the terminal: llama-cli -hf distil-labs/distil-commit-bot-ts-Qwen3-0.6B
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf distil-labs/distil-commit-bot-ts-Qwen3-0.6B # Run inference directly in the terminal: llama-cli -hf distil-labs/distil-commit-bot-ts-Qwen3-0.6B
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf distil-labs/distil-commit-bot-ts-Qwen3-0.6B # Run inference directly in the terminal: ./llama-cli -hf distil-labs/distil-commit-bot-ts-Qwen3-0.6B
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf distil-labs/distil-commit-bot-ts-Qwen3-0.6B # Run inference directly in the terminal: ./build/bin/llama-cli -hf distil-labs/distil-commit-bot-ts-Qwen3-0.6B
Use Docker
docker model run hf.co/distil-labs/distil-commit-bot-ts-Qwen3-0.6B
- LM Studio
- Jan
- Ollama
How to use distil-labs/distil-commit-bot-ts-Qwen3-0.6B with Ollama:
ollama run hf.co/distil-labs/distil-commit-bot-ts-Qwen3-0.6B
- Unsloth Studio
How to use distil-labs/distil-commit-bot-ts-Qwen3-0.6B with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for distil-labs/distil-commit-bot-ts-Qwen3-0.6B to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for distil-labs/distil-commit-bot-ts-Qwen3-0.6B to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for distil-labs/distil-commit-bot-ts-Qwen3-0.6B to start chatting
- Docker Model Runner
How to use distil-labs/distil-commit-bot-ts-Qwen3-0.6B with Docker Model Runner:
docker model run hf.co/distil-labs/distil-commit-bot-ts-Qwen3-0.6B
- Lemonade
How to use distil-labs/distil-commit-bot-ts-Qwen3-0.6B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull distil-labs/distil-commit-bot-ts-Qwen3-0.6B
Run and chat with the model
lemonade run user.distil-commit-bot-ts-Qwen3-0.6B-{{QUANT_TAG}}List all available models
lemonade list
distil-commit-bot TS
We trained an SLM assistant for help with commit messages on TypeScript codebases - Qwen 3 model (0.6B parameters) that you can run locally!
Installation
First, install Ollama, following the instructions on their website.
Then set up the virtual environment:
python -m venv .venv
. .venv/bin/activate
pip install huggingface_hub openai watchdog
or using uv:
uv sync
The model is hosted on huggingface:
Finally, download the models from huggingface and build them locally:
hf download distil-labs/distil-commit-bot-ts-Qwen3-0.6B --local-dir distil-model
cd distil-model
ollama create distil-commit-bot-ts-Qwen3-0.6B -f Modelfile
Run the assistant
The commit bot with diff the git repository provided via --repository
option and suggest a commit message. Use the --watch option to re-run
the assistant whenever the repository changes.
python bot.py --repository <absolute_or_relative_git_repository_path>
# or
uv run bot.py --repository <absolute_or_relative_git_repository_path>
# Watch for file changes in the repository path:
python bot.py --repository <absolute_or_relative_git_repository_path> --watch
# or
uv run bot.py --repository <absolute_or_relative_git_repository_path> --watch
Examples
See examples
Training & Evaluation
The tuned models were trained using knowledge distillation, leveraging the teacher model GPT-OSS-120B. The data+config+script used for finetuning can be found in data. We used 20 typescript git diff examples (created using distillabs' vibe tuning) as seed data and supplemented them with 10,000 synthetic examples across various typescript use cases (frontend, backend, react etc.).
We compare the teacher model and the student model on 10 held-out test examples using LLM-as-a-judge evaluation:
| Model | Size | Accuracy |
|---|---|---|
| GPT-OSS (thinking) | 120B | 1.00 |
| Qwen3 0.6B (tuned) | 0.6B | 0.90 |
| Qwen3 0.6B (base) | 0.6B | 0.60 |
Evaluation Criteria:
LLM-as-a-judge: The training config file and train/test data splits are available under /data.
FAQ
Q: Why don't we just use Llama3.X yB for this??
We focus on small models (< 8B parameters), and these make errors when used out of the box (see 5.)
Q: I want to train a small language model for my use-case
A: Visit our website and reach out to us, we offer custom solutions.
- Downloads last month
- 20
We're not able to determine the quantization variants.