Pinkstack commited on
Commit
fb39df5
·
verified ·
1 Parent(s): 8c96e97

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ tags:
4
+ - trl
5
+ - grpo
6
+ - rl
7
+ - superthoughts
8
+ - reasoning
9
+ - cot
10
+ - mlx
11
+ - mlx-my-repo
12
+ license: apache-2.0
13
+ datasets:
14
+ - openai/gsm8k
15
+ - Pinkstack/intructions-sft-sharegpt
16
+ language:
17
+ - en
18
+ base_model: Pinkstack/Superthoughts-lite-v1
19
+ pipeline_tag: text-generation
20
+ ---
21
+
22
+ # Pinkstack/Superthoughts-lite-v1-Q8-mlx
23
+
24
+ The Model [Pinkstack/Superthoughts-lite-v1-Q8-mlx](https://huggingface.co/Pinkstack/Superthoughts-lite-v1-Q8-mlx) was converted to MLX format from [Pinkstack/Superthoughts-lite-v1](https://huggingface.co/Pinkstack/Superthoughts-lite-v1) using mlx-lm version **0.20.5**.
25
+
26
+ ## Use with mlx
27
+
28
+ ```bash
29
+ pip install mlx-lm
30
+ ```
31
+
32
+ ```python
33
+ from mlx_lm import load, generate
34
+
35
+ model, tokenizer = load("Pinkstack/Superthoughts-lite-v1-Q8-mlx")
36
+
37
+ prompt="hello"
38
+
39
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
40
+ messages = [{"role": "user", "content": prompt}]
41
+ prompt = tokenizer.apply_chat_template(
42
+ messages, tokenize=False, add_generation_prompt=True
43
+ )
44
+
45
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
46
+ ```