alt.freeweights.qwen / Qwen2-7B-Instruct
From: Qwen <huggingface.co/Qwen>Newsgroups: alt.freeweights.qwenSubject:

Qwen2-7B-Instruct

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

Text generation model with 7.6B parameters. Safetensors weights, 15.2 GB in all. Published by Qwen under Apache-2.0.

7.6B params15.2GBQwen2-7B-Instructsafetensorspermissive
FactsParams7.6BSize15.2 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get Qwen/Qwen2-7B-Instruct
# manifest sha256 b33fce3695ed… · 15.2 GB · 14 files
$ fw verify ./Qwen2-7B-Instruct Qwen/Qwen2-7B-Instruct
From sourceHosted (signed)Qwen/Qwen2-7B-InstructLast check: 2026-11-15 02:28 UTC

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

Fine-tune of Qwen2-7B.

Works with

Overview

Size
15.2 GB
Weights
15.2 GB (safetensors)
Parameters
7.6B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
14, each with a sha256
Publisher
Qwen
Added
2026-11-15
Section
alt.freeweights.qwen
Lineage

Original release from the publisher.

Base model: Qwen/Qwen2-7B

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 02:28 UTCpassed

Model card

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

Qwen2-7B-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 7B 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.

Qwen2-7B-Instruct supports a context length of up to 131,072 tokens, enabling the processing of extensive inputs. Please refer to this section for detailed instructions on how to deploy Qwen2 for handling long texts.

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-7B-Instruct",
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-7B-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]
Processing Long Texts#

To handle extensive inputs exceeding 32,768 tokens, we utilize YARN, a technique for enhancing model length extrapolation, ensuring optimal performance on lengthy texts.

For deployment, we recommend using vLLM. You can enable the long-context capabilities by following these steps:

  1. Install vLLM: You can install vLLM by running the following command.
pip install "vllm>=0.4.3"

