introvoyz041 commited on
Commit
00f0d8a
·
verified ·
1 Parent(s): 8be8af8

Upload README.md with huggingface_hub

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