ailexleon commited on
Commit
0db1160
·
verified ·
1 Parent(s): 8de7bfe

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3.1
3
+ language:
4
+ - en
5
+ base_model: SicariusSicariiStuff/Assistant_Pepe_8B
6
+ datasets:
7
+ - SicariusSicariiStuff/UBW_Tapestries
8
+ widget:
9
+ - text: Assistant_Pepe_8B
10
+ output:
11
+ url: https://huggingface.co/SicariusSicariiStuff/Assistant_Pepe_8B/resolve/main/Images/Assistant_Pepe_8B.png
12
+ tags:
13
+ - mlx
14
+ ---
15
+
16
+ # ailexleon/Assistant_Pepe_8B-mlx-6Bit
17
+
18
+ The Model [ailexleon/Assistant_Pepe_8B-mlx-6Bit](https://huggingface.co/ailexleon/Assistant_Pepe_8B-mlx-6Bit) was converted to MLX format from [SicariusSicariiStuff/Assistant_Pepe_8B](https://huggingface.co/SicariusSicariiStuff/Assistant_Pepe_8B) using mlx-lm version **0.29.1**.
19
+
20
+ ## Use with mlx
21
+
22
+ ```bash
23
+ pip install mlx-lm
24
+ ```
25
+
26
+ ```python
27
+ from mlx_lm import load, generate
28
+
29
+ model, tokenizer = load("ailexleon/Assistant_Pepe_8B-mlx-6Bit")
30
+
31
+ prompt="hello"
32
+
33
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
34
+ messages = [{"role": "user", "content": prompt}]
35
+ prompt = tokenizer.apply_chat_template(
36
+ messages, tokenize=False, add_generation_prompt=True
37
+ )
38
+
39
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
40
+ ```