Nanosaur2-670M
well9472 · Kit
Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…
Writes, explains and fixes code as a 7B instruction-tuned member of the Qwen2.5-Coder family. For developers who want a capable open coding model that fits on a single consumer GPU.
Qwen2.5-Coder-7B-Instruct 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.
pip install -U huggingface_hub hf download Qwen/Qwen2.5-Coder-7B-Instruct
Qwen2.5-Coder-7B-Instruct is the 7B instruction-tuned model of the Qwen2.5-Coder series, formerly called CodeQwen. It is built for code generation, code reasoning and code fixing. The series comes in six sizes, from 0.5 to 32 billion parameters.
Developers who want an open coding model of moderate size, to run locally or inside their own tools.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers | Generate and fix code with a local model | Ask for a quick sort routine |
| Dev tooling | Tool builders | Back a code assistant with an open model | Add code completion to an editor plugin |
| Education | Learners | Get code explained step by step | Ask why a loop never ends |
If you need the strongest results the series offers, its 32B sibling is the larger option.
| Use case | Who | What they get back |
|---|---|---|
| Code generation | Developers | Code written from a plain request |
| Code fixing | Developers | A corrected version of broken code |
| Code agents | Tool builders | A model that can sit inside agent workflows |
pip install -U huggingface_hub hf download Qwen/Qwen2.5-Coder-7B-Instruct
Format a system and a user message with the chat template, then generate. The card's snippet below asks for a quick sort algorithm.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Qwen/Qwen2.5-Coder-7B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "write a quick sort algorithm."
messages = [
{"role": "system", "content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]For inputs longer than 32,768 tokens, the card says to add a YaRN setting to config.json, for frameworks that support it.
{
...,
"rope_scaling": {
"factor": 4.0,
"original_max_position_embeddings": 32768,
"type": "yarn"
}
}You run the snippet as it is, which asks the model to write a quick sort algorithm. The variable response holds the model's code answer, up to 512 new tokens.
If you are new, run the snippet above and swap the prompt for a small coding task of your own. A 7B model is a gentle first step before the larger sizes.
For experts, the model has 28 layers with 28 query heads and 4 key-value heads. The default config covers 32,768 tokens, and YaRN stretches it toward the full 131,072. The card says vLLM applies static YaRN, which may hurt shorter texts.
The card says the YaRN setting should only be added when you need long inputs.
Writes, explains and fixes code as a 7B instruction-tuned member of the Qwen2.5-Coder family. For developers who want a capable open coding model that fits on a single consumer GPU.
Made by Qwen 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.
What it is: Qwen2.5-Coder-7B-Instruct is the 7B instruction-tuned model of the Qwen2.5-Coder series, formerly called CodeQwen. It is built for code generation, code reasoning and code fixing. The series comes in six sizes, from 0.5 to 32 billion parameters.
Who it suits: Developers who want an open coding model of moderate size, to run locally or inside their own tools.
Industry | Who uses it | How they use it | Example
Software | Developers | Generate and fix code with a local model | Ask for a quick sort routine
Dev tooling | Tool builders | Back a code assistant with an open model | Add code completion to an editor plugin
Education | Learners | Get code explained step by step | Ask why a loop never ends
If you need the strongest results the series offers, its 32B sibling is the larger option.
Where to use it:
Use case | Who | What they get back
Code generation | Developers | Code written from a plain request
Code fixing | Developers | A corrected version of broken code
Code agents | Tool builders | A model that can sit inside agent workflows
How to set it up:
pip install -U huggingface_hub
hf download Qwen/Qwen2.5-Coder-7B-Instruct
How to use it: Format a system and a user message with the chat template, then generate. The card's snippet below asks for a quick sort algorithm.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "Qwen/Qwen2.5-Coder-7B-Instruct"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "write a quick sort algorithm."
messages = [
{"role": "system", "content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
For inputs longer than 32,768 tokens, the card says to add a YaRN setting to config.json, for frameworks that support it.
{
...,
"rope_scaling": {
"factor": 4.0,
"original_max_position_embeddings": 32768,
"type": "yarn"
}
}
Example: You run the snippet as it is, which asks the model to write a quick sort algorithm. The variable response holds the model's code answer, up to 512 new tokens.
For newcomers and experts: If you are new, run the snippet above and swap the prompt for a small coding task of your own. A 7B model is a gentle first step before the larger sizes.
For experts, the model has 28 layers with 28 query heads and 4 key-value heads. The default config covers 32,768 tokens, and YaRN stretches it toward the full 131,072. The card says vLLM applies static YaRN, which may hurt shorter texts.
You send a coding request
The chat template formats the messages
The model generates code and explanation
You decode the reply and review it
Good to know: The card says the YaRN setting should only be added when you need long inputs.
Title: Qwen2.5-Coder-7B-Instruct figures from the card
Layers: 28 layers
Parameters: 7.61 billion
Non-embedding parameters: 6.53 billion
Full context: 131072 tokens
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download Qwen/Qwen2.5-Coder-7B-Instruct
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Qwen2.5-Coder-7B-Instruct This page | 1,505,999 | 872 | 7.6B | apache-2.0 | |
| Qwen2.5-Coder-14B-InstructShares codeqwen · qwen-coder · qwen2 | 1,860,327 | 214 | 14.8B | apache-2.0 | |
| Qwen2.5-Coder-32B-InstructShares codeqwen · qwen-coder · qwen2 | 546,583 | 2,211 | 32.8B | apache-2.0 | |
| Qwen2.5-Coder-0.5B-InstructShares codeqwen · qwen-coder · qwen2 | 71,013 | 96 | 494M | apache-2.0 | |
| Qwen2.5-Coder-7BShares codeqwen · qwen-coder · qwen2 | 334,246 | 200 | 7.6B | apache-2.0 | |
| Qwen2.5-Coder-7B-Instruct-GGUFShares codeqwen · qwen-coder · chat | 375,860 | 653 | 7.6B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
well9472 · Kit
Makes illustrations from text prompts with a small 670M-parameter diffusion model, run through ComfyUI. Built as a low-budget research model for people who wan…
Waqf-AI · Kit
Reads handwritten Arabic text from images and returns it as text. A fine-tuned PaddleOCR-VL model for people digitizing Arabic handwriting.
Wan-AI · Kit
Makes video clips from a text prompt or an image plus text, at up to 720P and 24 frames per second, in the Diffusers format for a single consumer GPU.
Wan-AI · Kit
Generates cinematic video of a character driven by an audio track, and can also lip-sync existing video. For video creators, animators and researchers with a l…
Wan-AI · Kit
Animates a character or swaps one into a video by copying a performer's movement and expressions, as one model from the Wan2.2 video family. Use only faces and…
vllm-sr · Kit
Answers choice, yes-or-no, score, box and tracking questions about text, images or video in one call, with a probability for each answer. For people building r…