Views
No views yet
| Name | Quant method | Size |
|---|---|---|
| Qwen2-Wukong-0.5B.Q2_K.gguf | Q2_K | 0.39GB |
| Qwen2-Wukong-0.5B.IQ3_XS.gguf | IQ3_XS | 0.39GB |
| Qwen2-Wukong-0.5B.IQ3_S.gguf | IQ3_S | 0.39GB |
| Qwen2-Wukong-0.5B.Q3_K_S.gguf | Q3_K_S | 0.39GB |
| Qwen2-Wukong-0.5B.IQ3_M.gguf | IQ3_M | 0.39GB |
| Qwen2-Wukong-0.5B.Q3_K.gguf | Q3_K | 0.4GB |
| Qwen2-Wukong-0.5B.Q3_K_M.gguf | Q3_K_M | 0.4GB |
| Qwen2-Wukong-0.5B.Q3_K_L.gguf | Q3_K_L | 0.42GB |
| Qwen2-Wukong-0.5B.IQ4_XS.gguf | IQ4_XS | 0.4GB |
| Qwen2-Wukong-0.5B.Q4_0.gguf | Q4_0 | 0.4GB |
| Qwen2-Wukong-0.5B.IQ4_NL.gguf | IQ4_NL | 0.4GB |
| Qwen2-Wukong-0.5B.Q4_K_S.gguf | Q4_K_S | 0.45GB |
| Qwen2-Wukong-0.5B.Q4_K.gguf | Q4_K | 0.46GB |
| Qwen2-Wukong-0.5B.Q4_K_M.gguf | Q4_K_M | 0.46GB |
| Qwen2-Wukong-0.5B.Q4_1.gguf | Q4_1 | 0.43GB |
| Qwen2-Wukong-0.5B.Q5_0.gguf | Q5_0 | 0.46GB |
| Qwen2-Wukong-0.5B.Q5_K_S.gguf | Q5_K_S | 0.48GB |
| Qwen2-Wukong-0.5B.Q5_K.gguf | Q5_K | 0.49GB |
| Qwen2-Wukong-0.5B.Q5_K_M.gguf | Q5_K_M | 0.49GB |
| Qwen2-Wukong-0.5B.Q5_1.gguf | Q5_1 | 0.49GB |
| Qwen2-Wukong-0.5B.Q6_K.gguf | Q6_K | 0.61GB |
| Qwen2-Wukong-0.5B.Q8_0.gguf | Q8_0 | 0.63GB |

transformers>=4.37.0, or you might encounter the following error:KeyError: 'qwen2'apply_chat_template to show you how to load the tokenizer and model and how to generate contents.1from transformers import AutoModelForCausalLM, AutoTokenizer
2device = "cuda" # the device to load the model onto
3
4model = AutoModelForCausalLM.from_pretrained(
5 "Qwen/Qwen2-0.5B-Instruct",
6 torch_dtype="auto",
7 device_map="auto"
8)
9tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2-0.5B-Instruct")
10
11prompt = "Give me a short introduction to large language model."
12messages = [
13 {"role": "system", "content": "You are a helpful assistant."},
14 {"role": "user", "content": prompt}
15]
16text = tokenizer.apply_chat_template(
17 messages,
18 tokenize=False,
19 add_generation_prompt=True
20)
21model_inputs = tokenizer([text], return_tensors="pt").to(device)
22
23generated_ids = model.generate(
24 model_inputs.input_ids,
25 max_new_tokens=512
26)
27generated_ids = [
28 output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
29]
30
31response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]| Datasets | Qwen1.5-0.5B-Chat | Qwen2-0.5B-Instruct | Qwen1.5-1.8B-Chat | Qwen2-1.5B-Instruct |
|---|---|---|---|---|
| MMLU | 35.0 | 37.9 | 43.7 | 52.4 |
| HumanEval | 9.1 | 17.1 | 25.0 | 37.8 |
| GSM8K | 11.3 | 40.1 | 35.3 | 61.6 |
| C-Eval | 37.2 | 45.2 | 55.3 | 63.8 |
| IFEval (Prompt Strict-Acc.) | 14.6 | 20.0 | 16.8 | 29.0 |
@article{qwen2,
title={Qwen2 Technical Report},
year={2024}
}