Mindket

Unity Coder 7B

Newversion 1 · updated

Overview

Answers Unity game development questions and writes C# scripts, XR code and editor tools, as a fine-tune of Qwen2.5-Coder-7B-Instruct. For Unity developers who want a local coding assistant.

Unity Coder 7B is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python with pip, plus Transformers and PyTorch
  • Memory for about 15.2 GB in BF16, or about 3.8 GB at 4-bit as an estimate
Runs in
  • Python with Transformers
  • A GPU or a machine with enough memory for the weights
  • Windows, macOS or Linux, where the files download with Python
Start with
pip install -U huggingface_hub
hf download vishnuOI/unity-coder-7b

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Unity Coder 7B is a fine-tune of Qwen2.5-Coder-7B-Instruct for Unity game development in C#. It was trained with QLoRA on 1,687 Unity C# instruction pairs over three epochs. The record lists about 7.6B parameters.

Who it suits

It suits Unity developers who want help with scripts, XR developers, and tool builders who write editor extensions.

IndustryWho uses itHow they use itExample
Game developmentUnity developersAsk for C# scripts and fixesHow to detect a collision between two objects
XR and VRXR developersGet help with OpenXR and the XR Interaction ToolkitAsk how to set up a grab interaction
ToolsEditor tool authorsDraft editor scripts and toolingAsk for an editor script that automates a repeated task

Anyone who works outside Unity or C# can skip it, since the tuning targets that one area.

Where to use it

  • Python with Transformers
  • A GPU or a machine with enough memory for the weights
  • Windows, macOS or Linux, where the files download with Python
Use caseWhoWhat they get back
Unity C# scriptingUnity developersCode for MonoBehaviour, ScriptableObjects and coroutines
XR developmentXR developersGuidance on OpenXR and the XR Interaction Toolkit
Physics, animation and UIGame developersHelp with physics, animation and UI Toolkit
Performance workDevelopersOptimization patterns

How to set it up

  • Python with pip, plus Transformers and PyTorch
  • Memory for about 15.2 GB in BF16, or about 3.8 GB at 4-bit as an estimate
  1. Install the Hugging Face hub client.
  2. Download the model files, or let Transformers fetch them by name.
  3. Run the usage snippet below.
pip install -U huggingface_hub
hf download vishnuOI/unity-coder-7b

How to use it

Load the model and tokenizer, build a chat prompt with a system message and your question, then call generate and decode the reply.

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "vishnuOI/unity-coder-7b"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {"role": "system", "content": "You are an expert Unity game developer specializing in C# scripting and XR development."},
    {"role": "user", "content": "How do I detect collision between two objects in Unity?"},
]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)

with torch.no_grad():
    outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7, do_sample=True)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))
ToolWhat it does
from_pretrainedLoads the tokenizer and the model in bfloat16
apply_chat_templateTurns the system and user messages into one prompt
generateWrites the reply, up to 512 new tokens at temperature 0.7

Example

You send the snippet's question about detecting a collision between two objects in Unity, with a system message that names the model an expert Unity developer. It replies with a written answer, and you test the code in your own project.

For newcomers and experts

Think of it as a coding helper that already knows Unity vocabulary. Run the snippet as written, then swap in your own question.

The tuning used QLoRA with 4-bit NF4 weights, rank 16 and alpha 32. The dataset of 1,687 pairs is small, so expect it to cover common Unity tasks better than rare ones.

  1. Start from Qwen2.5-Coder-7B-Instruct
  2. Fine-tune with QLoRA on Unity C# pairs
  3. Load the result with Transformers
  4. Ask a Unity question and read the reply

Good to know

  • Training: 1,687 instruction pairs and 3 epochs, which is a small set
  • Size: about 7.6B parameters, and the record lists English
  • License: CC BY 4.0
  • Cost to run: none named
  • Data it reaches: the prompts you send to the model, with no web or account access named
  • Not for: work outside Unity and C#, which the card does not target

README and files

README

Unity Coder 7B

Answers Unity game development questions and writes C# scripts, XR code and editor tools, as a fine-tune of Qwen2.5-Coder-7B-Instruct. For Unity developers who want a local coding assistant.

Made by vishnuOI on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: Unity Coder 7B is a fine-tune of Qwen2.5-Coder-7B-Instruct for Unity game development in C#. It was trained with QLoRA on 1,687 Unity C# instruction pairs over three epochs. The record lists about 7.6B parameters.

