warshanks commited on
Commit
d55cc0c
·
verified ·
1 Parent(s): ed38f2b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +42 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: open-thoughts/OpenThinker3-7B
5
+ tags:
6
+ - llama-factory
7
+ - full
8
+ - generated_from_trainer
9
+ - mlx
10
+ - mlx-my-repo
11
+ datasets:
12
+ - open-thoughts/OpenThoughts3-1.2M
13
+ model-index:
14
+ - name: OpenThinker3-7B
15
+ results: []
16
+ ---
17
+
18
+ # mlx-community/OpenThinker3-7B-8bit
19
+
20
+ The Model [mlx-community/OpenThinker3-7B-8bit](https://huggingface.co/mlx-community/OpenThinker3-7B-8bit) was converted to MLX format from [open-thoughts/OpenThinker3-7B](https://huggingface.co/open-thoughts/OpenThinker3-7B) using mlx-lm version **0.24.1**.
21
+
22
+ ## Use with mlx
23
+
24
+ ```bash
25
+ pip install mlx-lm
26
+ ```
27
+
28
+ ```python
29
+ from mlx_lm import load, generate
30
+
31
+ model, tokenizer = load("mlx-community/OpenThinker3-7B-8bit")
32
+
33
+ prompt="hello"
34
+
35
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
36
+ messages = [{"role": "user", "content": prompt}]
37
+ prompt = tokenizer.apply_chat_template(
38
+ messages, tokenize=False, add_generation_prompt=True
39
+ )
40
+
41
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
42
+ ```