djuna commited on
Commit
d2f9ed5
·
verified ·
1 Parent(s): 30c052d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +130 -0
README.md ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags:
4
+ - mergekit
5
+ - merge
6
+ - mlx
7
+ - mlx-my-repo
8
+ base_model: djuna/MN-Chinofun-12B-4
9
+ model-index:
10
+ - name: MN-Chinofun-12B-4
11
+ results:
12
+ - task:
13
+ type: text-generation
14
+ name: Text Generation
15
+ dataset:
16
+ name: IFEval (0-Shot)
17
+ type: HuggingFaceH4/ifeval
18
+ args:
19
+ num_few_shot: 0
20
+ metrics:
21
+ - type: inst_level_strict_acc and prompt_level_strict_acc
22
+ value: 54.04
23
+ name: strict accuracy
24
+ source:
25
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=djuna/MN-Chinofun-12B-4
26
+ name: Open LLM Leaderboard
27
+ - task:
28
+ type: text-generation
29
+ name: Text Generation
30
+ dataset:
31
+ name: BBH (3-Shot)
32
+ type: BBH
33
+ args:
34
+ num_few_shot: 3
35
+ metrics:
36
+ - type: acc_norm
37
+ value: 34.17
38
+ name: normalized accuracy
39
+ source:
40
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=djuna/MN-Chinofun-12B-4
41
+ name: Open LLM Leaderboard
42
+ - task:
43
+ type: text-generation
44
+ name: Text Generation
45
+ dataset:
46
+ name: MATH Lvl 5 (4-Shot)
47
+ type: hendrycks/competition_math
48
+ args:
49
+ num_few_shot: 4
50
+ metrics:
51
+ - type: exact_match
52
+ value: 10.35
53
+ name: exact match
54
+ source:
55
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=djuna/MN-Chinofun-12B-4
56
+ name: Open LLM Leaderboard
57
+ - task:
58
+ type: text-generation
59
+ name: Text Generation
60
+ dataset:
61
+ name: GPQA (0-shot)
62
+ type: Idavidrein/gpqa
63
+ args:
64
+ num_few_shot: 0
65
+ metrics:
66
+ - type: acc_norm
67
+ value: 6.04
68
+ name: acc_norm
69
+ source:
70
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=djuna/MN-Chinofun-12B-4
71
+ name: Open LLM Leaderboard
72
+ - task:
73
+ type: text-generation
74
+ name: Text Generation
75
+ dataset:
76
+ name: MuSR (0-shot)
77
+ type: TAUR-Lab/MuSR
78
+ args:
79
+ num_few_shot: 0
80
+ metrics:
81
+ - type: acc_norm
82
+ value: 13.23
83
+ name: acc_norm
84
+ source:
85
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=djuna/MN-Chinofun-12B-4
86
+ name: Open LLM Leaderboard
87
+ - task:
88
+ type: text-generation
89
+ name: Text Generation
90
+ dataset:
91
+ name: MMLU-PRO (5-shot)
92
+ type: TIGER-Lab/MMLU-Pro
93
+ config: main
94
+ split: test
95
+ args:
96
+ num_few_shot: 5
97
+ metrics:
98
+ - type: acc
99
+ value: 27.75
100
+ name: accuracy
101
+ source:
102
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard?query=djuna/MN-Chinofun-12B-4
103
+ name: Open LLM Leaderboard
104
+ ---
105
+
106
+ # djuna/MN-Chinofun-12B-4-4bit
107
+
108
+ The Model [djuna/MN-Chinofun-12B-4-4bit](https://huggingface.co/djuna/MN-Chinofun-12B-4-4bit) was converted to MLX format from [djuna/MN-Chinofun-12B-4](https://huggingface.co/djuna/MN-Chinofun-12B-4) using mlx-lm version **0.21.5**.
109
+
110
+ ## Use with mlx
111
+
112
+ ```bash
113
+ pip install mlx-lm
114
+ ```
115
+
116
+ ```python
117
+ from mlx_lm import load, generate
118
+
119
+ model, tokenizer = load("djuna/MN-Chinofun-12B-4-4bit")
120
+
121
+ prompt="hello"
122
+
123
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
124
+ messages = [{"role": "user", "content": prompt}]
125
+ prompt = tokenizer.apply_chat_template(
126
+ messages, tokenize=False, add_generation_prompt=True
127
+ )
128
+
129
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
130
+ ```