Downloads · 30 days
1.2K
23% of all-time downloads
MassivDash/Gemma-4-RUST-CODER-12B
Gemma-4-RUST-CODER-12B is a text generation model from MassivDash. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
This model is a specialized fine-tune of Google's Gemma-4-12B-it, rigorously optimized for Rust systems programming, memory safety patterns, and high-performance application development.
Downloads · 30 days
1.2K
23% of all-time downloads
All-time downloads
5.2K
Public
Repo size
93 GB
Likes
10
Public
Click a slice to open those files.
.gguf93 GB · 100%
From the Hugging Face model README
This model is a specialized fine-tune of Google's Gemma-4-12B-it, rigorously optimized for Rust systems programming, memory safety patterns, and high-performance application development.
While the base model provides excellent general reasoning, this fine-tune specifically enhances idiomatic Rust code generation, handling of advanced concurrency constraints, and standard library familiarity.
google/gemma-4-12B-itResult and Option handling, idiomatic error propagation).Send/Sync traits, and async runtimes like Tokio.Special thanks to Fortytwo-Network for providing the Strandset-Rust-v1 dataset. This model's specialized knowledge of the Rust ecosystem is a direct result of fine-tuning on this high-quality, domain-specific instruction set.
This model was trained using Unsloth Studio for optimal memory efficiency and throughput.
You can easily load and run this model using the Hugging Face transformers library.
Installation:
pip install transformers accelerate torch
Inference Snippet:
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "MassivDash/Gemma-4-12B-Rust-Coder"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
torch_dtype=torch.bfloat16
)
messages = [
{"role": "user", "content": "Write an asynchronous Rust function using Tokio to fetch a URL and return its body as a String. Handle errors idiomatically."}
]
inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to("cuda")
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.2)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
For more insights on AI development, custom integrations, and fine-tuning, visit my blog: 👉 spaceout.pl
This model was trained 2x faster with Unsloth