Instructions to use blackshell69/Qwen3.5-9B-distilled-coding-agentic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use blackshell69/Qwen3.5-9B-distilled-coding-agentic with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("D:\aimodels\hf\Qwen3.5-9B") model = PeftModel.from_pretrained(base_model, "blackshell69/Qwen3.5-9B-distilled-coding-agentic") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use blackshell69/Qwen3.5-9B-distilled-coding-agentic with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL # Run inference directly in the terminal: llama cli -hf blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL # Run inference directly in the terminal: llama cli -hf blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
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 blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL # Run inference directly in the terminal: ./llama-cli -hf blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
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 blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL # Run inference directly in the terminal: ./build/bin/llama-cli -hf blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
Use Docker
docker model run hf.co/blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
- LM Studio
- Jan
- vLLM
How to use blackshell69/Qwen3.5-9B-distilled-coding-agentic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "blackshell69/Qwen3.5-9B-distilled-coding-agentic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "blackshell69/Qwen3.5-9B-distilled-coding-agentic", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
- Ollama
How to use blackshell69/Qwen3.5-9B-distilled-coding-agentic with Ollama:
ollama run hf.co/blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
- Unsloth Studio
How to use blackshell69/Qwen3.5-9B-distilled-coding-agentic 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 blackshell69/Qwen3.5-9B-distilled-coding-agentic 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 blackshell69/Qwen3.5-9B-distilled-coding-agentic to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for blackshell69/Qwen3.5-9B-distilled-coding-agentic to start chatting
- Pi
How to use blackshell69/Qwen3.5-9B-distilled-coding-agentic with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use blackshell69/Qwen3.5-9B-distilled-coding-agentic with Docker Model Runner:
docker model run hf.co/blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
- Lemonade
How to use blackshell69/Qwen3.5-9B-distilled-coding-agentic with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
Run and chat with the model
lemonade run user.Qwen3.5-9B-distilled-coding-agentic-IQ4_NL
List all available models
lemonade list
- Hermes Agent
How to use blackshell69/Qwen3.5-9B-distilled-coding-agentic with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use blackshell69/Qwen3.5-9B-distilled-coding-agentic with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "blackshell69/Qwen3.5-9B-distilled-coding-agentic:IQ4_NL" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Qwen3.5-9B — distilled for coding + agentic tool-use
LoRA adapter for Qwen/Qwen3.5-9B, trained via
sequence-level knowledge distillation from Qwen3.8-27B (teacher, served locally via
llama.cpp) to strengthen coding and agentic (tool-calling) capability in a model small
enough to run on consumer GPUs.
Training details
- Method: QLoRA — 4-bit NF4 base (frozen), LoRA rank 32 on all linear projections
(
q/k/v/o_proj,gate/up/down_proj), bf16 compute. - Data: 9,640 samples of teacher-generated completions.
- Coding — prompts from
ise-uiuc/Magicoder-OSS-Instruct-75K; reference solutions discarded, the teacher writes its own. - Agentic tool-use — multi-turn conversations from
glaiveai/glaive-function-calling-v2; every assistant turn (tool calls and post-tool-response answers alike) is regenerated by the teacher conditioned on the recorded history, in OpenAItools/tool_callsformat.
- Coding — prompts from
- Schedule: 2 epochs, cosine LR decay, completion-only loss (loss masked to the teacher's tokens via the student's own chat template).
- Result: final training loss 0.176, mean token accuracy 94.5%.
- Hardware: single RTX 5060 Ti (16GB), Windows, TRL + PEFT + bitsandbytes (SDPA attention).
Usage
🤗 PEFT
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.5-9B", dtype="bfloat16")
model = PeftModel.from_pretrained(base, "blackshell69/Qwen3.5-9B-distilled-coding-agentic")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3.5-9B")
llama.cpp (GGUF)
Two ways to run this with llama.cpp:
Single merged file (Qwen3.5-9B-distilled-IQ4_NL.gguf, recommended):
llama-server -m Qwen3.5-9B-distilled-IQ4_NL.gguf --jinja
Base + LoRA adapter (Qwen3.5-9B-distilled-LoRA-F16.gguf), if you'd rather keep the
adapter separate from a base GGUF you already have — numerically equivalent to the merged
file:
llama-server -m Qwen3.5-9B-<any-quant>.gguf \
--lora Qwen3.5-9B-distilled-LoRA-F16.gguf --jinja
- Downloads last month
- 67
4-bit
16-bit