Downloads · 30 days
96
12% of all-time downloads
sylvester-francis/rust-mentor-8b-GGUF
rust-mentor-8b-GGUF is a text generation model from sylvester-francis. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
RustMentor-8B-GGUF is a 8B-parameter Qwen3-based model fine-tuned for Rust programming education and code review. It merges the base model with LoRA adapters and includes GGUF quantization for local/mobile/Ollama work…
Downloads · 30 days
96
12% of all-time downloads
All-time downloads
781
Public
Repo size
5 GB
Likes
1
Public
Click a slice to open those files.
.gguf5 GB · 100%
From the Hugging Face model README
RustMentor-8B-GGUF is a 8B-parameter Qwen3-based model fine-tuned for Rust programming education and code review. It merges the base model with LoRA adapters and includes GGUF quantization for local/mobile/Ollama workflows.
This repository hosts the GGUF quantized model (Q4_K_M) for lightweight inference. For the LoRA adapter, see rust-mentor-8b.
Primary: Offline Rust programming tutor on Android (Pixel 8 Pro tested) via PocketPal AI, or local inference via Ollama/llama.cpp.
Out-of-scope: General-purpose chat, non-Rust programming, safety-sensitive or factual tasks outside Rust development.
"In Go, I just pass values or pointers. What's this ownership thing in Rust?"
"Review this Rust code and explain what the borrow checker is doing:\n\nfn get_longest(a: String, b: String) -> String {\n if a.len() > b.len() { a } else { b }\n}"
"How do I handle errors in Rust? I'm used to Go's if err != nil pattern."
"How does async work in Rust? In Go I just use goroutines and it's simple."
sylvester-francis/rust-mentor-8b-GGUF# Download the GGUF
huggingface-cli download sylvester-francis/rust-mentor-8b-GGUF \
--local-dir ./models/rust-mentor
# Create Modelfile
cat > Modelfile << 'MODELFILE'
FROM ./models/rust-mentor/<gguf-filename>.gguf
SYSTEM """You are RustMentor, an expert Rust programming tutor. The student is an experienced Go, Python, and TypeScript developer learning Rust by building CLI tools. Draw parallels to Go/Python/TypeScript concepts. Explain ownership, borrowing, and lifetimes with practical examples."""
PARAMETER temperature 0.7
PARAMETER top_p 0.9
PARAMETER num_ctx 2048
MODELFILE
ollama create rust-mentor -f Modelfile
ollama run rust-mentor "Explain Rust's ownership vs Go's garbage collector"
huggingface-cli download sylvester-francis/rust-mentor-8b-GGUF \
--local-dir ./models
./llama-cli -m ./models/<gguf-filename>.gguf \
-p "Explain and fix this Rust borrow checker error..."
| Parameter | Value |
|---|---|
| Base Model | Qwen/Qwen3-8B |
| Method | QLoRA via Unsloth |
| LoRA Rank (r) | 32 |
| LoRA Alpha | 32 |
| Target Modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Epochs | 3 |
| Batch Size | 2 x 4 (effective 8) |
| Learning Rate | 2e-4 (cosine schedule) |
| Max Sequence Length | 2048 |
| Hardware | NVIDIA A100 40GB (Google Colab) |
Qualitative checks on Rust tutoring prompts show:
Apache 2.0 for the fine-tuned model; base model (Qwen/Qwen3-8B) license also applies.