Downloads · 30 days
24
26% of all-time downloads
Daemontatox/Tiny-OR1-Rust-bnb-4bit
Tiny-OR1-Rust-bnb-4bit is a feature extraction model from Daemontatox. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a quantized version of the original model Daemontatox/Tiny-OR1-Rust.
Downloads · 30 days
24
26% of all-time downloads
All-time downloads
91
Public
Parameters
1.8B
1.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 99%
How the weights are stored.
U81.5B · 82%
From the Hugging Face model README
This model is a quantized version of the original model Daemontatox/Tiny-OR1-Rust.
It's quantized using the BitsAndBytes library to 4-bit using the bnb-my-repo space.
A lightweight Rust code assistant model for code generation, completion, and explanation.
Tiny-OR1-Rust is a specialized language model fine-tuned from Qwen3-1.7B for Rust programming tasks. Built on the efficient Qwen3 architecture, this 1.7B parameter model provides effective code generation, completion, and explanation capabilities specifically tailored for the Rust programming language while maintaining a compact footprint.
from transformers import AutoTokenizer, AutoModelForCausalLM
# Load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("Daemontatox/Tiny-OR1-Rust")
model = AutoModelForCausalLM.from_pretrained("Daemontatox/Tiny-OR1-Rust")
# Example prompt
prompt = "Write a Rust function to calculate factorial:"
# Generate code
inputs = tokenizer.encode(prompt, return_tensors="pt")
outputs = model.generate(inputs, max_length=150, temperature=0.7, pad_token_id=tokenizer.eos_token_id)
generated_code = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(generated_code)
Code Generation:
"Write a Rust function that reads a file and counts the number of lines:"
"Create a Rust struct for a binary tree with insert and search methods:"
"Implement a thread-safe counter using Arc and Mutex in Rust:"
Code Explanation:
"Explain this Rust code: fn main() { let x = vec![1, 2, 3]; }"
"What does the ? operator do in Rust error handling?"
The model was trained on the Tesslate/Rust_Dataset, which contains:
The model demonstrates strong performance in:
[Specify license - e.g., MIT, Apache 2.0, etc.]
@misc{tiny-or1-rust,
title={Tiny-OR1-Rust: A Lightweight Rust Code Assistant Based on Qwen3},
author={Daemontatox},
year={2024},
howpublished={\url{https://huggingface.co/Daemontatox/Tiny-OR1-Rust}},
note={Fine-tuned from Qwen3-1.7B on Tesslate/Rust_Dataset}
}
For questions, issues, or contributions, please contact [your contact information or GitHub profile].
This model is part of ongoing efforts to make Rust programming more accessible through AI assistance.