Bilingual (Russian & English) Sub-1B LLM Optimized via Weight-Space Lobotomy & Direct Matrix Surgery
Qwen3.5-0.8B-lobotomized-x2 is a 752-million parameter bilingual language model specialized in strict JSON schema adherence, Python tool/function calling (BFCL v4), and constraint-bound instruction following (Google IFEval).
Zero gradient descent. Zero synthetic dataset fine-tuning. 100% linear algebra surgery.
Evaluated across 40 standardized, verifiable industry benchmarks:
| Benchmark / Task | Raw Base Model | Qwen3.5-0.8B-lobotomized-x2 (Ours) | Relative Delta |
|---|---|---|---|
| Complex JSON-Schema (OpenAPI / Pydantic) | 70.0% | 90.0% (100% syntax) | +20.0% 🚀 |
| Berkeley Function-Calling (BFCL v4) | 30.0% (raw) | 73.3% | +43.3% 🔥 |
| Google IFEval (Strict Rule Adherence) | 80.0% | 86.7% | +6.7% |
| Composite Leaderboard Score | 60.0% | 83.3% | +23.3% 🏆 |
Capability Note: On Google IFEval, Qwen3.5-0.8B-lobotomized-x2 achieves 86.7% strict rule adherence and 90.0% complex JSON schema validity, rivaling much larger foundation models while remaining exceptionally compact.
self_attn.o_proj), with remaining layers using linear recurrence (linear_attn.out_proj).This repository contains Hugging Face Safetensors, pre-converted GGUF binaries, and a production configuration file:
model.safetensors (~3.0 GB) — Full precision weights for PyTorch, Transformers, and vLLM.Qwen3.5-0.8B-lobotomized-x2-q8_0.gguf (774.2 MB) — Quantized 8-bit GGUF for CPU execution in llama.cpp and Ollama.Qwen3.5-0.8B-lobotomized-x2-f16.gguf (1.45 GB) — Full precision 16-bit GGUF for GPU offloading.mtp-Qwen3.5-0.8B-lobotomized-x2-Q8_0.gguf (573.0 MB) — Speculative Multi-Token Prediction (MTP) draft head for llama.cpp / llama-server.Qwen3.5-0.8B-lobotomized-x2.conf — Ready-to-use production server configuration file for llama-server.For optimal performance in JSON extraction, tool calling, and bilingual conversation without repetition loops, we recommend the following parameters:
| Parameter | Value (llama-server) |
Value (transformers / vLLM) |
Description |
|---|---|---|---|
| Temperature | temp = 0.6 |
temperature=0.6 |
Precise coding & structured output stability |
| Top-K | top-k = 20 |
top_k=20 |
Confines candidates to high-confidence logits |
| Top-P | top-p = 0.95 |
top_p=0.95 |
Nucleus probability cutoff |
| Min-P | min-p = 0.0 |
min_p=0.0 |
Minimum token cutoff |
| Repeat Penalty | repeat-penalty = 1.0 |
repetition_penalty=1.0 |
Crucial: Keep 1.0 to preserve natural grammar and syntax |
| Presence Penalty | presence-penalty = 0.0 |
presence_penalty=0.0 |
Neutral baseline |
| Reasoning Format | reasoning-format = auto |
- | Automatic handling of <think> reasoning tags |
Best Practice Note: For sub-1B architectures, never inflate
repeat_penaltyabove 1.05, as multiplicative penalties severely distort logit distributions for natural language grammar, cases, and function keywords. If loop prevention is required in open-domain chat, adjustpresence_penalty(between 0.5 and 1.5) instead.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Dam1rka1/Qwen3.5-0.8B-lobotomized-x2"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float32,
device_map="auto"
)
# Bilingual dialogue
messages = [
{"role": "system", "content": "Ты полезный двуязычный ассистент (RU/EN)."},
{"role": "user", "content": "Explain what a REST API is in exactly two sentences."}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
**inputs,
max_new_tokens=256,
temperature=0.6,
top_k=20,
top_p=0.95,
repetition_penalty=1.0
)
print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
Because the weights are stored in standard safetensors, vLLM supports it out of the box with PagedAttention and CUDA kernel acceleration:
# Install vLLM
pip install vllm
# Launch OpenAI-compatible API server
vllm serve ./Qwen3.5-0.8B-lobotomized-x2 --host 0.0.0.0 --port 8000
Run the pre-compiled GGUF directly using llama-cli or launch the production server with the bundled configuration:
# Launch production OpenAI-compatible server using the provided config:
llama-server --config ./Qwen3.5-0.8B-lobotomized-x2.conf
# Using Q8_0 for CPU
llama-cli -m ./Qwen3.5-0.8B-lobotomized-x2-q8_0.gguf -p "Привет! Расскажи о себе кратко." -n 128 -t 6
# Using F16 with full GPU offload
llama-cli -m ./Qwen3.5-0.8B-lobotomized-x2-f16.gguf -ngl 99 -p "Generate JSON user profile with keys name, age, skills."
# Speculative Decoding via MTP draft head
llama-cli -m ./Qwen3.5-0.8B-lobotomized-x2-q8_0.gguf -md ./mtp-Qwen3.5-0.8B-lobotomized-x2-Q8_0.gguf --spec-type draft-mtp --draft 2 -p "Привет! Расскажи о себе."
FROM ./Qwen3.5-0.8B-lobotomized-x2-q8_0.gguf
PARAMETER temperature 0.6
PARAMETER top_k 20
PARAMETER top_p 0.95
PARAMETER repeat_penalty 1.0
SYSTEM "Ты умный двуязычный ассистент. Отвечай лаконично и строго по делу."
ollama create Qwen3.5-0.8B-lobotomized-x2 -f Modelfile
ollama run Qwen3.5-0.8B-lobotomized-x2
License: Apache 2.0
Qwen/Qwen3.5-0.8B