warshanks commited on
Commit
d8e12dc
·
verified ·
1 Parent(s): 45dd99c

Upload README.md with huggingface_hub

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