qwen3-1.7b-coding-only-GGUF

A lightweight, CPU-friendly, vocab-pruned & coding-distilled variant of Qwen/Qwen3-1.7B quantized to near-lossless Q6_K GGUF (1.23 GB), built specifically for English + Romanized Hinglish conversation and technical coding on CPU-only laptops.

Key Modifications & Verified Metrics

  1. Lossless BPE-Closure Vocabulary Pruning (151,936 -> 97,408 tokens):
    • Removed 54,528 non-Latin tokens (CJK, Arabic, Cyrillic, Devanagari, Thai, etc.) while keeping 100% of ASCII, English, Romanized Hinglish, code syntax/indentation, 256 byte-fallback tokens, and all 26 Qwen3 special tokens (<|im_start|>, <|im_end|>, <think>, </think>, <tool_call>, FIM tokens).
    • Verified mathematically lossless before training (max_abs_diff = 0.00000 logit equivalence on English, Hinglish, and Python/JS prompts).
  2. Coding Distillation & Hinglish Fine-Tuning (FP16 LoRA r=32, alpha=64):
    • Trained with completion-only loss masking and conservative anti-forgetting LR (6e-5, cosine schedule) on 10,983 curated pure-Latin samples:
      • m-a-p/CodeFeedback-Filtered-Instruction (5,000 samples)
      • ise-uiuc/Magicoder-Evol-Instruct-110K (3,500 samples)
      • nvidia/OpenCodeReasoning (split_0, DeepSeek-R1 distilled <think>...</think>, 1,500 length-filtered samples)
      • Abhishekcr448/Hinglish-Everyday-Conversations-1M (1,200 filtered natural Romanized Hinglish samples)
      • Custom Hinglish technical coding anchor examples (128 samples)
    • Validation loss improved monotonically from 1.5441 -> 0.5908 (-0.9534, zero overfitting).
  3. Near-Lossless Q6_K Quantization & Local CPU Performance:
    • File: qwen3-1.7b-coding-only-Q6_K.gguf (1.23 GB)
    • Total RAM footprint (4K context): ~2.0 GB
    • Verified speed on CPU-only laptop (AMD Ryzen 5 5625U): ~7–13 tokens/sec with zero non-Latin token leakage.

Quick Start (Ollama)

Download qwen3-1.7b-coding-only-Q6_K.gguf and Modelfile from this repository, then run:

ollama create qwen3-1.7b-coding-only -f Modelfile
ollama run qwen3-1.7b-coding-only

Or run directly via Ollama Hugging Face integration:

ollama run hf.co/kaiferen17/qwen3-1.7b-coding-only-GGUF:Q6_K
Downloads last month
182
GGUF
Model size
2B params
Architecture
qwen3
Hardware compatibility
Log In to add your hardware

6-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for kaiferen17/qwen3-1.7b-coding-only-GGUF

Finetuned
Qwen/Qwen3-1.7B
Quantized
(552)
this model