tomasmcm commited on
Commit
71d8bbd
·
verified ·
1 Parent(s): 98aedcb

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
+ language:
3
+ - multilingual
4
+ license: other
5
+ license_name: kwaipilot-license
6
+ license_link: LICENSE
7
+ library_name: transformers
8
+ tags:
9
+ - mlx
10
+ base_model: Kwaipilot/KwaiCoder-AutoThink-preview
11
+ ---
12
+
13
+ # tomasmcm/KwaiCoder-AutoThink-preview-mlx-3Bit
14
+
15
+ The Model [tomasmcm/KwaiCoder-AutoThink-preview-mlx-3Bit](https://huggingface.co/tomasmcm/KwaiCoder-AutoThink-preview-mlx-3Bit) was converted to MLX format from [Kwaipilot/KwaiCoder-AutoThink-preview](https://huggingface.co/Kwaipilot/KwaiCoder-AutoThink-preview) using mlx-lm version **0.22.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("tomasmcm/KwaiCoder-AutoThink-preview-mlx-3Bit")
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
+ ```