Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
datasets:
|
4 |
+
- bigcode/the-stack
|
5 |
+
- bigcode/the-stack-v2
|
6 |
+
- bigcode/starcoderdata
|
7 |
+
- bigcode/commitpack
|
8 |
+
library_name: transformers
|
9 |
+
tags:
|
10 |
+
- code
|
11 |
+
- mlx
|
12 |
+
- mlx-my-repo
|
13 |
+
base_model: JetBrains/Mellum-4b-base
|
14 |
+
model-index:
|
15 |
+
- name: Mellum-4b-base
|
16 |
+
results:
|
17 |
+
- task:
|
18 |
+
type: text-generation
|
19 |
+
dataset:
|
20 |
+
name: RepoBench 1.1 (Python)
|
21 |
+
type: tianyang/repobench_python_v1.1
|
22 |
+
metrics:
|
23 |
+
- type: exact_match
|
24 |
+
value: 0.2591
|
25 |
+
name: EM
|
26 |
+
verified: false
|
27 |
+
- type: exact_match
|
28 |
+
value: 0.2797
|
29 |
+
name: EM ≤ 8k
|
30 |
+
verified: false
|
31 |
+
- type: exact_match
|
32 |
+
value: 0.282
|
33 |
+
name: EM
|
34 |
+
verified: false
|
35 |
+
- type: exact_match
|
36 |
+
value: 0.2795
|
37 |
+
name: EM
|
38 |
+
verified: false
|
39 |
+
- type: exact_match
|
40 |
+
value: 0.2777
|
41 |
+
name: EM
|
42 |
+
verified: false
|
43 |
+
- type: exact_match
|
44 |
+
value: 0.2453
|
45 |
+
name: EM
|
46 |
+
verified: false
|
47 |
+
- type: exact_match
|
48 |
+
value: 0.211
|
49 |
+
name: EM
|
50 |
+
verified: false
|
51 |
+
- task:
|
52 |
+
type: text-generation
|
53 |
+
dataset:
|
54 |
+
name: RepoBench 1.1 (Java)
|
55 |
+
type: tianyang/repobench_java_v1.1
|
56 |
+
metrics:
|
57 |
+
- type: exact_match
|
58 |
+
value: 0.2858
|
59 |
+
name: EM
|
60 |
+
verified: false
|
61 |
+
- type: exact_match
|
62 |
+
value: 0.3108
|
63 |
+
name: EM ≤ 8k
|
64 |
+
verified: false
|
65 |
+
- type: exact_match
|
66 |
+
value: 0.3202
|
67 |
+
name: EM
|
68 |
+
verified: false
|
69 |
+
- type: exact_match
|
70 |
+
value: 0.3212
|
71 |
+
name: EM
|
72 |
+
verified: false
|
73 |
+
- type: exact_match
|
74 |
+
value: 0.291
|
75 |
+
name: EM
|
76 |
+
verified: false
|
77 |
+
- type: exact_match
|
78 |
+
value: 0.2492
|
79 |
+
name: EM
|
80 |
+
verified: false
|
81 |
+
- type: exact_match
|
82 |
+
value: 0.2474
|
83 |
+
name: EM
|
84 |
+
verified: false
|
85 |
+
- task:
|
86 |
+
type: text-generation
|
87 |
+
dataset:
|
88 |
+
name: SAFIM
|
89 |
+
type: gonglinyuan/safim
|
90 |
+
metrics:
|
91 |
+
- type: pass@1
|
92 |
+
value: 0.3811
|
93 |
+
name: pass@1
|
94 |
+
verified: false
|
95 |
+
- type: pass@1
|
96 |
+
value: 0.253
|
97 |
+
name: pass@1
|
98 |
+
verified: false
|
99 |
+
- type: pass@1
|
100 |
+
value: 0.3839
|
101 |
+
name: pass@1
|
102 |
+
verified: false
|
103 |
+
- type: pass@1
|
104 |
+
value: 0.5065
|
105 |
+
name: pass@1
|
106 |
+
verified: false
|
107 |
+
- task:
|
108 |
+
type: text-generation
|
109 |
+
dataset:
|
110 |
+
name: HumanEval Infilling (Single-Line)
|
111 |
+
type: loubnabnl/humaneval_infilling
|
112 |
+
metrics:
|
113 |
+
- type: pass@1
|
114 |
+
value: 0.6621
|
115 |
+
name: pass@1
|
116 |
+
verified: false
|
117 |
+
- type: pass@1
|
118 |
+
value: 0.3852
|
119 |
+
name: pass@1
|
120 |
+
verified: false
|
121 |
+
- type: pass@1
|
122 |
+
value: 0.2969
|
123 |
+
name: pass@1
|
124 |
+
verified: false
|
125 |
+
---
|
126 |
+
|
127 |
+
# cnfusion/Mellum-4b-base-mlx-fp16
|
128 |
+
|
129 |
+
The Model [cnfusion/Mellum-4b-base-mlx-fp16](https://huggingface.co/cnfusion/Mellum-4b-base-mlx-fp16) was converted to MLX format from [JetBrains/Mellum-4b-base](https://huggingface.co/JetBrains/Mellum-4b-base) using mlx-lm version **0.22.3**.
|
130 |
+
|
131 |
+
## Use with mlx
|
132 |
+
|
133 |
+
```bash
|
134 |
+
pip install mlx-lm
|
135 |
+
```
|
136 |
+
|
137 |
+
```python
|
138 |
+
from mlx_lm import load, generate
|
139 |
+
|
140 |
+
model, tokenizer = load("cnfusion/Mellum-4b-base-mlx-fp16")
|
141 |
+
|
142 |
+
prompt="hello"
|
143 |
+
|
144 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
145 |
+
messages = [{"role": "user", "content": prompt}]
|
146 |
+
prompt = tokenizer.apply_chat_template(
|
147 |
+
messages, tokenize=False, add_generation_prompt=True
|
148 |
+
)
|
149 |
+
|
150 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
151 |
+
```
|