Who it suits: It suits Unity developers who want help with scripts, XR developers, and tool builders who write editor extensions.

Industry | Who uses it | How they use it | Example
Game development | Unity developers | Ask for C# scripts and fixes | How to detect a collision between two objects
XR and VR | XR developers | Get help with OpenXR and the XR Interaction Toolkit | Ask how to set up a grab interaction
Tools | Editor tool authors | Draft editor scripts and tooling | Ask for an editor script that automates a repeated task

Anyone who works outside Unity or C# can skip it, since the tuning targets that one area.

Where to use it:

  • Python with Transformers
  • A GPU or a machine with enough memory for the weights
  • Windows, macOS or Linux, where the files download with Python
Use case | Who | What they get back
Unity C# scripting | Unity developers | Code for MonoBehaviour, ScriptableObjects and coroutines
XR development | XR developers | Guidance on OpenXR and the XR Interaction Toolkit
Physics, animation and UI | Game developers | Help with physics, animation and UI Toolkit
Performance work | Developers | Optimization patterns

How to set it up:

  • Python with pip, plus Transformers and PyTorch
  • Memory for about 15.2 GB in BF16, or about 3.8 GB at 4-bit as an estimate
  1. Install the Hugging Face hub client.
  2. Download the model files, or let Transformers fetch them by name.
  3. Run the usage snippet below.
pip install -U huggingface_hub
hf download vishnuOI/unity-coder-7b

How to use it: Load the model and tokenizer, build a chat prompt with a system message and your question, then call generate and decode the reply.

from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "vishnuOI/unity-coder-7b"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    torch_dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {"role": "system", "content": "You are an expert Unity game developer specializing in C# scripting and XR development."},
    {"role": "user", "content": "How do I detect collision between two objects in Unity?"},
]

text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)

with torch.no_grad():
    outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7, do_sample=True)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Tool | What it does
from_pretrained | Loads the tokenizer and the model in bfloat16
apply_chat_template | Turns the system and user messages into one prompt
generate | Writes the reply, up to 512 new tokens at temperature 0.7

Example: You send the snippet's question about detecting a collision between two objects in Unity, with a system message that names the model an expert Unity developer. It replies with a written answer, and you test the code in your own project.

For newcomers and experts: Think of it as a coding helper that already knows Unity vocabulary. Run the snippet as written, then swap in your own question.

The tuning used QLoRA with 4-bit NF4 weights, rank 16 and alpha 32. The dataset of 1,687 pairs is small, so expect it to cover common Unity tasks better than rare ones.

Start from Qwen2.5-Coder-7B-Instruct
Fine-tune with QLoRA on Unity C# pairs
Load the result with Transformers
Ask a Unity question and read the reply

Good to know:

  • Training: 1,687 instruction pairs and 3 epochs, which is a small set
  • Size: about 7.6B parameters, and the record lists English
  • License: CC BY 4.0
  • Cost to run: none named
  • Data it reaches: the prompts you send to the model, with no web or account access named
  • Not for: work outside Unity and C#, which the card does not target

On Hugging Face, 13 November 2026

  • Parameters: 7.6B
  • Weights: about 15.2 GB in BF16; about 3.8 GB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 146
  • Likes: 4
  • License: cc-by-4.0
  • Languages: en
  • Based on: Qwen/Qwen2.5-Coder-7B-Instruct
  • Quantized versions: 2
  • Tags: safetensors, qwen2, unity, unity3d, game-development, csharp, openxr, code, finetuned

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download vishnuOI/unity-coder-7b

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Unity Coder 7B This page14647.6Bcc-by-4.0
Qwen2.5-Coder-14B-InstructShares qwen2 · code · safetensors1,860,32721414.8Bapache-2.0
Qwen2.5-Coder-7B-InstructShares qwen2 · code · safetensors1,505,9998727.6Bapache-2.0
Qwen2.5-Coder-32B-InstructShares qwen2 · code · safetensors546,5832,21132.8Bapache-2.0
Qwen2.5-Coder-7BShares qwen2 · code · safetensors334,2462007.6Bapache-2.0
Qwen2.5-Coder-0.5B-InstructShares qwen2 · code · safetensors71,01396494Mapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Developer

See all in Developer

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k

open-code-review

alibaba · Kit

Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…

New50.7k