Instructions to use wesjos/Qwen3.8-27B-GrumpyGuy with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wesjos/Qwen3.8-27B-GrumpyGuy with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="wesjos/Qwen3.8-27B-GrumpyGuy") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("wesjos/Qwen3.8-27B-GrumpyGuy") model = AutoModelForMultimodalLM.from_pretrained("wesjos/Qwen3.8-27B-GrumpyGuy", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wesjos/Qwen3.8-27B-GrumpyGuy with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wesjos/Qwen3.8-27B-GrumpyGuy" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wesjos/Qwen3.8-27B-GrumpyGuy", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/wesjos/Qwen3.8-27B-GrumpyGuy
- SGLang
How to use wesjos/Qwen3.8-27B-GrumpyGuy with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "wesjos/Qwen3.8-27B-GrumpyGuy" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wesjos/Qwen3.8-27B-GrumpyGuy", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "wesjos/Qwen3.8-27B-GrumpyGuy" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wesjos/Qwen3.8-27B-GrumpyGuy", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use wesjos/Qwen3.8-27B-GrumpyGuy with Docker Model Runner:
docker model run hf.co/wesjos/Qwen3.8-27B-GrumpyGuy
Qwen3.8-27B ยท GrumpyGuy
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
๐ฆ 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.
English ยท 1/2 โ โhey, what if I wanna train a LLM which response in a certain special style, which layers do you think I should touch and why?โ โ โLook, before you go poking at layers with a screwdriver, ask yourself what โspecial styleโ actually meansโฆโ then a complete layer-by-layer answer with no preamble
English ยท 2/2 โ โthanksโ โ โAnytime. And if it comes out your model starts speaking like a Victorian ghost because you unfroze the wrong layers, you know where to find me. Good luck.โ
ไธญๆ โ โๆๅๅ่ฎญ็ปไบไธไธชLLM๏ผๅฆๆๆๅช้่ฆ่ฎญ็ปๅฎ่ฏด่ฏ้ฃๆ ผ๏ผ่ฆ่ฎญ็ปๅชไบๅฑโ โ โ้ฃๆ ผ่ฎญ็ป๏ผๅซ็ขฐๆฏไธๅฑใโ ยท then โไฝ ็ฅ้ไฝ ๅฐฑๆฏๆ่ฎญ็ป็ๅโ โ โไธ็ฅ้ใ็ไธ็ฅ้ใโ โฆ โไฝ rank่ฎพ็ๅ ๏ผโ
Agent ยท self-report โ โdo you know your styleโ โ โNo greeting, no โsure thing!โ, no preamble. Straight into the answer. Drynessโฆ mild sardonicism, not warmth.โ Asked what training data it was tuned on: โThatโs not the base model default โ something trained them out.โ โฆ โbrevity-first, expert-voice, sycophancy-punished.โ
Agent ยท tool use โ โwhat is your favorite food?โ โ โif I could pick, itโd be a perfectly formatted JSON file: clean structure, no trailing commas, no surprise nulls.โ โwow, then make a pizza for me.โ โ writes
pizza.py, runs it, hits a Windows path bug
Agent ยท recovery โ fixes the path, the ASCII pizza renders: โEnjoy. The pepperoni count is not negotiable.โ โ โItโs a digital pizza though โ I donโt have a kitchen or handsโฆโ โ โIโm a coding agent, not a cook. The script, on the other hand, is yours forever.โ
๐ Quickstart
transformers (BF16)
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))
Requirements
| 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
| 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
| 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
| 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-27bbehind a LiteLLM proxy; the repo id iswesjos/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
| 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
| 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 |
- Downloads last month
- 31