TobDeBer commited on
Commit
5be7cde
·
verified ·
1 Parent(s): c6a6967

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +35 -0
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ tags:
4
+ - merge
5
+ - moe
6
+ - mlx
7
+ - mlx-my-repo
8
+ base_model: rombodawg/Everyone-Coder-4x7b-Base
9
+ ---
10
+
11
+ # TobDeBer/Everyone-Coder-4x7b-Base-Q4-mlx
12
+
13
+ The Model [TobDeBer/Everyone-Coder-4x7b-Base-Q4-mlx](https://huggingface.co/TobDeBer/Everyone-Coder-4x7b-Base-Q4-mlx) was converted to MLX format from [rombodawg/Everyone-Coder-4x7b-Base](https://huggingface.co/rombodawg/Everyone-Coder-4x7b-Base) using mlx-lm version **0.19.2**.
14
+
15
+ ## Use with mlx
16
+
17
+ ```bash
18
+ pip install mlx-lm
19
+ ```
20
+
21
+ ```python
22
+ from mlx_lm import load, generate
23
+
24
+ model, tokenizer = load("TobDeBer/Everyone-Coder-4x7b-Base-Q4-mlx")
25
+
26
+ prompt="hello"
27
+
28
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
29
+ messages = [{"role": "user", "content": prompt}]
30
+ prompt = tokenizer.apply_chat_template(
31
+ messages, tokenize=False, add_generation_prompt=True
32
+ )
33
+
34
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
35
+ ```