EEU-Qwen3-4B-2507-Hybrid-SLERP
a hybrid language model with built-in logic without long thinking chains
2 min read
The model was created via component merging (SLERP) of two versions of Qwen3-4B-2507: the base instruct version and the reasoning thinking version using the ZLangRH tool. It transfers mathematical, logical, and coding reasoning skills into the middle layers of the standard model while maintaining fast responses without cumbersome tags . The result is a compact LLM (4.02 billion parameters) with a native 256K context that solves logic tasks more accurately than the original Instruct without wasting extra tokens on lengthy internal reasoning. It suits developers and enthusiasts for running fast, smart local assistants.
Key features
- Hybrid architecture: weight merging via spherical linear interpolation focusing on MLP layers to strengthen logic.
- No extra tokens: outputs direct answers without long generation of hidden chain-of-thought sequences, saving time and resources.
- High precision: maintains strict JSON formatting, native tool calling (
), and clean stopping. - Hardware efficiency: runs great on Apple Silicon and supports quantization down to GGUF.
What you can do
- Integrate into chatbots: use for fast code generation and answering questions without thinking delays.
- Call functions: apply in projects requiring strict structured output and JSON handling.
- Run locally: deploy via
transformers,MLX, orllama.cppon consumer hardware.
Example
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "EEU/EEU-Qwen3-4B-2507-Hybrid-SLERP"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
messages = [{"role": "user", "content": "Привет! Объясни суть гибридных моделей в двух словах."}]
text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tok([text], return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=256, temperature=0.65, top_p=0.85, top_k=20)
print(tok.decode(out[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
Read more
DetailsBenchmarks: 87.5% success rate in a 16-task benchmark, using 14.5% fewer tokens than the base.
Hardware: 4.02B parameters, supporting bfloat16 and GGUF (Q4_K_M requires 2.32 GiB VRAM).
License: Apache-2.0 (inherited from Qwen).
Generation parameters: temperature 0.65, top_p 0.85, top_k 20 without a forced thinking tag.










Comments