mrs83 commited on
Commit
fa801f2
·
verified ·
1 Parent(s): efc145b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +38 -0
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ datasets:
5
+ - ethicalabs/Kurtis-E1-SFT
6
+ language:
7
+ - en
8
+ base_model: ethicalabs/Kurtis-E1.1-Qwen2.5-0.5B-Instruct
9
+ pipeline_tag: text-generation
10
+ tags:
11
+ - mlx
12
+ ---
13
+
14
+ # mrs83/Kurtis-E1.1-Qwen2.5-0.5B-Instruct-mlx-4Bit
15
+
16
+ The Model [mrs83/Kurtis-E1.1-Qwen2.5-0.5B-Instruct-mlx-4Bit](https://huggingface.co/mrs83/Kurtis-E1.1-Qwen2.5-0.5B-Instruct-mlx-4Bit) was converted to MLX format from [ethicalabs/Kurtis-E1.1-Qwen2.5-0.5B-Instruct](https://huggingface.co/ethicalabs/Kurtis-E1.1-Qwen2.5-0.5B-Instruct) using mlx-lm version **0.22.1**.
17
+
18
+ ## Use with mlx
19
+
20
+ ```bash
21
+ pip install mlx-lm
22
+ ```
23
+
24
+ ```python
25
+ from mlx_lm import load, generate
26
+
27
+ model, tokenizer = load("mrs83/Kurtis-E1.1-Qwen2.5-0.5B-Instruct-mlx-4Bit")
28
+
29
+ prompt="hello"
30
+
31
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
32
+ messages = [{"role": "user", "content": prompt}]
33
+ prompt = tokenizer.apply_chat_template(
34
+ messages, tokenize=False, add_generation_prompt=True
35
+ )
36
+
37
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
38
+ ```