ONNX Model Zoo

hussnainzafar/qwen2.5-coder-0.5b-python-instruct-onnx

By hussnainzafar · ↓ 5 · ♥ 0 · Updated 2026-01-23

What's in this repo

This page lists the files in hussnainzafar/qwen2.5-coder-0.5b-python-instruct-onnx, including model.onnx, model_q4.onnx.

  • 2 ONNX models (.onnx files)
  • 16 files, including 7 .json, 2 .onnx, 2 .onnx_data, 1 .md, 1 .jinja, 1 .txt
  • Last updated 2026-01-23

ONNX files

File Size Download
model.onnx — Download
onnx/model_q4.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

Qwen2.5-Coder-0.5B Python Instruct (ONNX)

Author: Hussnain Zafar
Fine-tuned by: Hussnain Zafar

This model is a fine-tuned version of Qwen/Qwen2.5-Coder-0.5B-Instruct, optimized for Python instruction following and exported to ONNX for efficient browser and WebAssembly inference.


Model Details

  • Base model: Qwen/Qwen2.5-Coder-0.5B-Instruct
  • Fine-tuning method: LoRA
  • Dataset: python_code_instructions_18k_alpaca
  • Task: Python code generation, instruction following
  • Framework: PyTorch → ONNX
  • Inference: onnxruntime / transformers.js

Training

  • Trainable parameters: ~1.75%
  • Hardware: GPU
  • Precision: FP16
  • Sequence length: 256

Usage (Browser / transformers.js)

import { pipeline } from "@huggingface/transformers";

const generator = await pipeline(
  "text-generation",
  "hussnainzafar/qwen2.5-coder-0.5b-python-instruct-onnx"
);

const result = await generator(
  "Write a Python function to check if a string is a palindrome"
);

console.log(result[0].generated_text);

Acknowledgements

  • Qwen team for the base model
  • Hugging Face for tooling and hosting

License

This model follows the same license as the base Qwen model.

Model info

onnx qwen2 region:us
↓ 5 ♥ 0

Created: 2026-01-23

Updated: 2026-01-23

View on Hugging Face

Files (16)

.gitattributes
LICENSE
README.md
added_tokens.json
chat_template.jinja
config.json
generation_config.json
merges.txt
model.onnx ONNX
model.onnx_data
onnx/model_q4.onnx ONNX
onnx/model_q4.onnx_data
special_tokens_map.json
tokenizer.json
tokenizer_config.json
vocab.json

Related models