Created by selectively deleting a harmful layer and swapping adjacent layers for improved information flow. Scores 92.9/100 with 100% factual accuracy — a 5.1-point improvement over the original Qwen3-1.7B baseline (87.8/100).
This model was created by applying two surgical operations to
Qwen/Qwen3-1.7B:
Evaluated using a comprehensive test suite with 17 factual questions, 2 completion coherence tests, perplexity measurements, repetition analysis, and thinking/non-thinking mode verification.
1# Download the GGUF and create from Modelfile
2cat > Modelfile << 'EOF'
3FROM ./Qwen3-g023-tiny-v1-Q8_0.gguf
4
5PARAMETER temperature 1.0
6PARAMETER top_p 0.95
7PARAMETER top_k 45
8PARAMETER min_p 0.1
9PARAMETER num_ctx 40000
10PARAMETER mirostat 2
11PARAMETER mirostat_tau 5.0
12PARAMETER mirostat_eta 0.1
13PARAMETER repeat_last_n 16384
14PARAMETER repeat_penalty 1.1
15PARAMETER presence_penalty 0.5
16PARAMETER frequency_penalty 1.0
17
18TEMPLATE """{{- if .System }}
19<|im_start|>system
20{{ .System }}<|im_end|>
21{{ end }}
22{{- range .Messages }}
23{{- if eq .Role "user" }}
24<|im_start|>user
25{{ .Content }}<|im_end|>
26{{- else if eq .Role "assistant" }}
27<|im_start|>assistant
28{{ .Content }}<|im_end|>
29{{- end }}
30{{- end }}
31<|im_start|>assistant
32"""
33SYSTEM "You are a helpful assistant."
34EOF
35
36ollama create qwen3-tiny-v1 -f Modelfile
37ollama run qwen3-tiny-v1
1# Interactive chat
2llama-cli -m Qwen3-g023-tiny-v1-Q8_0.gguf \
3 --chat-template chatml -cnv
4
5# Thinking mode
6llama-cli -m Qwen3-g023-tiny-v1-Q8_0.gguf \
7 -p "<|im_start|>user\nExplain quantum computing<|im_end|>\n<|im_start|>assistant\n<think>\n" \
8 -n 512
9
10# Non-thinking mode
11llama-cli -m Qwen3-g023-tiny-v1-Q8_0.gguf \
12 -p "<|im_start|>user\n/no_think What is 2+2?<|im_end|>\n<|im_start|>assistant\n" \
13 -n 128
1from llama_cpp import Llama
2
3model = Llama("Qwen3-g023-tiny-v1-Q8_0.gguf", n_ctx=4096)
4response = model.create_chat_completion(
5 messages=[
6 {"role": "system", "content": "You are a helpful assistant."},
7 {"role": "user", "content": "What is the capital of France?"},
8 ],
9 temperature=0.6,
10)
11print(response["choices"][0]["message"]["content"])
Layer surgery was performed through a systematic, test-driven development process:
The surgery framework is available in the
source repository.
Apache 2.0 — same as the original Qwen3-1.7B model.