YorkieOH10 commited on
Commit
0002379
·
verified ·
1 Parent(s): 092d221

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +39 -0
README.md ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ language:
4
+ - en
5
+ datasets:
6
+ - Gryphe/Opus-WritingPrompts
7
+ - Sao10K/Claude-3-Opus-Instruct-15K
8
+ - Sao10K/Short-Storygen-v2
9
+ - Sao10K/c2-Logs-Filtered
10
+ tags:
11
+ - mlx
12
+ base_model: Sao10K/L3-8B-Stheno-v3.2
13
+ ---
14
+
15
+ # YorkieOH10/L3-8B-Stheno-v3.2-Q8-mlx
16
+
17
+ The Model [YorkieOH10/L3-8B-Stheno-v3.2-Q8-mlx](https://huggingface.co/YorkieOH10/L3-8B-Stheno-v3.2-Q8-mlx) was converted to MLX format from [Sao10K/L3-8B-Stheno-v3.2](https://huggingface.co/Sao10K/L3-8B-Stheno-v3.2) using mlx-lm version **0.19.2**.
18
+
19
+ ## Use with mlx
20
+
21
+ ```bash
22
+ pip install mlx-lm
23
+ ```
24
+
25
+ ```python
26
+ from mlx_lm import load, generate
27
+
28
+ model, tokenizer = load("YorkieOH10/L3-8B-Stheno-v3.2-Q8-mlx")
29
+
30
+ prompt="hello"
31
+
32
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
33
+ messages = [{"role": "user", "content": prompt}]
34
+ prompt = tokenizer.apply_chat_template(
35
+ messages, tokenize=False, add_generation_prompt=True
36
+ )
37
+
38
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
39
+ ```