Downloads · 30 days
0
Superuser666-Sigil/Llama-3.1-8B-Instruct-Rust-QLora
Llama-3.1-8B-Instruct-Rust-QLora is a text generation model from Superuser666-Sigil. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
This card describes checkpoint 9000 of the Phase 1 Rust QLoRA run. For the full training plan, governance details, and final recommended checkpoints, see the root model card in the repository.
Downloads · 30 days
0
Access
Public
Updated Nov 20, 2025
Repo size
2 GB
Likes
0
Public
Click a slice to open those files.
.safetensors2.3 GB · 62%
From the Hugging Face model README
This card describes checkpoint 9000 of the Phase 1 Rust QLoRA run.
For the full training plan, governance details, and final recommended checkpoints, see the root model card in the repository.
Important: This repository distributes LoRA adapter weights only, not the full
meta-llama/Meta-Llama-3.1-8B-Instructmodel.
To use these adapters, you must separately obtain access to the base model from Meta under the Llama 3.1 Community License and comply with Meta's license and acceptable-use policy. The adapters alone are not useful without the base model.
This is a QLoRA fine-tuned LoRA adapter on top of meta-llama/Meta-Llama-3.1-8B-Instruct specifically trained on Rust code. The model uses 4-bit quantization with LoRA (Low-Rank Adaptation) adapters for efficient training and inference.
The primary modality is Rust code with English comments and explanations.
This checkpoint is part of the SigilDERG ecosystem and is intended as a building block for Rust-focused evaluation and governance tooling, not as a general-purpose all-domain assistant.
meta-llama/Meta-Llama-3.1-8B-Instructpaged_adamw_8bitq_proj, k_proj, v_proj, o_proj, up_proj, down_proj, gate_projThese adapters are intended to be loaded on top of the unmodified base weights.
Phase 1 was trained on:
ammarnasr/the-stack-rust-cleanDataset configuration for this phase:
Phase 1 is a broad-inhale pass over cleaned Rust from The Stack. Later phases are designed to be more selective and incorporate explicit evaluation feedback.
Latest logged training metrics in the vicinity of this checkpoint:
Note: Logging occurs every few steps, so
log_stepreflects the nearest logged step to the checkpoint.
All evaluation here is based on automatic Rust-focused checks (compile, clippy, idiomatic heuristics, doc comments, prompt adherence) over a small but structured evaluation set.
metrics.jsonl – compilation success, clippy warnings, idiomatic scores, doc detection, and structural statserrors.jsonl – rustc diagnostics, clippy output, and runtime error messages(Replace these with your actual Hugging Face links as needed:)
Evaluation completed: 2025-11-20T05:03:45.292778
This checkpoint is part of the SigilDERG ecosystem and follows Rule Zero principles:
Primary Intended Use
Not Intended For
Users remain responsible for:
This work is not affiliated with or endorsed by Meta.
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model (requires access from Meta under the Llama 3.1 Community License)
base_model = AutoModelForCausalLM.from_pretrained(
"meta-llama/Meta-Llama-3.1-8B-Instruct",
device_map="auto",
torch_dtype=torch.bfloat16
)
# Load LoRA adapter (this checkpoint)
model = PeftModel.from_pretrained(
base_model,
"Superuser666-Sigil/Llama-3.1-8B-Instruct-Rust-QLora/checkpoint-9000" # or your local path
)
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Meta-Llama-3.1-8B-Instruct")
# Format prompt for the instruct model
messages = [
{"role": "system", "content": "You are a helpful Rust programming assistant."},
{"role": "user", "content": "Write a function that calculates Fibonacci numbers."}
]
# Apply chat template
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
# Generate
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
temperature=0.7,
top_p=0.9
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Note: You must load the Meta base model first and then apply this LoRA checkpoint.
The base weights are not redistributed in this repository.
This adapter is tuned specifically for Rust code; performance on other programming languages or general natural language tasks may be degraded relative to the base model.
The model inherits any limitations, biases, and failure modes from:
meta-llama/Meta-Llama-3.1-8B-Instruct model.ammarnasr/the-stack-rust-clean).Evaluation so far is focused on:
It should not be treated as a fully benchmarked or certified Rust expert.
Generated code should always be reviewed, tested, and security-audited (where relevant) before use.
If you use this model or its training pipeline, please cite:
@software{sigilderg_finetuner,
title = {SigilDERG Rust Code Fine-tuned Model},
author = {Dave Tofflemire (Superuser666-Sigil)},
year = {2025},
url = {https://github.com/Superuser666-Sigil/SigilDERG-Finetuner}
}
You should also follow any citation or attribution requirements specified in the Llama 3.1 Community License when referencing the base model.
This repository combines several components with different licenses:
Base Model (not included here)
meta-llama/Meta-Llama-3.1-8B-InstructLoRA Adapter Weights (this checkpoint)
The adapter weights in this repository are my original contribution and are provided under the MIT License, only to the extent compatible with the Llama 3.1 Community License.
You may not use the combined base model + adapters in ways that violate Meta's license or acceptable-use policy, even though the adapter deltas themselves are MIT.
Training & Evaluation Code (SigilDERG-Finetuner, configs, scripts)
Practical summary:
To actually run this model, you must:
meta-llama/Meta-Llama-3.1-8B-Instruct under Meta's terms.The MIT terms apply to the adapters and the SigilDERG code, but do not override or relax Meta's license.
This project is independent and not affiliated with or endorsed by Meta.