Instructions to use trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit") model = AutoModelForMultimodalLM.from_pretrained("trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - MLX
How to use trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- vLLM
How to use trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit
- SGLang
How to use trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit 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 trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit 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 trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit", max_seq_length=2048, ) - Pi
How to use trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit"
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 trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit
Run Hermes
hermes
- OpenClaw new
How to use trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit"
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 "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- MLX LM
How to use trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Docker Model Runner
How to use trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit with Docker Model Runner:
docker model run hf.co/trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4Bit
Qwimi3.5-9B KimiK2.6 Opus Distill MLX 4-bit
This is the MLX 4-bit conversion of:
trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-BF16
It is intended for Apple Silicon / MLX users who want to run the Qwimi3.5-9B reasoning fine-tune locally.
This repo is an MLX-format conversion/quantization of the merged BF16 model. The training was done separately using Unsloth + LoRA SFT, then merged to BF16 before MLX conversion.
Model Summary
| Field | Value |
|---|---|
| Model name | Qwimi3.5-9B-Kimik2.6-Opus-Distill |
| Format | MLX 4-bit |
| Source model | trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-BF16 |
| Base model | unsloth/Qwen3.5-9B |
| Training method | LoRA SFT |
| LoRA rank | r = 128 |
| LoRA alpha | 128 |
| RS-LoRA | Enabled |
| Training context length | 16k |
| Train examples | 12,000 |
| Held-out eval examples | 366 |
| Trainer eval subset | 200 |
| Epochs | 1 |
| Final train loss | 0.5517 |
| Lightweight eval loss | ~0.3161 |
Quantization Notes
This repository contains the 4-bit MLX version.
The 4-bit version is usually the best first choice for most Apple Silicon users because it offers the smallest size and lowest memory footprint. It is the most practical option for users with tighter RAM limits.
For other formats, see the main release family:
- BF16:
trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-BF16 - GGUF:
trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-GGUF
Install
pip install -U mlx-lm
Basic Usage
mlx_lm.generate \
--model trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4bit \
--prompt "Explain RS-LoRA in simple terms."
For longer generations:
mlx_lm.generate \
--model trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4bit \
--prompt "Solve this step by step: If a company grows revenue from 120M to 180M over 3 years, what is the CAGR?" \
--max-tokens 1024
Chat Template / Prompting
This model was trained with Qwen-style chat formatting and response-only SFT. For best results, use an instruction/chat style prompt.
Example:
You are a helpful reasoning assistant.
Question:
Explain why RS-LoRA can help at higher LoRA ranks.
The model was trained on reasoning-style outputs where assistant responses often contain:
<think>
reasoning trace
</think>
final answer
Depending on your inference settings and prompt, the model may produce explicit reasoning traces. For end-user applications, you may want to post-process or hide internal reasoning and show only the final answer.
Training Data
The merged BF16 source model was trained on a combined reasoning/distillation mix from:
trjxter/Kimi-K2.6-Reasoning-3300x-WandBJackrong/Qwen3.5-reasoning-700xJackrong/Claude-opus-4.6-TraceInversion-9000x
After formatting and 16k-token filtering, the final usable dataset size was:
12,366 usable examples
12,000 train examples
366 held-out eval examples
200 trainer eval examples
The curation process normalized mixed schemas into a shared Qwen chat-template SFT format.
Training Configuration
The original fine-tune used:
Base model: unsloth/Qwen3.5-9B
Training: LoRA SFT
Base loading: 8-bit
LoRA rank: 128
LoRA alpha: 128
RS-LoRA: enabled
Max sequence length: 16,384
Gradient checkpointing: unsloth
Batch size: 2
Gradient accumulation: 8
Effective batch size: 16
Epochs: 1
Optimizer: adamw_8bit
Learning rate: 2e-5
Warmup steps: 30
Save steps: 200
Eval steps: 200
Expected optimizer steps:
12,000 / 16 = 750 optimizer steps
Training Results
Final trainer metrics from the source fine-tune:
{
"train_runtime": 15728.7981,
"train_samples_per_second": 0.763,
"train_steps_per_second": 0.048,
"total_flos": 1.4528477736160543e+18,
"train_loss": 0.5516796213785807,
"epoch": 1.0,
}
Loss checkpoints:
| Step | Train Loss | Lightweight Eval Loss |
|---|---|---|
| 200 | 0.4149 | 0.3284 |
| 400 | 0.5867 | 0.3216 |
| 600 | 0.5480 | 0.3177 |
| 750 | 0.5531 | 0.3161 |
Artifact Lineage
flowchart TD
A[unsloth/Qwen3.5-9B] --> B[LoRA SFT]
B --> C[Qwimi LoRA adapter]
C --> D[Merged BF16 model]
D --> E[MLX 4-bit conversion]
Intended Use
This model is intended for:
- general reasoning experiments,
- local Apple Silicon inference,
- MLX benchmarking,
- educational fine-tuning research,
- testing Qwen-style reasoning distillation behavior.
It is not intended for high-stakes medical, legal, financial, or safety-critical decision-making without expert review.
Limitations
- This is a community fine-tune and should be evaluated before production use.
- The model may produce incorrect reasoning or confident wrong answers.
- The model may generate verbose reasoning traces depending on prompts.
- MLX quantized behavior can differ from BF16 or GGUF behavior.
- This README reports the training metrics of the BF16 source model, not a separate full eval of this exact MLX quant.
Citation / Attribution
Base model and tooling credit goes to the Qwen, Unsloth, Hugging Face, and MLX communities.
Source fine-tune:
trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-BF16
MLX conversion:
trjxter/Qwimi3.5-9B-Kimik2.6-Opus-Distill-MLX-4bit
Notes
This MLX quant was created to make the Qwimi3.5-9B run easier to use for Apple Silicon users.
- Downloads last month
- 517
4-bit