introvoyz041 commited on
Commit
aaab683
·
verified ·
1 Parent(s): 3dad552

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +45 -0
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - multilingual
4
+ library_name: transformers
5
+ license: mit
6
+ license_link: https://huggingface.co/microsoft/Phi-3.5-mini-instruct/resolve/main/LICENSE
7
+ pipeline_tag: text-generation
8
+ tags:
9
+ - nlp
10
+ - code
11
+ - mlx
12
+ - mlx
13
+ - mlx-my-repo
14
+ widget:
15
+ - messages:
16
+ - role: user
17
+ content: Can you provide ways to eat combinations of bananas and dragonfruits?
18
+ base_model: mlx-community/Phi-3.5-mini-instruct-4bit
19
+ ---
20
+
21
+ # introvoyz041/Phi-3.5-mini-instruct-4bit-mlx-4Bit
22
+
23
+ The Model [introvoyz041/Phi-3.5-mini-instruct-4bit-mlx-4Bit](https://huggingface.co/introvoyz041/Phi-3.5-mini-instruct-4bit-mlx-4Bit) was converted to MLX format from [mlx-community/Phi-3.5-mini-instruct-4bit](https://huggingface.co/mlx-community/Phi-3.5-mini-instruct-4bit) using mlx-lm version **0.28.3**.
24
+
25
+ ## Use with mlx
26
+
27
+ ```bash
28
+ pip install mlx-lm
29
+ ```
30
+
31
+ ```python
32
+ from mlx_lm import load, generate
33
+
34
+ model, tokenizer = load("introvoyz041/Phi-3.5-mini-instruct-4bit-mlx-4Bit")
35
+
36
+ prompt="hello"
37
+
38
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
39
+ messages = [{"role": "user", "content": prompt}]
40
+ prompt = tokenizer.apply_chat_template(
41
+ messages, tokenize=False, add_generation_prompt=True
42
+ )
43
+
44
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
45
+ ```