mrtoots commited on
Commit
e39d9ae
·
verified ·
1 Parent(s): fd56a85

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - zh
4
+ - en
5
+ - fr
6
+ - de
7
+ - ja
8
+ - ko
9
+ - it
10
+ - fi
11
+ tags:
12
+ - qwen3
13
+ - mlx
14
+ - mlx-my-repo
15
+ pipeline_tag: text-generation
16
+ base_model: OpenBuddy/SimpleChat-30BA3B-V2
17
+ ---
18
+
19
+ # mrtoots/SimpleChat-30BA3B-V2-mlx-8Bit
20
+
21
+ The Model [mrtoots/SimpleChat-30BA3B-V2-mlx-8Bit](https://huggingface.co/mrtoots/SimpleChat-30BA3B-V2-mlx-8Bit) was converted to MLX format from [OpenBuddy/SimpleChat-30BA3B-V2](https://huggingface.co/OpenBuddy/SimpleChat-30BA3B-V2) using mlx-lm version **0.26.4**.
22
+
23
+ ## Use with mlx
24
+
25
+ ```bash
26
+ pip install mlx-lm
27
+ ```
28
+
29
+ ```python
30
+ from mlx_lm import load, generate
31
+
32
+ model, tokenizer = load("mrtoots/SimpleChat-30BA3B-V2-mlx-8Bit")
33
+
34
+ prompt="hello"
35
+
36
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
37
+ messages = [{"role": "user", "content": prompt}]
38
+ prompt = tokenizer.apply_chat_template(
39
+ messages, tokenize=False, add_generation_prompt=True
40
+ )
41
+
42
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
43
+ ```