McG-221 commited on
Commit
8de29ca
·
verified ·
1 Parent(s): 4d748e8

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +41 -0
README.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ pipeline_tag: text-generation
4
+ license: mit
5
+ language:
6
+ - en
7
+ base_model: miromind-ai/MiroThinker-v1.0-30B
8
+ tags:
9
+ - agent
10
+ - open-source
11
+ - miromind
12
+ - deep-research
13
+ - mlx
14
+ - mlx-my-repo
15
+ ---
16
+
17
+ # McG-221/MiroThinker-v1.0-30B-mlx-8Bit
18
+
19
+ The Model [McG-221/MiroThinker-v1.0-30B-mlx-8Bit](https://huggingface.co/McG-221/MiroThinker-v1.0-30B-mlx-8Bit) was converted to MLX format from [miromind-ai/MiroThinker-v1.0-30B](https://huggingface.co/miromind-ai/MiroThinker-v1.0-30B) using mlx-lm version **0.28.3**.
20
+
21
+ ## Use with mlx
22
+
23
+ ```bash
24
+ pip install mlx-lm
25
+ ```
26
+
27
+ ```python
28
+ from mlx_lm import load, generate
29
+
30
+ model, tokenizer = load("McG-221/MiroThinker-v1.0-30B-mlx-8Bit")
31
+
32
+ prompt="hello"
33
+
34
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
35
+ messages = [{"role": "user", "content": prompt}]
36
+ prompt = tokenizer.apply_chat_template(
37
+ messages, tokenize=False, add_generation_prompt=True
38
+ )
39
+
40
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
41
+ ```