Views
No views yet
"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-0.6b-GGUF1# Download the GGUF
2huggingface-cli download sylvester-francis/rust-mentor-0.6b-GGUF \
3 --local-dir ./models/rust-mentor
4
5# Create Modelfile
6cat > Modelfile << 'MODELFILE'
7FROM ./models/rust-mentor/<gguf-filename>.gguf
8
9SYSTEM """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."""
10
11PARAMETER temperature 0.7
12PARAMETER top_p 0.9
13PARAMETER num_ctx 2048
14MODELFILE
15
16ollama create rust-mentor -f Modelfile
17ollama run rust-mentor "Explain Rust's ownership vs Go's garbage collector"1huggingface-cli download sylvester-francis/rust-mentor-0.6b-GGUF \
2 --local-dir ./models
3
4./llama-cli -m ./models/<gguf-filename>.gguf \
5 -p "Explain and fix this Rust borrow checker error..."| Parameter | Value |
|---|---|
| Base Model | Qwen/Qwen3-0.6B |
| Method | QLoRA via Unsloth |
| LoRA Rank (r) | 8 |
| LoRA Alpha | 8 |
| Target Modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Epochs | 3 |
| Batch Size | 4 x 2 (effective 8) |
| Learning Rate | 2e-4 (cosine schedule) |
| Max Sequence Length | 2048 |
| Hardware | NVIDIA A100 40GB (Google Colab) |