cnfusion commited on
Commit
1c4ac0a
1 Parent(s): 15c8b5c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +43 -0
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/Llama-3.3-70B-Instruct
3
+ language:
4
+ - en
5
+ library_name: transformers
6
+ license: llama3.3
7
+ tags:
8
+ - llama-3
9
+ - llama
10
+ - meta
11
+ - facebook
12
+ - unsloth
13
+ - transformers
14
+ - pytorch
15
+ - mlx
16
+ - mlx-my-repo
17
+ ---
18
+
19
+ # cnfusion/Llama-3.3-70B-Instruct-Q2-mlx
20
+
21
+ The Model [cnfusion/Llama-3.3-70B-Instruct-Q2-mlx](https://huggingface.co/cnfusion/Llama-3.3-70B-Instruct-Q2-mlx) was converted to MLX format from [unsloth/Llama-3.3-70B-Instruct](https://huggingface.co/unsloth/Llama-3.3-70B-Instruct) using mlx-lm version **0.19.2**.
22
+
23
+ ## Use with mlx
24
+
25
+ ```bash
26
+ pip install mlx-lm
27
+ ```
28
+
29
+ ```python
30
+ from mlx_lm import load, generate
31
+
32
+ model, tokenizer = load("cnfusion/Llama-3.3-70B-Instruct-Q2-mlx")
33
+
34
+ prompt="hello"
35
+
36
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
37
+ messages = [{"role": "user", "content": prompt}]
38
+ prompt = tokenizer.apply_chat_template(
39
+ messages, tokenize=False, add_generation_prompt=True
40
+ )
41
+
42
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
43
+ ```