Instructions to use DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B") model = AutoModelForCausalLM.from_pretrained("DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B
- SGLang
How to use DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B 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 "DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B" \ --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": "DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B", "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 "DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B" \ --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": "DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B with Docker Model Runner:
docker model run hf.co/DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B
Version 2 (more stable, better results):
https://huggingface.co/DavidAU/Qwen3-Zero-Coder-Reasoning-V2-0.8B
Qwen3-Zero-Coder-Reasoning-0.8B
This repo contains the full precision source code, in "safe tensors" format to generate GGUFs, GPTQ, EXL2, AWQ, HQQ and other formats. The source code can also be used directly.
This is a coder/programming model, will full reasoning on the Qwen 3 platform that is insanely fast - hitting over 150 t/s on moderate hardware, and 50 t/s+ on CPU only...
This is a generalist coding model, good for code blocks, brainstorming coding ideas, and generating draft code fast.
With reasoning, it can also handle complex code requests too.
It contains 42 layers (a merge of TWO 0.6B models), and 464 tensors - a very dense model for this size.
Specialized, NEO Imatrix enhanced quants (3 different NEO sets, including Q8, f16, and bf16) are here:
https://huggingface.co/DavidAU/Qwen3-Zero-Coder-Reasoning-0.8B-NEO-EX-GGUF
(this repo will also have more instructions AND SPECIFIC settings suggestions for usage too.)
Special thanks to Team Mradermacher for regular and Imatrix quants here:
https://huggingface.co/mradermacher/Qwen3-Zero-Coder-Reasoning-0.8B-GGUF
https://huggingface.co/mradermacher/Qwen3-Zero-Coder-Reasoning-0.8B-i1-GGUF
Special thanks to Team Nightmedia for MLX quant here:
https://huggingface.co/nightmedia/Qwen3-Zero-Coder-Reasoning-0.8B-q8-mlx
SETTINGS:
This model requires:
- Jinja (embedded) or CHATML template
- Max context of 40k.
- Suggest min context of 8k to 16k.
GENERAL SUGGESTION:
If you requirements are complex, with lots of restrictions, a HIGHER temp (.8, .9 - even over 1) may work better, with a rep pen of 1.05 (+- .03). Lower temps (.25,.3,.35) for simple code, with no/fewer restrictions.
If you require code with no dependencies for example; this will be much harder to solve, and higher temp(s) may help the model "think outside the box".
Settings used for testing (suggested):
- Temp .3 to .7
- Rep pen 1.05 to 1.1
- Topp .8 , minp .05
- Topk 20
- No system prompt.
Settings used for testing #2 (suggested):
- Temp .55
- Rep pen 1.05
- Topp .95 , minp .05
- Topk 100
- No system prompt.
This model will respond well to both detailed instructions and step by step refinement and additions to code.
As this is an instruct model, it will also benefit from a detailed system prompt too.
For simpler coding problems, lower quants will work well; but for complex/multi-step problem solving suggest Q6 or Q8.
With this model, you should use statements to tell it what you want and want to disallow to help keep this model on track.
For more information / other Qwen/Mistral Coders / additional settings see:
[ https://huggingface.co/DavidAU/Qwen2.5-MOE-2x-4x-6x-8x__7B__Power-CODER__19B-30B-42B-53B-gguf ]
Help, Adjustments, Samplers, Parameters and More
CHANGE THE NUMBER OF ACTIVE EXPERTS:
See this document:
https://huggingface.co/DavidAU/How-To-Set-and-Manage-MOE-Mix-of-Experts-Model-Activation-of-Experts
Settings: CHAT / ROLEPLAY and/or SMOOTHER operation of this model:
In "KoboldCpp" or "oobabooga/text-generation-webui" or "Silly Tavern" ;
Set the "Smoothing_factor" to 1.5
: in KoboldCpp -> Settings->Samplers->Advanced-> "Smooth_F"
: in text-generation-webui -> parameters -> lower right.
: In Silly Tavern this is called: "Smoothing"
NOTE: For "text-generation-webui"
-> if using GGUFs you need to use "llama_HF" (which involves downloading some config files from the SOURCE version of this model)
Source versions (and config files) of my models are here:
OTHER OPTIONS:
Increase rep pen to 1.1 to 1.15 (you don't need to do this if you use "smoothing_factor")
If the interface/program you are using to run AI MODELS supports "Quadratic Sampling" ("smoothing") just make the adjustment as noted.
Highest Quality Settings / Optimal Operation Guide / Parameters and Samplers
This a "Class 1" model:
For all settings used for this model (including specifics for its "class"), including example generation(s) and for advanced settings guide (which many times addresses any model issue(s)), including methods to improve model performance for all use case(s) as well as chat, roleplay and other use case(s) please see:
You can see all parameters used for generation, in addition to advanced parameters and samplers to get the most out of this model here:
- Downloads last month
- 11