warshanks commited on
Commit
4d0e07f
·
verified ·
1 Parent(s): 9454fae

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: other
4
+ license_name: nvidia-open-model-license
5
+ license_link: https://www.nvidia.com/en-us/agreements/enterprise-software/nvidia-open-model-license/
6
+ pipeline_tag: text-generation
7
+ language:
8
+ - en
9
+ tags:
10
+ - nvidia
11
+ - reasoning
12
+ - math
13
+ - code
14
+ - supervised fine-tuning
15
+ - reinforcement learning
16
+ - pytorch
17
+ - mlx
18
+ - mlx-my-repo
19
+ base_model: nvidia/AceReason-Nemotron-1.1-7B
20
+ ---
21
+
22
+ # mlx-community/AceReason-Nemotron-1.1-7B-8bit
23
+
24
+ The Model [mlx-community/AceReason-Nemotron-1.1-7B-8bit](https://huggingface.co/mlx-community/AceReason-Nemotron-1.1-7B-8bit) was converted to MLX format from [nvidia/AceReason-Nemotron-1.1-7B](https://huggingface.co/nvidia/AceReason-Nemotron-1.1-7B) using mlx-lm version **0.25.2**.
25
+
26
+ ## Use with mlx
27
+
28
+ ```bash
29
+ pip install mlx-lm
30
+ ```
31
+
32
+ ```python
33
+ from mlx_lm import load, generate
34
+
35
+ model, tokenizer = load("mlx-community/AceReason-Nemotron-1.1-7B-8bit")
36
+
37
+ prompt="hello"
38
+
39
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
40
+ messages = [{"role": "user", "content": prompt}]
41
+ prompt = tokenizer.apply_chat_template(
42
+ messages, tokenize=False, add_generation_prompt=True
43
+ )
44
+
45
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
46
+ ```