cnfusion commited on
Commit
9880e1b
1 Parent(s): 75002da

Upload README.md with huggingface_hub

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