31d617986b84db9243c21ba1c0c915cd450ff1996e0d4bb3a85b1196dc268511
Browse files- README.md +145 -0
- added_tokens.json +5 -0
- config.json +34 -0
- merges.txt +0 -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.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
|
|