📦 What this repo is
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.
🖼 Demo
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.
🚀 Quickstart
import torchfrom 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))
Requirements
Table with columns: Package, Version, Why| 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]) |
4-bit (single 24 GB card)
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")
Download
hf download wesjos/Qwen3.8-27B-GrumpyGuy --local-dir Qwen3.8-27B-GrumpyGuy
vLLM
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.
📊 Spec
Table | |
|---|
| 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 |
⚙️ Sampling
Table with columns: mode, temperature, top_p, top_k, presence_penalty| 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.
🖥 Hardware
Table with columns: Precision, Weights, Practical minimum| 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).
💡 Notes
- The register is dry, not abusive. It says “不知道。真不知道。” and “I don't eat, so no actual favorite” — it drops pleasantries and refuses to flatter, but it is not a "jailbroken" or uncensored model. Refusals are inherited from the base and unaudited here.
- No system prompt is needed to get the voice. The chat template injects none — the only system text it can emit is the
Reasoning effort is set to xhigh… instruction when thinking is on.
- The agent captures were served under the local alias
qwen-3.8-27b behind a LiteLLM proxy; the repo id is wesjos/Qwen3.8-27B-GrumpyGuy.
- No eval was run on this checkpoint. Nothing here claims benchmark parity with the base.
- Vision and video input are untouched by the tune — the 27-layer vision tower is bit-identical to the base.
📁 Files
Table with columns: File, What it is| 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 |
📜 License & attribution
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