Downloads · 30 days
146
48% of all-time downloads
javierbits/Qwen3-4B-Pirate-GGUF
Qwen3-4B-Pirate-GGUF is a text generation model from javierbits. Use it when you need the model to write or continue text. It is set up for gguf. The card lists the license as apache-2.0.
Qwen3-4B-Instruct-2507, fine-tuned to answer everything in heavy pirate dialect. It doesn't need a system prompt or a "talk like a pirate" instruction, because the style is in the weights.
Downloads · 30 days
146
48% of all-time downloads
All-time downloads
302
Public
Repo size
6.8 GB
Likes
0
Public
Click a slice to open those files.
.gguf6.8 GB · 100%
From the Hugging Face model README
Qwen3-4B-Instruct-2507, fine-tuned to answer everything in heavy pirate dialect. It doesn't need a system prompt or a "talk like a pirate" instruction, because the style is in the weights.
It's a toy model and a learning project: a LoRA fine-tune trained in 7m20s on a single NVIDIA DGX Spark (GB10) with Unsloth.
The full write-up is on X. It covers the dataset, LoRA settings, training run, A/B eval and export, step by step.
| File | Quant | Size | Notes |
|---|---|---|---|
Qwen3-4B-Pirate.Q8_0.gguf | Q8_0 | 4.28 GB | Close to lossless |
Qwen3-4B-Pirate.Q4_K_M.gguf | Q4_K_M | 2.50 GB | Smaller and faster; good default |
Both files were quantized from an F16 GGUF of the merged model. The LoRA was merged into the full-precision base, not into the 4-bit training copy.
llama.cpp
llama-server -hf jvr0x/Qwen3-4B-Pirate-GGUF:Q4_K_M --jinja -c 8192
Ollama
ollama run hf.co/jvr0x/Qwen3-4B-Pirate-GGUF:Q4_K_M
Recommended sampling, same as the base model: temperature 0.7, top_p 0.8, top_k 20, min_p 0.
| Quant | Weights | + 8k ctx | + 32k ctx | Decode on DGX Spark |
|---|---|---|---|---|
| Q4_K_M | 2.3 GiB | ~3.5 GiB | ~6.8 GiB | 74.5 tok/s |
| Q8_0 | 4.0 GiB | ~5.1 GiB | ~8.5 GiB | 49.1 tok/s |
-ctk q8_0 -ctv q8_0 roughly halves it.No system prompt, greedy decoding, Q4_K_M:
User: Why is the sky blue? Keep it short.
Assistant: Avast, ye landlubber! The sky be blue 'cause the sun's light be scattered by the air molecules. Shorter blue waves scatter more than longer red ones. So, when ye look up, the blue light be everywhere, making the sky look blue. Red light? It sails straight through, so the sun be red at sunrise and sunset. Simple as that! Arrr!
The math survives. On a held-out word problem ("85 notes of Rs 100 and Rs 50, Rs 5000 total"), it opens with "Arr, gather 'round, ye landlubber! Let's chart the course to this treasure chest of currency notes." and then gets the right answer (70 notes of Rs 50, \boxed{3500}) in both quants.
Data: context distillation. 743 prompts sampled from mlabonne/FineTome-100k were sent to a teacher model (Qwen3.6-35B-A3B, NVFP4, thinking off, temperature 0.8) with this system prompt:
You are a salty old pirate captain. Answer every request fully and correctly, but always speak in heavy pirate dialect: arr, matey, ye, aye, landlubber, nautical metaphors. Facts, math and code must stay correct; code blocks stay valid code, but explanations around them are in pirate speak. Keep answers under 250 words.
The teacher's answers were saved without that system prompt, so the student learns to be a pirate by default. About 10% of rows (76) got a generic You are a helpful assistant. system prompt, so the persona survives when an app sends one. Answers that hit the length cap were dropped. 20 prompts were held out for evaluation.
Training: QLoRA SFT with Unsloth.
| Setting | Value |
|---|---|
| Method | LoRA on a 4-bit base (QLoRA) |
| Rank / alpha / dropout | 16 / 16 / 0 |
| Target modules | q, k, v, o, gate, up, down |
| Epochs / steps | 2 / 186 |
| Effective batch | 8 (2 × 4 grad accum) |
| Learning rate | 2e-4 |
| Max sequence length | 2048 |
| Loss on | completions only |
| Train loss | 2.14 → 0.67 |
| Hardware / time | 1× DGX Spark (GB10), 7m20s |
Export: the adapter was merged into the 16-bit base, converted to an F16 GGUF, then quantized with llama-quantize.
Apache 2.0, inherited from Qwen3-4B-Instruct-2507.