Or you can install vLLM from source.

  1. Configure Model Settings: After downloading the model weights, modify the config.json file by including the below snippet: json { "architectures": [ "Qwen2ForCausalLM" ], // ... "vocab_size": 152064, // adding the following snippets "rope_scaling": { "factor": 4.0, "original_max_position_embeddings": 32768, "type": "yarn" } } This snippet enable YARN to support longer contexts.
  2. Model Deployment: Utilize vLLM to deploy your model. For instance, you can set up an openAI-like server using the command: bash python -m vllm.entrypoints.openai.api_server --served-model-name Qwen2-7B-Instruct --model path/to/weights Then you can access the Chat API by: bash curl http://localhost:8000/v1/chat/completions \ -H "Content-Type: application/json" \ -d '{ "model": "Qwen2-7B-Instruct", "messages": [ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "Your Long Input Here."} ] }' For further usage instructions of vLLM, please refer to our Github.

Note: Presently, vLLM only supports static YARN, which means the scaling factor remains constant regardless of input length, potentially impacting performance on shorter texts. We advise adding the rope_scaling configuration only when processing long contexts is required.

Evaluation#

We briefly compare Qwen2-7B-Instruct with similar-sized instruction-tuned LLMs, including Qwen1.5-7B-Chat. The results are shown below:

DatasetsLlama-3-8B-InstructYi-1.5-9B-ChatGLM-4-9B-ChatQwen1.5-7B-ChatQwen2-7B-Instruct
English
MMLU68.469.572.459.570.5
MMLU-Pro41.0--29.144.1
GPQA34.2--27.825.3
TheroemQA23.0--14.125.3
MT-Bench8.058.208.357.608.41
Coding
Humaneval62.266.571.846.379.9
MBPP67.9--48.967.2
MultiPL-E48.5--27.259.1
Evalplus60.9--44.870.3
LiveCodeBench17.3--6.026.6
Mathematics
GSM8K79.684.879.660.382.3
MATH30.047.750.623.249.6
Chinese
C-Eval45.9-75.667.377.2
AlignBench6.206.907.016.207.21

Citation#

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

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

Files

14 files · 15.2 GBWeights 15.2 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
LICENSE11.3 KBc156170b718ec29139d3653d40ed1986fd92fb7e0959b5c71f3c48f62e6636f4
README.md6.58 KB174c5a5d83d0f9670e0b96df86f2dddb2de5ab958f885653525b3d2c977f24b5
config.json663 B8b9a4f6c0acf4854a2d301616d4203039c3d7972cb0a557dae98686b6c3ae4b2
generation_config.json243 B3a8f9087e486054c8a4a08dae2e5a3ba62e23da212b5b8c08bc42cb983c3459f
merges.txt1.67 MB599bab54075088774b1733fde865d5bd747cbcc7a547c5bc12610e874e26f5e3
model-00001-of-00004.safetensors3.95 GB26d9919262ccd063fcdfd926763fe9025ef1e3073767aaa8c83a375d7c5140c4
model-00002-of-00004.safetensors3.86 GBf5bb99fdadcac55c2c176497ec99f088a1764e78ed986fa4a0d45d12426ef0fa
model-00003-of-00004.safetensors3.86 GB0b749a4446d7cda007d5e7bd9f908849d08d89867192d4c039dc167e9ab5a02e
model-00004-of-00004.safetensors3.56 GBda724bb7d3c3512eb371aa6caa5bcc08d78bda84f94e00ae9a9b2124e3e9c62f
model.safetensors.index.json27.8 KBf00d17cbf433746c391ad43948613e373aa51222dbee3b0db61ffff59a74bb1a
tokenizer.json7.03 MBf7c9b2dba4a296b1aa76c16a34b8225c0c118978400d4bb66bff0902d702f5b8
tokenizer_config.json1.29 KBbe21acaf90e7f449b7282fdef7b06516a0102476e86cbc2108e18ac071f9cc9c
vocab.json2.78 MBca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
f2826a00ce pinned now2026-11-15 02:28 UTC14 files · 15.2 GB

Use it

$ fw get Qwen/Qwen2-7B-Instruct
# manifest sha256 b33fce3695ed… · 15.2 GB · 14 files
$ fw verify ./Qwen2-7B-Instruct Qwen/Qwen2-7B-Instruct
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/Qwen/Qwen2-7B-Instruct.json --dir ./Qwen2-7B-Instruct $ python3 fw.py verify ./Qwen2-7B-Instruct ./Qwen__Qwen2-7B-Instruct.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Qwen/Qwen2-7B-Instruct --revision f2826a00ceef68f0f2b946d945ecc0477ce4450c --local-dir ./Qwen2-7B-Instruct
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("Qwen/Qwen2-7B-Instruct", revision="f2826a00ceef68f0f2b946d945ecc0477ce4450c") model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2-7B-Instruct", revision="f2826a00ceef68f0f2b946d945ecc0477ce4450c", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve Qwen/Qwen2-7B-Instruct --revision f2826a00ceef68f0f2b946d945ecc0477ce4450c

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
LICENSE
Text sha256
c156170b718ec29139d3653d40ed1986fd92fb7e0959b5c71f3c48f62e6636f4
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: Qwen <huggingface.co/Qwen>Newsgroups: alt.freeweights.qwenSubject: Qwen2-7B-InstructDate: 2026-11-15Commit: f2826a0Signed: 2DC28CC7B26A283B ✓
Upstream
Qwen/Qwen2-7B-Instruct
Pinned commit
f2826a00ceef68f0f2b946d945ecc0477ce4450c
Manifest
Qwen2-7B-Instruct.json · .minisig
Manifest sha256
b33fce3695edbe92bd97dc55548b01b24ad7f0fa4b668720719fcf13813e1268
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:28 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/Qwen/Qwen2-7B-Instruct.json $ curl -O https://freeweights.allternit.com/manifests/Qwen/Qwen2-7B-Instruct.json.minisig $ minisign -Vm Qwen2-7B-Instruct.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-7B · this model is a finetune of it

5 models in the catalog name this one as their parent.

Quantizations
5
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download Qwen/Qwen2-7B-Instruct
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. Qwen2-7B-Instruct.json. Provenance. Takedown history: none.

Variants

5 quantized or adapter builds of Qwen2-7B-Instruct. Each has its own license check and page.

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