Text Generation
Transformers
Safetensors
GGUF
English
Chinese
qwen3_5
image-text-to-text
dpo
lima
preference-optimization
style-tuning
qwen3.5
llama-cpp
conversational
Instructions to use wesjos/Mimo-Qwen3.5-9B-Cold with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wesjos/Mimo-Qwen3.5-9B-Cold with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wesjos/Mimo-Qwen3.5-9B-Cold") 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("wesjos/Mimo-Qwen3.5-9B-Cold") model = AutoModelForMultimodalLM.from_pretrained("wesjos/Mimo-Qwen3.5-9B-Cold", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wesjos/Mimo-Qwen3.5-9B-Cold with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wesjos/Mimo-Qwen3.5-9B-Cold" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wesjos/Mimo-Qwen3.5-9B-Cold", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wesjos/Mimo-Qwen3.5-9B-Cold
- SGLang
How to use wesjos/Mimo-Qwen3.5-9B-Cold 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 "wesjos/Mimo-Qwen3.5-9B-Cold" \ --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": "wesjos/Mimo-Qwen3.5-9B-Cold", "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 "wesjos/Mimo-Qwen3.5-9B-Cold" \ --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": "wesjos/Mimo-Qwen3.5-9B-Cold", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wesjos/Mimo-Qwen3.5-9B-Cold with Docker Model Runner:
docker model run hf.co/wesjos/Mimo-Qwen3.5-9B-Cold
MiMo-9B-Cold (LIMA DPO)
A cold-style preference-aligned model built on MiMo-V2.6-Distill-Qwen-9B: DPO applied directly to the base model (no SFT), using 1,027 modified LIMA-style preference pairs to make responses concise, decisive, and direct — while preserving intelligence and general knowledge.
📋 Model Overview
| Attribute | Value |
|---|---|
| Model Name | wesjos/Mimo-Qwen3.5-9B-Cold |
| Base | MiMo-V2.6-Distill-Qwen-9B (Qwen3.5-architecture distill, 9.4B params) |
| Method | DPO (Direct Preference Optimization), skipping SFT |
| Training Data | lima_dpo_clean.jsonl — 1,027 LIMA-style preference pairs |
| Training Framework | Unsloth + TRL DPOTrainer (QLoRA 4bit) |
| Release Formats | HF merged_16bit (18 GB) · LoRA adapter · GGUF Q8_0 (8.87 GB) |
| Context Length | 262,144 (native) |
| Languages | English / Chinese |
🚀 Usage
Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"<repo>/merged_16bit", torch_dtype="bfloat16", device_map="auto"
)
tok = AutoTokenizer.from_pretrained("<repo>/merged_16bit")
messages = [{"role": "user", "content": "Introduce yourself in two sentences."}]
inputs = tok.apply_chat_template(
messages, tokenize=True, add_generation_prompt=True,
enable_thinking=False, return_tensors="pt", return_dict=True,
).to("cuda")
out = model.generate(**inputs, max_new_tokens=300, temperature=0.6, top_p=0.9)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
llama.cpp (GGUF Q8_0)
llama-server -m mimo-9b-cold-Q8_0.gguf \
--ctx-size 8192 -ngl 99 -ctk q8_0 -ctv q8_0 -fa on \
--jinja --alias mimo-9b-cold --port 18080
Recommended Parameters
- temperature: 0.6, top_p: 0.9, top_k: 20
- Anti-repetition: repeat_penalty 1.05, DRY multiplier 0.8
- Thinking mode: template supports
enable_thinkingtoggle
⚠️ Limitations & Notes
- Small training scale: only 1 epoch × 1,027 pairs — lightweight style alignment; do not expect capability gains, only style transfer
- Slightly higher tool hallucination rate: for function calling, add parameter schema validation at the application layer
- Knowledge cutoff: inherited from the base model (Qwen3.5 family); training data contains no new knowledge
- Safety alignment: retains the base model's full safety values (illegal requests are refused with lawful alternatives)
- BBH sampling variance: at limit 200 each subset has only ~4 questions; the -2.78pp drop is not statistically significant
🙏 Acknowledgements
- Base: MiMo-V2.6-Distill-Qwen-9B (Qwen3.5 architecture)
- Methods: LIMA (Less Is More for Alignment) · DPO (Rafailov et al.)
- Tools: Unsloth · TRL · evalscope · llama.cpp
- Downloads last month
- 405
Model tree for wesjos/Mimo-Qwen3.5-9B-Cold
Base model
Qwen/Qwen3.5-9B-Base Finetuned
Qwen/Qwen3.5-9B Finetuned
XiaomiMiMo/MiMo-V2.6-Distill-Qwen-9B