Nidal890 commited on
Commit
9175324
·
verified ·
1 Parent(s): 52bded8

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +32 -0
README.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - mlx
5
+ base_model: ArliAI/Mistral-Nemo-12B-ArliAI-RPMax-v1.2
6
+ ---
7
+
8
+ # Nidal890/Mistral-Nemo-12B-ArliAI-RPMax-v1.2-Q4-mlx
9
+
10
+ The Model [Nidal890/Mistral-Nemo-12B-ArliAI-RPMax-v1.2-Q4-mlx](https://huggingface.co/Nidal890/Mistral-Nemo-12B-ArliAI-RPMax-v1.2-Q4-mlx) was converted to MLX format from [ArliAI/Mistral-Nemo-12B-ArliAI-RPMax-v1.2](https://huggingface.co/ArliAI/Mistral-Nemo-12B-ArliAI-RPMax-v1.2) using mlx-lm version **0.19.2**.
11
+
12
+ ## Use with mlx
13
+
14
+ ```bash
15
+ pip install mlx-lm
16
+ ```
17
+
18
+ ```python
19
+ from mlx_lm import load, generate
20
+
21
+ model, tokenizer = load("Nidal890/Mistral-Nemo-12B-ArliAI-RPMax-v1.2-Q4-mlx")
22
+
23
+ prompt="hello"
24
+
25
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
26
+ messages = [{"role": "user", "content": prompt}]
27
+ prompt = tokenizer.apply_chat_template(
28
+ messages, tokenize=False, add_generation_prompt=True
29
+ )
30
+
31
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
32
+ ```