Instructions to use cowWhySo/qwen3_5_2B_voice_assistant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cowWhySo/qwen3_5_2B_voice_assistant with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cowWhySo/qwen3_5_2B_voice_assistant") 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("cowWhySo/qwen3_5_2B_voice_assistant") model = AutoModelForMultimodalLM.from_pretrained("cowWhySo/qwen3_5_2B_voice_assistant") 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 cowWhySo/qwen3_5_2B_voice_assistant with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cowWhySo/qwen3_5_2B_voice_assistant" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cowWhySo/qwen3_5_2B_voice_assistant", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cowWhySo/qwen3_5_2B_voice_assistant
- SGLang
How to use cowWhySo/qwen3_5_2B_voice_assistant 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 "cowWhySo/qwen3_5_2B_voice_assistant" \ --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": "cowWhySo/qwen3_5_2B_voice_assistant", "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 "cowWhySo/qwen3_5_2B_voice_assistant" \ --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": "cowWhySo/qwen3_5_2B_voice_assistant", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Studio
How to use cowWhySo/qwen3_5_2B_voice_assistant 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 cowWhySo/qwen3_5_2B_voice_assistant 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 cowWhySo/qwen3_5_2B_voice_assistant to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cowWhySo/qwen3_5_2B_voice_assistant to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="cowWhySo/qwen3_5_2B_voice_assistant", max_seq_length=2048, ) - Docker Model Runner
How to use cowWhySo/qwen3_5_2B_voice_assistant with Docker Model Runner:
docker model run hf.co/cowWhySo/qwen3_5_2B_voice_assistant
Qwen3.5-2B Voice Assistant
Fine-tuned Qwen3.5-2B for voice assistant / conversational use.
This is designed to be short responses without thinking.
Trained on curated, concise datasets — all assistant responses are short and natural-sounding, optimized for spoken output rather than written text.
Training Details
| Parameter | Value |
|---|---|
| Base model | unsloth/Qwen3.5-2B |
| Method | LoRA (rank=16, alpha=32) |
| LoRA dropout | 0.05 |
| Learning rate | 0.0001 |
| Epochs | 3 (early stopping, patience=4) |
| Effective batch size | 64 |
| Max sequence length | 1024 |
| Scheduler | Cosine with 50 warmup steps |
| Precision | bf16 |
| Thinking mode | Disabled |
| GPU | NVIDIA L4 (22 GB) |
| Framework | Unsloth + TRL SFTTrainer |
Datasets
All datasets are filtered for concise, voice-friendly assistant responses (20–400 chars for general data, 20–500 chars for reasoning). Responses containing markdown formatting (bold, inline code, numbered lists, bullet points, headings) are excluded. Exact-match deduplication is applied across all sources before training.
| Dataset | Rows | Purpose |
|---|---|---|
| OpenAssistant/oasst_top1_2023-08-25 | 2,388 | Real human multi-turn conversations |
| HuggingFaceTB/everyday-conversations-llama3.1-2k | 1,910 | Greetings, small talk, basic Q&A |
| argilla/synthetic-concise-reasoning-sft | 535 | Short factual reasoning answers |
| WizardLM/WizardLM_evol_instruct_70k | 7,000 | Casual single-turn Q&A |
| Duplicates removed | 1,992 | |
| Total (after dedup) | 9,841 |
Filtering Pipeline (v7)
Each assistant response is checked against the following before inclusion:
- Length: 20–400 chars (general), 20–500 chars (reasoning)
- No markdown:
**bold**,`inline code`,[link](url),# headingsall excluded - No lists: numbered (
1.) and bullet (-,*) patterns excluded at line-start and after colons - No list lead-ins: phrases like "the process involves:", "as follows:", "the following" excluded
- No AI-isms: "certainly!", "as an AI", "in conclusion", "delve" excluded
- Post-dedup sanity check: % of markdown patterns logged to W&B before training
System Prompt
All training samples include this system prompt:
You are a casual, hands-free voice assistant. Speak in short, punchy sentences as if we are having a real-time conversation. Never use bullet points, markdown, or code. If explaining a complex topic, use a simple, everyday analogy. Respond immediately without any preamble or internal monologue.
Available Formats
| Repo | Format | Use case |
|---|---|---|
| cowWhySo/qwen3_5_2B_voice_assistant | Merged 16-bit | Transformers / vLLM / SGLang |
| cowWhySo/qwen3_5_2B_voice_assistant-lora | LoRA adapters | Merge with base yourself |
| cowWhySo/qwen3_5_2B_voice_assistant-GGUF | GGUF (q4_k_m, q5_k_m, q8_0, f16) | llama.cpp / Ollama / LM Studio |
Usage with llama.cpp
huggingface-cli download cowWhySo/qwen3_5_2B_voice_assistant-GGUF --include "*q4_k_m*" --local-dir .
./llama-cli -m *q4_k_m*.gguf --ctx-size 2048 --temp 0.7 --top-p 0.9
Usage with Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("cowWhySo/qwen3_5_2B_voice_assistant")
tokenizer = AutoTokenizer.from_pretrained("cowWhySo/qwen3_5_2B_voice_assistant")
messages = [
{"role": "system", "content": "You are a casual, hands-free voice assistant. Speak in short, punchy sentences as if we are having a real-time conversation. Never use bullet points, markdown, or code. If explaining a complex topic, use a simple, everyday analogy. Respond immediately without any preamble or internal monologue."},
{"role": "user", "content": "What's the weather like today?"}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True)
outputs = model.generate(inputs, max_new_tokens=256, temperature=0.7, top_p=0.9)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Fine-tuned with Unsloth on an NVIDIA L4 GPU.
- Downloads last month
- 23