A fine-tuned Qwen3.8-27B that answers like a senior engineer who has read your question twice — no flattery, no filler, no "Great question!".
27.78B params · BF16 · 18 shards · 55.6 GB · Apache-2.0
A fine-tune of Qwen3.8-27B, released as full BF16 weights so it loads with a plain from_pretrained — no adapter to mount.
The personality is a dry, senior-engineer register: it states the answer first, drops the throat-clearing, refuses to flatter, and keeps that voice even while running tools.
Same model, three ways to run it — this repo ships the merged weights. The identical adapter is available in mountable form: GrumpyGuy LoRA (PEFT, 42 MB) and GrumpyGuy LoRA (GGUF) (
llama.cpp, 21 MB). The merged build here is verified tensor-by-tensor to equal the base plus that adapter's delta.
Captured from the model itself. The Cherry Studio shots ran with the system prompt you are rudy; the agent shots ran in a terminal harness with tool use. Click any image to open it full size.
pizza.py, runs it, hits a Windows path bug
import torch
from transformers import AutoProcessor, AutoModelForImageTextToText
MODEL = "wesjos/Qwen3.8-27B-GrumpyGuy"
processor = AutoProcessor.from_pretrained(MODEL)
model = AutoModelForImageTextToText.from_pretrained(
MODEL, dtype=torch.bfloat16, device_map="auto"
)
messages = [{"role": "user", "content": "怎么用 LoRA 改一个模型的说话风格?"}]
text = processor.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True,
enable_thinking=False, # chit-chat does not need a reasoning trace
)
inputs = processor(text=text, return_tensors="pt").to(model.device)
out = model.generate(
**inputs, max_new_tokens=512, do_sample=True,
temperature=0.7, top_p=0.8, top_k=20,
)
print(processor.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
| Package | Version | Why |
|---|---|---|
transformers |
≥ 5.2.0 | the qwen3_5 architecture; verified working on 5.17.0, the version this checkpoint's config.json was written with |
torch |
≥ 2.5 | — |
torchvision |
any recent | AutoProcessor fails without it — the bundled Qwen3VLVideoProcessor hard-requires torch + torchvision |
jinja2 |
≥ 3.1 | apply_chat_template raises ImportError without it (pip install transformers[chat-template]) |
from transformers import BitsAndBytesConfig
bnb = BitsAndBytesConfig(
load_in_4bit=True, bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16, bnb_4bit_use_double_quant=True,
)
model = AutoModelForImageTextToText.from_pretrained(
MODEL, quantization_config=bnb, device_map="auto"
)
hf download wesjos/Qwen3.8-27B-GrumpyGuy --local-dir Qwen3.8-27B-GrumpyGuy
vllm serve wesjos/Qwen3.8-27B-GrumpyGuy --max-model-len 32768
For the 1M-token context and the YaRN override, follow the official Qwen3.8 recipe.
| Base | Qwen/Qwen3.8-27B (Apache-2.0) |
| Architecture | Qwen3_5ForConditionalGeneration — text + image + video |
| Parameters | 27.78 B, BF16 |
| Layers | 64 = 16 full-attention + 48 linear-attention (Gated DeltaNet) |
| Context | 262,144 tokens native |
| KV cache | 64 KiB/token → 2 GiB at 32k |
| Vocab | 248,320 (padded) · 248,044 real tokens |
| Shards | 18 × safetensors, 55.6 GB |
| mode | temperature | top_p | top_k | presence_penalty |
|---|---|---|---|---|
| Thinking (default) | 1.0 | 0.95 | 20 | 0.0 |
| Instruct / chat | 0.7 | 0.80 | 20 | 1.5 |
generation_config.json in this repo ships the thinking-mode set (1.0 / 0.95 / 20). presence_penalty is a vLLM / SGLang knob — transformers.generate() ignores it.
Thinking mode is on by default with reasoning_effort="xhigh". For chat, pass enable_thinking=False as in the snippet above, or reasoning_effort="low" — otherwise the reasoning trace eats the token budget.
| Precision | Weights | Practical minimum |
|---|---|---|
| BF16 (this repo) | 55.6 GB | 1× H100 80 GB, or 2× A100 40 GB, or CPU offload |
| 8-bit | ≈ 28 GB | 1× A100 40 GB |
| 4-bit nf4 | ≈ 16 GB | 1× RTX 4090 24 GB at moderate context |
Disk: plan for 56 GB (18 shards).
Reasoning effort is set to xhigh… instruction when thinking is on.qwen-3.8-27b behind a LiteLLM proxy; the repo id is wesjos/Qwen3.8-27B-GrumpyGuy.| File | What it is |
|---|---|
model-00001-of-00018.safetensors … model-00018-of-00018.safetensors |
BF16 weights, 55.6 GB total |
model.safetensors.index.json |
shard map (27,781,427,952 parameters) |
config.json |
Qwen3_5ForConditionalGeneration, 64 layers, 262,144 max positions |
generation_config.json |
generation defaults |
chat_template.jinja |
Qwen3.8 chat template (thinking on by default, no persona injected) |
tokenizer.json · tokenizer_config.json |
tokenizer, 248,320 vocab |
processor_config.json |
image / video preprocessing |
demos/ |
the screenshots shown above |
LICENSE |
Apache-2.0 |
Apache-2.0, inherited from Qwen/Qwen3.8-27B. Qwen is a trademark of its respective owner; this is an unofficial community tune and is not affiliated with or endorsed by the Qwen team.
Related repos
| Repo | What it is |
|---|---|
| wesjos/Qwen3.8-27B-GrumpyGuy | this repo — the persona as full merged BF16 weights |
| wesjos/Qwen3.8-27B-GrumpyGuy-LoRA | the same weights as a PEFT adapter (42 MB) |
| wesjos/Qwen3.8-27B-GrumpyGuy-LoRA-GGUF | the same weights as a runtime GGUF for llama.cpp |
model-00004-of-00018.safetensors 4.0 GBmodel-00016-of-00018.safetensors 4.0 GBmodel-00006-of-00018.safetensors 4.0 GBmodel-00008-of-00018.safetensors 4.0 GBmodel-00010-of-00018.safetensors 4.0 GBmodel-00012-of-00018.safetensors 4.0 GBmodel-00014-of-00018.safetensors 4.0 GBmodel-00001-of-00018.safetensors 4.0 GBmodel-00018-of-00018.safetensors 3.4 GBmodel-00002-of-00018.safetensors 3.0 GBmodel-00003-of-00018.safetensors 2.5 GBmodel-00007-of-00018.safetensors 2.1 GBmodel-00009-of-00018.safetensors 2.1 GBmodel-00011-of-00018.safetensors 2.1 GBmodel-00013-of-00018.safetensors 2.1 GBmodel-00015-of-00018.safetensors 2.1 GBmodel-00017-of-00018.safetensors 2.1 GBmodel-00005-of-00018.safetensors 2.1 GBQwen/Qwen3.8-27B