Upload folder using huggingface_hub (#1)
Browse files- 9e25ccad259193076f9edee558a5a9e3c6b12b7c8c286b301999040f2967d297 (ecddcd87586fa792442edb8905d4565d57cee75b)
- 047d05130ef9c5e903d1265d159a500e87ff45bd3438fa28553d0500308382c6 (edf12b52832a39dd94af854acb54b7b4a2e671f1)
- 28e829034ffd91ee045fc96503d3069424b0aeb0fb421956be4af748eb71cef6 (7479960efbc731a4334feda361cf36328b0449c7)
- c561065bc101eee3a9ac067b4e4f7b89edbc375d785f3e75379c5540c336148e (52c30bb14a604cdc4cfb627e0e5e4dc889fe8aa6)
- 96ce2550713792f5663ca48c4bcd28e491a35b6d047454fa05cd84694659d181 (8f943fa320636f77a46187322cd9b6c4e03a0c57)
- 010b382c793a0301de34bba1548adb19239f1f6fcfb58b05bfa9921ee52a263f (8619403f3b984accd93951de90d6f2b9187dff41)
- b51b3b5ceaf9ddf674b1bf32635367d8499009589b22b72209d13fea56343be6 (e067c76df410998d4b2447f8d7d2a4546ffb6dd6)
- e49f81a019d15887a70d187c239050bf8dd490148d8e556ade09b1d5a74e085b (c9e67db89cb0805c6aaaf2377379e4f726bcf6d2)
- ecb00aec31b87db721869d4bedffc19cd9616507132ece8dc62804a53e56db0a (9f9e7ffc99155dcf7af7940735fc99e45aa17287)
- .gitattributes +1 -0
- README.md +143 -0
- added_tokens.json +5 -0
- config.json +35 -0
- merges.txt +0 -0
- model-00001-of-00009.safetensors +3 -0
- model-00002-of-00009.safetensors +3 -0
- model-00003-of-00009.safetensors +3 -0
- model-00004-of-00009.safetensors +3 -0
- model-00005-of-00009.safetensors +3 -0
- model-00006-of-00009.safetensors +3 -0
- model-00007-of-00009.safetensors +3 -0
- model-00008-of-00009.safetensors +3 -0
- model-00009-of-00009.safetensors +3 -0
- model.safetensors.index.json +0 -0
- special_tokens_map.json +20 -0
- tokenizer.json +3 -0
- tokenizer_config.json +43 -0
- vocab.json +0 -0
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: other
|
5 |
+
library_name: transformers
|
6 |
+
tags:
|
7 |
+
- chat
|
8 |
+
- qwen
|
9 |
+
- qwen2.5
|
10 |
+
- finetune
|
11 |
+
- english
|
12 |
+
- mlx
|
13 |
+
base_model: MaziyarPanahi/calme-3.2-instruct-78b
|
14 |
+
license_name: qwen
|
15 |
+
license_link: https://huggingface.co/Qwen/Qwen2.5-72B-Instruct/blob/main/LICENSE
|
16 |
+
pipeline_tag: text-generation
|
17 |
+
inference: false
|
18 |
+
model_creator: MaziyarPanahi
|
19 |
+
quantized_by: MaziyarPanahi
|
20 |
+
model-index:
|
21 |
+
- name: calme-3.2-instruct-78b
|
22 |
+
results:
|
23 |
+
- task:
|
24 |
+
type: text-generation
|
25 |
+
name: Text Generation
|
26 |
+
dataset:
|
27 |
+
name: IFEval (0-Shot)
|
28 |
+
type: HuggingFaceH4/ifeval
|
29 |
+
args:
|
30 |
+
num_few_shot: 0
|
31 |
+
metrics:
|
32 |
+
- type: inst_level_strict_acc and prompt_level_strict_acc
|
33 |
+
value: 80.63
|
34 |
+
name: strict accuracy
|
35 |
+
source:
|
36 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=MaziyarPanahi/calme-3.2-instruct-78b
|
37 |
+
name: Open LLM Leaderboard
|
38 |
+
- task:
|
39 |
+
type: text-generation
|
40 |
+
name: Text Generation
|
41 |
+
dataset:
|
42 |
+
name: BBH (3-Shot)
|
43 |
+
type: BBH
|
44 |
+
args:
|
45 |
+
num_few_shot: 3
|
46 |
+
metrics:
|
47 |
+
- type: acc_norm
|
48 |
+
value: 62.61
|
49 |
+
name: normalized accuracy
|
50 |
+
source:
|
51 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=MaziyarPanahi/calme-3.2-instruct-78b
|
52 |
+
name: Open LLM Leaderboard
|
53 |
+
- task:
|
54 |
+
type: text-generation
|
55 |
+
name: Text Generation
|
56 |
+
dataset:
|
57 |
+
name: MATH Lvl 5 (4-Shot)
|
58 |
+
type: hendrycks/competition_math
|
59 |
+
args:
|
60 |
+
num_few_shot: 4
|
61 |
+
metrics:
|
62 |
+
- type: exact_match
|
63 |
+
value: 39.95
|
64 |
+
name: exact match
|
65 |
+
source:
|
66 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=MaziyarPanahi/calme-3.2-instruct-78b
|
67 |
+
name: Open LLM Leaderboard
|
68 |
+
- task:
|
69 |
+
type: text-generation
|
70 |
+
name: Text Generation
|
71 |
+
dataset:
|
72 |
+
name: GPQA (0-shot)
|
73 |
+
type: Idavidrein/gpqa
|
74 |
+
args:
|
75 |
+
num_few_shot: 0
|
76 |
+
metrics:
|
77 |
+
- type: acc_norm
|
78 |
+
value: 20.36
|
79 |
+
name: acc_norm
|
80 |
+
source:
|
81 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=MaziyarPanahi/calme-3.2-instruct-78b
|
82 |
+
name: Open LLM Leaderboard
|
83 |
+
- task:
|
84 |
+
type: text-generation
|
85 |
+
name: Text Generation
|
86 |
+
dataset:
|
87 |
+
name: MuSR (0-shot)
|
88 |
+
type: TAUR-Lab/MuSR
|
89 |
+
args:
|
90 |
+
num_few_shot: 0
|
91 |
+
metrics:
|
92 |
+
- type: acc_norm
|
93 |
+
value: 38.53
|
94 |
+
name: acc_norm
|
95 |
+
source:
|
96 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=MaziyarPanahi/calme-3.2-instruct-78b
|
97 |
+
name: Open LLM Leaderboard
|
98 |
+
- task:
|
99 |
+
type: text-generation
|
100 |
+
name: Text Generation
|
101 |
+
dataset:
|
102 |
+
name: MMLU-PRO (5-shot)
|
103 |
+
type: TIGER-Lab/MMLU-Pro
|
104 |
+
config: main
|
105 |
+
split: test
|
106 |
+
args:
|
107 |
+
num_few_shot: 5
|
108 |
+
metrics:
|
109 |
+
- type: acc
|
110 |
+
value: 70.03
|
111 |
+
name: accuracy
|
112 |
+
source:
|
113 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=MaziyarPanahi/calme-3.2-instruct-78b
|
114 |
+
name: Open LLM Leaderboard
|
115 |
+
---
|
116 |
+
|
117 |
+
# mlx-community/calme-3.2-instruct-78b-4bit
|
118 |
+
|
119 |
+
The Model [mlx-community/calme-3.2-instruct-78b-4bit](https://huggingface.co/mlx-community/calme-3.2-instruct-78b-4bit) was
|
120 |
+
converted to MLX format from [MaziyarPanahi/calme-3.2-instruct-78b](https://huggingface.co/MaziyarPanahi/calme-3.2-instruct-78b)
|
121 |
+
using mlx-lm version **0.20.4**.
|
122 |
+
|
123 |
+
## Use with mlx
|
124 |
+
|
125 |
+
```bash
|
126 |
+
pip install mlx-lm
|
127 |
+
```
|
128 |
+
|
129 |
+
```python
|
130 |
+
from mlx_lm import load, generate
|
131 |
+
|
132 |
+
model, tokenizer = load("mlx-community/calme-3.2-instruct-78b-4bit")
|
133 |
+
|
134 |
+
prompt="hello"
|
135 |
+
|
136 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
137 |
+
messages = [{"role": "user", "content": prompt}]
|
138 |
+
prompt = tokenizer.apply_chat_template(
|
139 |
+
messages, tokenize=False, add_generation_prompt=True
|
140 |
+
)
|
141 |
+
|
142 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
143 |
+
```
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|endoftext|>": 151643,
|
3 |
+
"<|im_end|>": 151645,
|
4 |
+
"<|im_start|>": 151644
|
5 |
+
}
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"Qwen2ForCausalLM"
|
4 |
+
],
|
5 |
+
"attention_dropout": 0.0,
|
6 |
+
"eos_token_id": 151645,
|
7 |
+
"hidden_act": "silu",
|
8 |
+
"hidden_size": 8192,
|
9 |
+
"initializer_range": 0.02,
|
10 |
+
"intermediate_size": 29568,
|
11 |
+
"max_position_embeddings": 32768,
|
12 |
+
"max_window_layers": 80,
|
13 |
+
"model_type": "qwen2",
|
14 |
+
"num_attention_heads": 64,
|
15 |
+
"num_hidden_layers": 86,
|
16 |
+
"num_key_value_heads": 8,
|
17 |
+
"quantization": {
|
18 |
+
"group_size": 64,
|
19 |
+
"bits": 4
|
20 |
+
},
|
21 |
+
"quantization_config": {
|
22 |
+
"group_size": 64,
|
23 |
+
"bits": 4
|
24 |
+
},
|
25 |
+
"rms_norm_eps": 1e-06,
|
26 |
+
"rope_scaling": null,
|
27 |
+
"rope_theta": 1000000.0,
|
28 |
+
"sliding_window": null,
|
29 |
+
"tie_word_embeddings": false,
|
30 |
+
"torch_dtype": "bfloat16",
|
31 |
+
"transformers_version": "4.46.1",
|
32 |
+
"use_cache": false,
|
33 |
+
"use_sliding_window": false,
|
34 |
+
"vocab_size": 151646
|
35 |
+
}
|
The diff for this file is too large to render.
See raw diff
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ac22c44b4a543804cc29b1f12c069fb2c0fa7382b0c1c18ed38853fbb76c0f9
|
3 |
+
size 5363641525
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c23c0281aaf795a1546b74f1c7e237a473a435f9a012dc9163b0b0aca8c8cf7e
|
3 |
+
size 5294878254
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b5fef18350fdf1c3731ec3c28919449909eeccdf175d53c0eb01fc5817a63694
|
3 |
+
size 5346171097
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4e42db1da98530c18167a574f7add8f9c70be84a863549a22b6c9eafd7e99e1f
|
3 |
+
size 5294845297
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6c2124ed1e3d64af7cd735cfdc1ca6b00e981c37d4f5149ba7010c0220debc10
|
3 |
+
size 5294878217
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03f853b0bdfcd45643d36119649071ec9795ce91ad2b620c0e49865fd6e64292
|
3 |
+
size 5294878204
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fb0fbc66626a24d6b7ee3110fe764fbfc8de6b1fe553f233cecaf9e33dd7c1f3
|
3 |
+
size 5346171091
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bb8923d58954eff606fc372077b97528786f3ab0b1b72bb68c41c4264909b88b
|
3 |
+
size 5294845297
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:45871f3e3f05882272e5315bf2551c8f39b960a962b582f509e18ccde69bbe93
|
3 |
+
size 1328823071
|
The diff for this file is too large to render.
See raw diff
|
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>"
|
5 |
+
],
|
6 |
+
"eos_token": {
|
7 |
+
"content": "<|im_end|>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"pad_token": {
|
14 |
+
"content": "<|endoftext|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
}
|
20 |
+
}
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bcfe42da0a4497e8b2b172c1f9f4ec423a46dc12907f4349c55025f670422ba9
|
3 |
+
size 11418266
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"151643": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"151644": {
|
13 |
+
"content": "<|im_start|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"151645": {
|
21 |
+
"content": "<|im_end|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
}
|
28 |
+
},
|
29 |
+
"additional_special_tokens": [
|
30 |
+
"<|im_start|>",
|
31 |
+
"<|im_end|>"
|
32 |
+
],
|
33 |
+
"bos_token": null,
|
34 |
+
"chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
|
35 |
+
"clean_up_tokenization_spaces": false,
|
36 |
+
"eos_token": "<|im_end|>",
|
37 |
+
"errors": "replace",
|
38 |
+
"model_max_length": 131072,
|
39 |
+
"pad_token": "<|endoftext|>",
|
40 |
+
"split_special_tokens": false,
|
41 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
42 |
+
"unk_token": null
|
43 |
+
}
|
The diff for this file is too large to render.
See raw diff
|
|