alexander583 commited on
Commit
e8cb819
·
verified ·
1 Parent(s): bf2fb64

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
+ license: other
3
+ license_name: exaone
4
+ license_link: LICENSE
5
+ language:
6
+ - en
7
+ - ko
8
+ tags:
9
+ - lg-ai
10
+ - exaone
11
+ - exaone-3.5
12
+ - mlx
13
+ - mlx-my-repo
14
+ pipeline_tag: text-generation
15
+ library_name: transformers
16
+ base_model: LGAI-EXAONE/EXAONE-3.5-32B-Instruct
17
+ ---
18
+
19
+ # alexander583/EXAONE-3.5-32B-Instruct-Q4-mlx
20
+
21
+ The Model [alexander583/EXAONE-3.5-32B-Instruct-Q4-mlx](https://huggingface.co/alexander583/EXAONE-3.5-32B-Instruct-Q4-mlx) was converted to MLX format from [LGAI-EXAONE/EXAONE-3.5-32B-Instruct](https://huggingface.co/LGAI-EXAONE/EXAONE-3.5-32B-Instruct) using mlx-lm version **0.20.5**.
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("alexander583/EXAONE-3.5-32B-Instruct-Q4-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
+ ```