GGorman commited on
Commit
07799d1
1 Parent(s): 943cc0c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +48 -0
README.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ metrics:
3
+ - code_eval
4
+ library_name: transformers
5
+ tags:
6
+ - code
7
+ - mlx
8
+ base_model: WizardLMTeam/WizardCoder-33B-V1.1
9
+ model-index:
10
+ - name: WizardCoder
11
+ results:
12
+ - task:
13
+ type: text-generation
14
+ dataset:
15
+ name: HumanEval
16
+ type: openai_humaneval
17
+ metrics:
18
+ - type: pass@1
19
+ value: 0.799
20
+ name: pass@1
21
+ verified: false
22
+ ---
23
+
24
+ # GGorman/WizardCoder-33B-V1.1-Q8-mlx
25
+
26
+ The Model [GGorman/WizardCoder-33B-V1.1-Q8-mlx](https://huggingface.co/GGorman/WizardCoder-33B-V1.1-Q8-mlx) was converted to MLX format from [WizardLMTeam/WizardCoder-33B-V1.1](https://huggingface.co/WizardLMTeam/WizardCoder-33B-V1.1) using mlx-lm version **0.19.1**.
27
+
28
+ ## Use with mlx
29
+
30
+ ```bash
31
+ pip install mlx-lm
32
+ ```
33
+
34
+ ```python
35
+ from mlx_lm import load, generate
36
+
37
+ model, tokenizer = load("GGorman/WizardCoder-33B-V1.1-Q8-mlx")
38
+
39
+ prompt="hello"
40
+
41
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
42
+ messages = [{"role": "user", "content": prompt}]
43
+ prompt = tokenizer.apply_chat_template(
44
+ messages, tokenize=False, add_generation_prompt=True
45
+ )
46
+
47
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
48
+ ```