isetnefret commited on
Commit
c598db2
·
verified ·
1 Parent(s): a0802b7

Upload README.md with huggingface_hub

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