introvoyz041 commited on
Commit
00a0d23
·
verified ·
1 Parent(s): 3963a13

Upload README.md with huggingface_hub

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