cr0sh commited on
Commit
e140a6e
·
verified ·
1 Parent(s): 175bb1e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +45 -0
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ - es
6
+ - fr
7
+ - de
8
+ - it
9
+ - pt
10
+ - ru
11
+ - ar
12
+ - hi
13
+ - ko
14
+ - zh
15
+ library_name: transformers
16
+ base_model: arcee-ai/Trinity-Mini
17
+ tags:
18
+ - mlx
19
+ ---
20
+
21
+ # cr0sh/Trinity-Mini-mlx-8Bit
22
+
23
+ The Model [cr0sh/Trinity-Mini-mlx-8Bit](https://huggingface.co/cr0sh/Trinity-Mini-mlx-8Bit) was converted to MLX format from [arcee-ai/Trinity-Mini](https://huggingface.co/arcee-ai/Trinity-Mini) using mlx-lm version **0.29.1**.
24
+
25
+ ## Use with mlx
26
+
27
+ ```bash
28
+ pip install mlx-lm
29
+ ```
30
+
31
+ ```python
32
+ from mlx_lm import load, generate
33
+
34
+ model, tokenizer = load("cr0sh/Trinity-Mini-mlx-8Bit")
35
+
36
+ prompt="hello"
37
+
38
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
39
+ messages = [{"role": "user", "content": prompt}]
40
+ prompt = tokenizer.apply_chat_template(
41
+ messages, tokenize=False, add_generation_prompt=True
42
+ )
43
+
44
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
45
+ ```