Upload folder using huggingface_hub
#1
by
morgul
- opened
- README.md +145 -0
- added_tokens.json +5 -0
- config.json +34 -0
- merges.txt +0 -0
- model-00001-of-00015.safetensors +3 -0
- model-00002-of-00015.safetensors +3 -0
- model-00003-of-00015.safetensors +3 -0
- model-00004-of-00015.safetensors +3 -0
- model-00005-of-00015.safetensors +3 -0
- model-00006-of-00015.safetensors +3 -0
- model-00007-of-00015.safetensors +3 -0
- model-00008-of-00015.safetensors +3 -0
- model-00009-of-00015.safetensors +3 -0
- model-00010-of-00015.safetensors +3 -0
- model-00011-of-00015.safetensors +3 -0
- model-00012-of-00015.safetensors +3 -0
- model-00013-of-00015.safetensors +3 -0
- model-00014-of-00015.safetensors +3 -0
- model-00015-of-00015.safetensors +3 -0
- model.safetensors.index.json +0 -0
- special_tokens_map.json +20 -0
- tokenizer.json +0 -0
- tokenizer_config.json +43 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: anthracite-org/magnum-v2-72b
|
3 |
+
datasets:
|
4 |
+
- Doctor-Shotgun/C2-Stheno
|
5 |
+
- anthracite-org/kalo-opus-instruct-22k-no-refusal
|
6 |
+
- anthracite-org/nopm_claude_writing_fixed
|
7 |
+
language:
|
8 |
+
- en
|
9 |
+
- fr
|
10 |
+
- de
|
11 |
+
- es
|
12 |
+
- it
|
13 |
+
- pt
|
14 |
+
- ru
|
15 |
+
- zh
|
16 |
+
- ja
|
17 |
+
license: other
|
18 |
+
license_name: tongyi-qianwen
|
19 |
+
license_link: https://huggingface.co/anthracite-org/magnum-v2-72b/blob/main/LICENSE
|
20 |
+
pipeline_tag: text-generation
|
21 |
+
tags:
|
22 |
+
- chat
|
23 |
+
- mlx
|
24 |
+
model-index:
|
25 |
+
- name: magnum-v2-72b
|
26 |
+
results:
|
27 |
+
- task:
|
28 |
+
type: text-generation
|
29 |
+
name: Text Generation
|
30 |
+
dataset:
|
31 |
+
name: IFEval (0-Shot)
|
32 |
+
type: HuggingFaceH4/ifeval
|
33 |
+
args:
|
34 |
+
num_few_shot: 0
|
35 |
+
metrics:
|
36 |
+
- type: inst_level_strict_acc and prompt_level_strict_acc
|
37 |
+
value: 75.6
|
38 |
+
name: strict accuracy
|
39 |
+
source:
|
40 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v2-72b
|
41 |
+
name: Open LLM Leaderboard
|
42 |
+
- task:
|
43 |
+
type: text-generation
|
44 |
+
name: Text Generation
|
45 |
+
dataset:
|
46 |
+
name: BBH (3-Shot)
|
47 |
+
type: BBH
|
48 |
+
args:
|
49 |
+
num_few_shot: 3
|
50 |
+
metrics:
|
51 |
+
- type: acc_norm
|
52 |
+
value: 57.85
|
53 |
+
name: normalized accuracy
|
54 |
+
source:
|
55 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v2-72b
|
56 |
+
name: Open LLM Leaderboard
|
57 |
+
- task:
|
58 |
+
type: text-generation
|
59 |
+
name: Text Generation
|
60 |
+
dataset:
|
61 |
+
name: MATH Lvl 5 (4-Shot)
|
62 |
+
type: hendrycks/competition_math
|
63 |
+
args:
|
64 |
+
num_few_shot: 4
|
65 |
+
metrics:
|
66 |
+
- type: exact_match
|
67 |
+
value: 31.65
|
68 |
+
name: exact match
|
69 |
+
source:
|
70 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v2-72b
|
71 |
+
name: Open LLM Leaderboard
|
72 |
+
- task:
|
73 |
+
type: text-generation
|
74 |
+
name: Text Generation
|
75 |
+
dataset:
|
76 |
+
name: GPQA (0-shot)
|
77 |
+
type: Idavidrein/gpqa
|
78 |
+
args:
|
79 |
+
num_few_shot: 0
|
80 |
+
metrics:
|
81 |
+
- type: acc_norm
|
82 |
+
value: 18.12
|
83 |
+
name: acc_norm
|
84 |
+
source:
|
85 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v2-72b
|
86 |
+
name: Open LLM Leaderboard
|
87 |
+
- task:
|
88 |
+
type: text-generation
|
89 |
+
name: Text Generation
|
90 |
+
dataset:
|
91 |
+
name: MuSR (0-shot)
|
92 |
+
type: TAUR-Lab/MuSR
|
93 |
+
args:
|
94 |
+
num_few_shot: 0
|
95 |
+
metrics:
|
96 |
+
- type: acc_norm
|
97 |
+
value: 14.18
|
98 |
+
name: acc_norm
|
99 |
+
source:
|
100 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v2-72b
|
101 |
+
name: Open LLM Leaderboard
|
102 |
+
- task:
|
103 |
+
type: text-generation
|
104 |
+
name: Text Generation
|
105 |
+
dataset:
|
106 |
+
name: MMLU-PRO (5-shot)
|
107 |
+
type: TIGER-Lab/MMLU-Pro
|
108 |
+
config: main
|
109 |
+
split: test
|
110 |
+
args:
|
111 |
+
num_few_shot: 5
|
112 |
+
metrics:
|
113 |
+
- type: acc
|
114 |
+
value: 49.51
|
115 |
+
name: accuracy
|
116 |
+
source:
|
117 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=anthracite-org/magnum-v2-72b
|
118 |
+
name: Open LLM Leaderboard
|
119 |
+
---
|
120 |
+
|
121 |
+
# mlx-community/magnum-v2-72b
|
122 |
+
|
123 |
+
The Model [mlx-community/magnum-v2-72b](https://huggingface.co/mlx-community/magnum-v2-72b) was converted to MLX format from [anthracite-org/magnum-v2-72b](https://huggingface.co/anthracite-org/magnum-v2-72b) using mlx-lm version **0.19.0**.
|
124 |
+
|
125 |
+
## Use with mlx
|
126 |
+
|
127 |
+
```bash
|
128 |
+
pip install mlx-lm
|
129 |
+
```
|
130 |
+
|
131 |
+
```python
|
132 |
+
from mlx_lm import load, generate
|
133 |
+
|
134 |
+
model, tokenizer = load("mlx-community/magnum-v2-72b")
|
135 |
+
|
136 |
+
prompt="hello"
|
137 |
+
|
138 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
139 |
+
messages = [{"role": "user", "content": prompt}]
|
140 |
+
prompt = tokenizer.apply_chat_template(
|
141 |
+
messages, tokenize=False, add_generation_prompt=True
|
142 |
+
)
|
143 |
+
|
144 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
145 |
+
```
|
added_tokens.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|endoftext|>": 151643,
|
3 |
+
"<|im_end|>": 151645,
|
4 |
+
"<|im_start|>": 151644
|
5 |
+
}
|
config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": 80,
|
16 |
+
"num_key_value_heads": 8,
|
17 |
+
"quantization": {
|
18 |
+
"group_size": 64,
|
19 |
+
"bits": 8
|
20 |
+
},
|
21 |
+
"quantization_config": {
|
22 |
+
"group_size": 64,
|
23 |
+
"bits": 8
|
24 |
+
},
|
25 |
+
"rms_norm_eps": 1e-06,
|
26 |
+
"rope_theta": 1000000.0,
|
27 |
+
"sliding_window": null,
|
28 |
+
"tie_word_embeddings": false,
|
29 |
+
"torch_dtype": "bfloat16",
|
30 |
+
"transformers_version": "4.43.4",
|
31 |
+
"use_cache": false,
|
32 |
+
"use_sliding_window": false,
|
33 |
+
"vocab_size": 152064
|
34 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model-00001-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f78a54460d8eac47a02f743cc8088c56b0f4657bc7df5988f8c89a4f88916d1e
|
3 |
+
size 5214291416
|
model-00002-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bdc1633d14e11e613c5cab76723be4dd104781140a5b550d7a388eba9125367a
|
3 |
+
size 5177560084
|
model-00003-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:86fcc3946541e45b84c68073713d821a02886157cdbd1d50fc7bf110ea46fa77
|
3 |
+
size 5338047551
|
model-00004-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ffc55221ea7c7c93eb45ea4d2a9a561ab1a45da8654479a46c949fd638f7ba9
|
3 |
+
size 5338047541
|
model-00005-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bb9c105408399f21cf0f121cab108b55dca2d954bbac4576a2db97671a08eec1
|
3 |
+
size 5177560272
|
model-00006-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c3ca7764283a209e9db76a3b3b85a147d9ff7399042a311e20252c6e7916624
|
3 |
+
size 5338047538
|
model-00007-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:738b7c10b0894a6a73017b4bb56f549104c15c19a878dc6707f8d1a1d3c04660
|
3 |
+
size 5338047533
|
model-00008-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cec190c40a0af3c5e3f95750b6839d7961399279324c393d03c9c0c133466f21
|
3 |
+
size 5177560252
|
model-00009-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9f0a946c45e4e5aa5b420980cc970cc961130e40e90649e29e24a4cd0c1199e8
|
3 |
+
size 5338047568
|
model-00010-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0ea58d25f6053bb32a78128cca84b6f0635d5e08657b7accdfc2084a4e9c737a
|
3 |
+
size 5338047545
|
model-00011-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:98cc8dc5b031860a67f74a75834b024b3a3a4624f6ee2c118b929c69c1f4ec25
|
3 |
+
size 5177560270
|
model-00012-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:008640ce0b45e5799a6b816b6b81e51d8d62d1156d84b49121f6d6975c9b8d6b
|
3 |
+
size 5338047588
|
model-00013-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4bdca1f258f06e5687c73c398e5002f42cc995eed794cc6341ea60bc342bee32
|
3 |
+
size 5338047529
|
model-00014-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a903406ce36f07a0024fdfb6ba84200db2512082709711a7481ba36068b5941d
|
3 |
+
size 5177560238
|
model-00015-of-00015.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:45bb71456477f5c105d5cafb8dcfb9149ae0f21c2044888c8f2f0dff9755bb16
|
3 |
+
size 3446110914
|
model.safetensors.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
special_tokens_map.json
ADDED
@@ -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 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -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 |
+
}
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|