Downloads · 30 days
114
17% of all-time downloads
umjunsik1323/Qwen2.5-Coder-1.5B-roblox
Qwen2.5-Coder-1.5B-roblox is a text generation model from umjunsik1323. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Downloads · 30 days
114
17% of all-time downloads
All-time downloads
661
Public
Repo size
15.8 MB
Likes
3
Trending 1
Click a slice to open those files.
.json14.2 MB · 70%
From the Hugging Face model README
A specialized code generation model fine-tuned for Roblox Luau programming
No setup required Click the badge above and run the chatbot instantly in your browser.
Qwen2.5 Coder 1.5B Roblox is a parameter-efficient fine-tuned model specifically designed for Roblox Luau development. Built on top of Qwen2.5-Coder-1.5B-Instruct, this model excels at generating, completing, and understanding Luau code patterns commonly used in Roblox game development.
| Component | Details |
|---|---|
| Base Model | Qwen/Qwen2.5-Coder-1.5B-Instruct |
| Adapter Type | LoRA (Low-Rank Adaptation) |
| LoRA Rank | 8 |
| LoRA Alpha | 32 |
| Target Modules | q_proj, v_proj |
| Training Hardware | TPU v5e-8 (Multi-core) |
{
"max_length": 1024,
"batch_size": 4,
"gradient_accumulation_steps": 32,
"learning_rate": 3e-5,
"scheduler": "cosine_annealing",
"epochs": 1,
"optimizer": "AdamW"
}
pip install transformers peft torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen2.5-Coder-1.5B-Instruct",
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-Coder-1.5B-Instruct")
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "umjunsik1323/Qwen2.5-Coder-1.5B-roblox")
# Generate Luau code
messages = [
{"role": "system", "content": "You are a Roblox Luau programming expert."},
{"role": "user", "content": "Create a function to make a part glow"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
# Merge LoRA weights into base model
merged_model = model.merge_and_unload()
merged_model.save_pretrained("./qwen-luau-merged")
-- Completion
"local function teleportPlayer(player, position)"
→ Generates complete teleportation logic
-- Generation
"Create a tween that smoothly moves a part to a new position"
→ Generates TweenService implementation
-- Context-Aware
"Handle player damage with a cooldown system"
→ Generates debounce pattern with Humanoid health management
@misc{youngseong_kim_2025,
author = { Youngseong Kim },
title = { Qwen2.5-Coder-1.5B-roblox (Revision 63e9452) },
year = 2025,
url = { https://huggingface.co/umjunsik1323/Qwen2.5-Coder-1.5B-roblox },
doi = { 10.57967/hf/7093 },
publisher = { Hugging Face }
}
This LoRA adapter is released under Apache 2.0 License, maintaining compatibility with the base Qwen2.5-Coder model.
Made with ❤️ for the Roblox Developer Community