alexgusevski commited on
Commit
2289ecd
·
verified ·
1 Parent(s): b632f18

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +67 -0
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ license_link: https://huggingface.co/microsoft/Phi-4-mini-instruct/resolve/main/LICENSE
4
+ language:
5
+ - multilingual
6
+ - ar
7
+ - zh
8
+ - cs
9
+ - da
10
+ - nl
11
+ - en
12
+ - fi
13
+ - fr
14
+ - de
15
+ - he
16
+ - hu
17
+ - it
18
+ - ja
19
+ - ko
20
+ - 'no'
21
+ - pl
22
+ - pt
23
+ - ru
24
+ - es
25
+ - sv
26
+ - th
27
+ - tr
28
+ - uk
29
+ pipeline_tag: text-generation
30
+ tags:
31
+ - nlp
32
+ - code
33
+ - mlx
34
+ - mlx-my-repo
35
+ widget:
36
+ - messages:
37
+ - role: user
38
+ content: Can you provide ways to eat combinations of bananas and dragonfruits?
39
+ library_name: transformers
40
+ base_model: microsoft/Phi-4-mini-instruct
41
+ ---
42
+
43
+ # alexgusevski/Phi-4-mini-instruct-Q6-mlx
44
+
45
+ The Model [alexgusevski/Phi-4-mini-instruct-Q6-mlx](https://huggingface.co/alexgusevski/Phi-4-mini-instruct-Q6-mlx) was converted to MLX format from [microsoft/Phi-4-mini-instruct](https://huggingface.co/microsoft/Phi-4-mini-instruct) using mlx-lm version **0.21.5**.
46
+
47
+ ## Use with mlx
48
+
49
+ ```bash
50
+ pip install mlx-lm
51
+ ```
52
+
53
+ ```python
54
+ from mlx_lm import load, generate
55
+
56
+ model, tokenizer = load("alexgusevski/Phi-4-mini-instruct-Q6-mlx")
57
+
58
+ prompt="hello"
59
+
60
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
61
+ messages = [{"role": "user", "content": prompt}]
62
+ prompt = tokenizer.apply_chat_template(
63
+ messages, tokenize=False, add_generation_prompt=True
64
+ )
65
+
66
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
67
+ ```