alt.freeweights.qwen / Qwen2-0.5B-Instruct-ONNX
From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.qwenSubject:

Qwen2-0.5B-Instruct-ONNX

Date: 2026-11-15Commit: a9a2d15Signed: 2DC28CC7B26A283B ✓

Text generation model. Onnx weights, 6.46 GB in all. Published by onnx-community under Apache-2.0.

qwen6.46GBQwen2-0.5B-Instruct-ONNXonnxpermissive
FactsParamsnot statedSize6.46 GBFormatsonnxTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/Qwen2-0.5B-Instruct-ONNX
# manifest sha256 5ad118ab823e… · 6.46 GB · 19 files
$ fw verify ./Qwen2-0.5B-Instruct-ONNX onnx-community/Qwen2-0.5B-Instruct-ONNX
From sourceHosted (signed)onnx-community/Qwen2-0.5B-Instruct-ONNXLast check: 2026-11-15 05:26 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of Qwen2-0.5B-Instruct.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Overview

Size
6.46 GB
Weights
474 MB (smallest of 8 ONNX variants)
Parameters
not stated
Formats
onnx
Task
text generation
License
Apache-2.0 (permissive)
Files
19, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.qwen
Lineage

Original release from the publisher.

Base model: Qwen/Qwen2-0.5B-Instruct

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:26 UTCpassed

Model card

From the publisher at commit a9a2d15. Shown as plain text with links; images open at the publisher.

Qwen2-0.5B-Instruct (ONNX)#

This is an ONNX version of Qwen/Qwen2-0.5B-Instruct. It was automatically converted and uploaded using this Hugging Face Space.

Usage with Transformers.js#

See the pipeline documentation for text-generation: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.TextGenerationPipeline


Qwen2-0.5B-Instruct#

Introduction#

Qwen2 is the new series of Qwen large language models. For Qwen2, we release a number of base language models and instruction-tuned language models ranging from 0.5 to 72 billion parameters, including a Mixture-of-Experts model. This repo contains the instruction-tuned 0.5B Qwen2 model.

Compared with the state-of-the-art opensource language models, including the previous released Qwen1.5, Qwen2 has generally surpassed most opensource models and demonstrated competitiveness against proprietary models across a series of benchmarks targeting for language understanding, language generation, multilingual capability, coding, mathematics, reasoning, etc.

For more details, please refer to our blog, GitHub, and Documentation.

Model Details#

Qwen2 is a language model series including decoder language models of different model sizes. For each size, we release the base language model and the aligned chat model. It is based on the Transformer architecture with SwiGLU activation, attention QKV bias, group query attention, etc. Additionally, we have an improved tokenizer adaptive to multiple natural languages and codes.

Training details#

We pretrained the models with a large amount of data, and we post-trained the models with both supervised finetuning and direct preference optimization.

Requirements#

The code of Qwen2 has been in the latest Hugging face transformers and we advise you to install transformers>=4.37.0, or you might encounter the following error:

KeyError: 'qwen2'

Quickstart#

Here provides a code snippet with apply_chat_template to show you how to load the tokenizer and model and how to generate contents.

from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda" # the device to load the model onto

