ainugget commited on
Commit
5590268
·
verified ·
1 Parent(s): 2430424

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +39 -5
README.md CHANGED
@@ -1,5 +1,39 @@
1
- ---
2
- license: other
3
- license_name: mrl
4
- license_link: LICENSE
5
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: mrl
4
+ language:
5
+ - en
6
+ tags:
7
+ - chat
8
+ - mlx
9
+ - mlx-my-repo
10
+ pipeline_tag: text-generation
11
+ library_name: transformers
12
+ base_model: MarsupialAI/Monstral-123B-v2
13
+ ---
14
+
15
+ # ainugget/Monstral-123B-v2-Q2-mlx
16
+
17
+ The Model [ainugget/Monstral-123B-v2-Q2-mlx](https://huggingface.co/ainugget/Monstral-123B-v2-Q2-mlx) was converted to MLX format from [MarsupialAI/Monstral-123B-v2](https://huggingface.co/MarsupialAI/Monstral-123B-v2) using mlx-lm version **0.20.5**.
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("ainugget/Monstral-123B-v2-Q2-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
+ ```