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
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
Created: 2026-01-23
Updated: 2026-01-23
View on Hugging FaceFiles (16)
Related models
More from hussnainzafar
No other models by this author.
More models
No task type declared.