model = AutoModelForCausalLM.from_pretrained(
    "Qwen/Qwen2-0.5B-Instruct",
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-0.5B-Instruct")

prompt = "Give me a short introduction to large language model."
messages = [
    {"role": "system", "content": "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(device)

generated_ids = model.generate(
    model_inputs.input_ids,
    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]

Evaluation#

We briefly compare Qwen2-0.5B-Instruct with Qwen1.5-0.5B-Chat. The results are as follows:

DatasetsQwen1.5-0.5B-ChatQwen2-0.5B-InstructQwen1.5-1.8B-ChatQwen2-1.5B-Instruct
MMLU35.037.943.752.4
HumanEval9.117.125.037.8
GSM8K11.340.135.361.6
C-Eval37.245.255.363.8
IFEval (Prompt Strict-Acc.)14.620.016.829.0

Citation#

If you find our work helpful, feel free to give us a cite.

@article{qwen2,
  title={Qwen2 Technical Report},
  year={2024}
}

Files

19 files · 6.46 GBWeights 474 MB (smallest of 8 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 19 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md4.08 KBb33b6be118e123ebaaa8495c69c4acec98e0d9d430a90878a6f12363beb22d42
added_tokens.json80 B6a475432c61f8d6154d10d28c37671a36e5717daf3d15002a988968fee54a500
config.json770 B57742baa198388c2d1e5ea66ed50850d8e02265bbaf83ebed20d88bfce03ebc2
generation_config.json242 B722a06091ec871c6cbc3dda5412f294267bcd5d9310f4ffbef1d358000dd3bfc
merges.txt1.67 MB8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5
onnx/model.onnx1.98 GBebc10167c626fe2cfed99861212392809c37d71dbae2f9de2d6aef1127336b11
onnx/model_bnb4.onnx747 MB9cc180c835d4f7fcba42469f81b425a41bc7ae129b85648f89814d3e7fb26c9d
onnx/model_fp16.onnx989 MBb40454ef4620f62efa154e6eb620c2e17347897c00cabbb8191056562b2daccb
onnx/model_int8.onnx495 MB6989b9564aebf6cf18d9eae0cadc46937faf792db3382f06d9f58f4c626ebd28
onnx/model_q4.onnx769 MBaba223234724772a0c0d8f3f64db18d9b8aa071240374045bf05338f2557953a
onnx/model_q4f16.onnx474 MB0faf57ab2667d4923d1a2c53c4af080cc7bd5fcf9cf9310058267741c5252947
onnx/model_quantized.onnx495 MB6989b9564aebf6cf18d9eae0cadc46937faf792db3382f06d9f58f4c626ebd28
onnx/model_uint8.onnx495 MBbdae44c70e7318bc749c0b85f0b73c1024e61c274d01256c18429299ad3f1ed0
quantize_config.json312 B70f61db8708568fa3ee6e66ecbcfdb8a89b9069feadff679dea00b097e521c98
special_tokens_map.json367 Bf4f79e08d97f4d1c87f8d89264f525c8789da3b73b3bb55d1e12f692f41a7b1b
tokenizer.json11.4 MBbcfe42da0a4497e8b2b172c1f9f4ec423a46dc12907f4349c55025f670422ba9
tokenizer_config.json1.33 KB387fbfa93d7a0032f4607c13e4a0e3d2674846e5d9af451ff8b784636cc64590
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
a9a2d1512f pinned now2026-11-15 05:26 UTC19 files · 6.46 GB

Use it

$ fw get onnx-community/Qwen2-0.5B-Instruct-ONNX
# manifest sha256 5ad118ab823e… · 6.46 GB · 19 files
$ fw verify ./Qwen2-0.5B-Instruct-ONNX onnx-community/Qwen2-0.5B-Instruct-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/Qwen2-0.5B-Instruct-ONNX.json --dir ./Qwen2-0.5B-Instruct-ONNX $ python3 fw.py verify ./Qwen2-0.5B-Instruct-ONNX ./onnx-community__Qwen2-0.5B-Instruct-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/Qwen2-0.5B-Instruct-ONNX --revision a9a2d1512f7fb9901a46b9b4d0f7146528b28c1e --local-dir ./Qwen2-0.5B-Instruct-ONNX

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
b33b6be118e123ebaaa8495c69c4acec98e0d9d430a90878a6f12363beb22d42
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.qwenSubject: Qwen2-0.5B-Instruct-ONNXDate: 2026-11-15Commit: a9a2d15Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/Qwen2-0.5B-Instruct-ONNX
Pinned commit
a9a2d1512f7fb9901a46b9b4d0f7146528b28c1e
Manifest
Qwen2-0.5B-Instruct-ONNX.json · .minisig
Manifest sha256
5ad118ab823e08beb7306c39104396bcd969e8161689e58290fdb5cab960d637
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:26 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/Qwen2-0.5B-Instruct-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/Qwen2-0.5B-Instruct-ONNX.json.minisig $ minisign -Vm Qwen2-0.5B-Instruct-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

Qwen/Qwen2-0.5B-Instruct · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/Qwen2-0.5B-Instruct-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Qwen2-0.5B-Instruct-ONNX.json. Provenance. Takedown history: none.
From: BAAI <huggingface.co/BAAI>Subject: Aquila-VL-2B-llava-qwen
From: Perciqa <huggingface.co/Perciqa>Subject: Aurora-Code-1
From: BAAI <huggingface.co/BAAI>Subject: bge-reasoner-embed-qwen3-8b-0923
From: amazon <huggingface.co/amazon>Subject: BMOJOF-primed-HQwen3-8B-Instruct
From: nbeerbower <huggingface.co/nbeerbower>Subject: Bubba-Qwen3.6-27B-LoRA
From: bartowski <huggingface.co/bartowski>Subject: bytkim_Qwen3.8-27B-pi-GGUF