wobondar commited on
Commit
dc8f79a
·
verified ·
1 Parent(s): 4778849

Upload README.md with huggingface_hub

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