e28fdd56c52a488b11d9bbfda607526ca7ed332c13979fd91943455eae7a57c3
Browse files- .gitattributes +1 -0
- README.md +140 -0
- added_tokens.json +5 -0
- config.json +36 -0
- merges.txt +0 -0
- model-00009-of-00009.safetensors +3 -0
- model.safetensors.index.json +0 -0
- special_tokens_map.json +27 -0
- tokenizer.json +3 -0
- tokenizer_config.json +43 -0
- vocab.json +0 -0
.gitattributes
CHANGED
@@ -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
|
README.md
ADDED
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: mit
|
5 |
+
library_name: transformers
|
6 |
+
tags:
|
7 |
+
- orpo
|
8 |
+
- qwen2
|
9 |
+
- sft
|
10 |
+
- chatml
|
11 |
+
- mlx
|
12 |
+
base_model: dfurman/CalmeRys-78B-Orpo-v0.1
|
13 |
+
datasets:
|
14 |
+
- mlabonne/orpo-dpo-mix-40k
|
15 |
+
pipeline_tag: text-generation
|
16 |
+
inference: false
|
17 |
+
model_creator: dfurman
|
18 |
+
quantized_by: dfurman
|
19 |
+
model-index:
|
20 |
+
- name: CalmeRys-78B-Orpo-v0.1
|
21 |
+
results:
|
22 |
+
- task:
|
23 |
+
type: text-generation
|
24 |
+
name: Text Generation
|
25 |
+
dataset:
|
26 |
+
name: IFEval (0-Shot)
|
27 |
+
type: HuggingFaceH4/ifeval
|
28 |
+
args:
|
29 |
+
num_few_shot: 0
|
30 |
+
metrics:
|
31 |
+
- type: inst_level_strict_acc and prompt_level_strict_acc
|
32 |
+
value: 81.63
|
33 |
+
name: strict accuracy
|
34 |
+
source:
|
35 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=dfurman/CalmeRys-78B-Orpo-v0.1
|
36 |
+
name: Open LLM Leaderboard
|
37 |
+
- task:
|
38 |
+
type: text-generation
|
39 |
+
name: Text Generation
|
40 |
+
dataset:
|
41 |
+
name: BBH (3-Shot)
|
42 |
+
type: BBH
|
43 |
+
args:
|
44 |
+
num_few_shot: 3
|
45 |
+
metrics:
|
46 |
+
- type: acc_norm
|
47 |
+
value: 61.92
|
48 |
+
name: normalized accuracy
|
49 |
+
source:
|
50 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=dfurman/CalmeRys-78B-Orpo-v0.1
|
51 |
+
name: Open LLM Leaderboard
|
52 |
+
- task:
|
53 |
+
type: text-generation
|
54 |
+
name: Text Generation
|
55 |
+
dataset:
|
56 |
+
name: MATH Lvl 5 (4-Shot)
|
57 |
+
type: hendrycks/competition_math
|
58 |
+
args:
|
59 |
+
num_few_shot: 4
|
60 |
+
metrics:
|
61 |
+
- type: exact_match
|
62 |
+
value: 37.92
|
63 |
+
name: exact match
|
64 |
+
source:
|
65 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=dfurman/CalmeRys-78B-Orpo-v0.1
|
66 |
+
name: Open LLM Leaderboard
|
67 |
+
- task:
|
68 |
+
type: text-generation
|
69 |
+
name: Text Generation
|
70 |
+
dataset:
|
71 |
+
name: GPQA (0-shot)
|
72 |
+
type: Idavidrein/gpqa
|
73 |
+
args:
|
74 |
+
num_few_shot: 0
|
75 |
+
metrics:
|
76 |
+
- type: acc_norm
|
77 |
+
value: 20.02
|
78 |
+
name: acc_norm
|
79 |
+
source:
|
80 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=dfurman/CalmeRys-78B-Orpo-v0.1
|
81 |
+
name: Open LLM Leaderboard
|
82 |
+
- task:
|
83 |
+
type: text-generation
|
84 |
+
name: Text Generation
|
85 |
+
dataset:
|
86 |
+
name: MuSR (0-shot)
|
87 |
+
type: TAUR-Lab/MuSR
|
88 |
+
args:
|
89 |
+
num_few_shot: 0
|
90 |
+
metrics:
|
91 |
+
- type: acc_norm
|
92 |
+
value: 36.37
|
93 |
+
name: acc_norm
|
94 |
+
source:
|
95 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=dfurman/CalmeRys-78B-Orpo-v0.1
|
96 |
+
name: Open LLM Leaderboard
|
97 |
+
- task:
|
98 |
+
type: text-generation
|
99 |
+
name: Text Generation
|
100 |
+
dataset:
|
101 |
+
name: MMLU-PRO (5-shot)
|
102 |
+
type: TIGER-Lab/MMLU-Pro
|
103 |
+
config: main
|
104 |
+
split: test
|
105 |
+
args:
|
106 |
+
num_few_shot: 5
|
107 |
+
metrics:
|
108 |
+
- type: acc
|
109 |
+
value: 66.8
|
110 |
+
name: accuracy
|
111 |
+
source:
|
112 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=dfurman/CalmeRys-78B-Orpo-v0.1
|
113 |
+
name: Open LLM Leaderboard
|
114 |
+
---
|
115 |
+
|
116 |
+
# mlx-community/CalmeRys-78B-Orpo-v0.1-4bit
|
117 |
+
|
118 |
+
The Model [mlx-community/CalmeRys-78B-Orpo-v0.1-4bit](https://huggingface.co/mlx-community/CalmeRys-78B-Orpo-v0.1-4bit) was converted to MLX format from [dfurman/CalmeRys-78B-Orpo-v0.1](https://huggingface.co/dfurman/CalmeRys-78B-Orpo-v0.1) using mlx-lm version **0.19.1**.
|
119 |
+
|
120 |
+
## Use with mlx
|
121 |
+
|
122 |
+
```bash
|
123 |
+
pip install mlx-lm
|
124 |
+
```
|
125 |
+
|
126 |
+
```python
|
127 |
+
from mlx_lm import load, generate
|
128 |
+
|
129 |
+
model, tokenizer = load("mlx-community/CalmeRys-78B-Orpo-v0.1-4bit")
|
130 |
+
|
131 |
+
prompt="hello"
|
132 |
+
|
133 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
134 |
+
messages = [{"role": "user", "content": prompt}]
|
135 |
+
prompt = tokenizer.apply_chat_template(
|
136 |
+
messages, tokenize=False, add_generation_prompt=True
|
137 |
+
)
|
138 |
+
|
139 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
140 |
+
```
|
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,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"Qwen2ForCausalLM"
|
4 |
+
],
|
5 |
+
"attention_dropout": 0.0,
|
6 |
+
"bos_token_id": 151644,
|
7 |
+
"eos_token_id": 151645,
|
8 |
+
"hidden_act": "silu",
|
9 |
+
"hidden_size": 8192,
|
10 |
+
"initializer_range": 0.02,
|
11 |
+
"intermediate_size": 29568,
|
12 |
+
"max_position_embeddings": 32768,
|
13 |
+
"max_window_layers": 80,
|
14 |
+
"model_type": "qwen2",
|
15 |
+
"num_attention_heads": 64,
|
16 |
+
"num_hidden_layers": 86,
|
17 |
+
"num_key_value_heads": 8,
|
18 |
+
"pad_token_id": 151645,
|
19 |
+
"quantization": {
|
20 |
+
"group_size": 64,
|
21 |
+
"bits": 4
|
22 |
+
},
|
23 |
+
"quantization_config": {
|
24 |
+
"group_size": 64,
|
25 |
+
"bits": 4
|
26 |
+
},
|
27 |
+
"rms_norm_eps": 1e-06,
|
28 |
+
"rope_theta": 1000000.0,
|
29 |
+
"sliding_window": null,
|
30 |
+
"tie_word_embeddings": false,
|
31 |
+
"torch_dtype": "bfloat16",
|
32 |
+
"transformers_version": "4.44.2",
|
33 |
+
"use_cache": false,
|
34 |
+
"use_sliding_window": false,
|
35 |
+
"vocab_size": 151646
|
36 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
model-00009-of-00009.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0774f1bda665215a2519b210f753c464e50707b2c2b84cfad55207937a5761f0
|
3 |
+
size 1328823093
|
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,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>"
|
5 |
+
],
|
6 |
+
"bos_token": {
|
7 |
+
"content": "<|im_start|>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"eos_token": {
|
14 |
+
"content": "<|im_end|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
},
|
20 |
+
"pad_token": {
|
21 |
+
"content": "<|im_end|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false
|
26 |
+
}
|
27 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bcfe42da0a4497e8b2b172c1f9f4ec423a46dc12907f4349c55025f670422ba9
|
3 |
+
size 11418266
|
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": "<|im_start|>",
|
34 |
+
"chat_template": "{% 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": "<|im_end|>",
|
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
|
|