m-i commited on
Commit
8bc3758
·
verified ·
1 Parent(s): 8a76213

Upload README.md with huggingface_hub

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