YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Qwen2.5-3B-Instruct (LoRA DOT Fine-Tune, GGUF Q5)

A parameter-efficient fine-tune of Qwen2.5-3B-Instruct specialized for Graphviz DOT code generation.
This model was trained with LoRA adapters and exported in GGUF Q5_K_M quantization for lightweight, portable inference.


πŸ“Œ Model Summary

  • Base Model: Qwen2.5-3B-Instruct (bnb-4bit)
  • Fine-tuning Method: LoRA (Low-Rank Adaptation)
  • Export Format: GGUF (llama.cpp-compatible)
  • Quantization: Q5_K_M (5-bit, medium precision)
  • File Size: 2.22 GB
  • License: Apache 2.0
  • Task: Natural language β†’ Graphviz DOT code
  • Hosting: Hugging Face Hub

πŸš€ Motivation

The base Qwen2.5-3B-Instruct model often produced:

  • ❌ Syntax errors (malformed nodes/edges, unclosed brackets, invalid attributes)
  • ❌ Hallucinated content (extra nodes/edges not in the prompt)

Fine-tuning with LoRA adapters on a curated dataset of 671 compiler-validated DOT examples resolved these issues, ensuring structurally valid DOT syntax generation.


πŸ“‚ Training Details

  • Dataset Source: Graphviz Gallery (paired natural-language prompts + DOT code)
  • Validation: Every DOT sample compiled successfully before inclusion
  • Final Corpus: ~671 bug-free instruction/output pairs
  • Format: Alpaca-style JSON (train.jsonl, val.jsonl)
  • Trainer: Hugging Face trl.SFTTrainer
  • Environment: Google Colab GPU runtime

βš™οΈ Technical Stack

  • Unsloth – optimized fine-tuning framework
  • Unsloth Zoo – pretrained configs + utilities
  • Tokenizer Utils – fixes for DOT-specific symbols
  • TRL – supervised fine-tuning trainer
  • Causal Convid + Mamba SSM – efficient sequence modeling for long DOT scripts
  • Ninja + shutil – build + file management utilities

πŸ“¦ Repository Contents

  • Qwen2.5-3B-Instruct.Q5_K_M.gguf (2.22 GB) – quantized model weights
  • README.md – model card
  • .gitattributes – LFS configuration

πŸ–₯️ Inference & Deployment

Compatible runtimes:

Example (llama.cpp CLI):

./main -m Qwen2.5-3B-Instruct.Q5_K_M.gguf -p "Generate a DOT diagram for a binary tree"
Downloads last month
11
GGUF
Model size
3B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

5-bit

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