Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: microsoft/Phi-3.5-mini-instruct
|
3 |
+
library_name: mlx-lm
|
4 |
+
tags:
|
5 |
+
- mlx
|
6 |
+
- lora
|
7 |
+
- phi-3.5
|
8 |
+
license: mit
|
9 |
+
---
|
10 |
+
|
11 |
+
# Phi 3.5 Mini LoRA Fine-tuned with MLX
|
12 |
+
|
13 |
+
This is a LoRA (Low-Rank Adaptation) fine-tuned version of Phi 3.5 Mini using MLX.
|
14 |
+
|
15 |
+
## Usage with MLX
|
16 |
+
|
17 |
+
```python
|
18 |
+
from mlx_lm import load, generate
|
19 |
+
|
20 |
+
model, tokenizer = load("kacperbb/phi-3.5-mlx-finetuned")
|
21 |
+
response = generate(model, tokenizer, prompt="Hello, how are you?", max_tokens=100)
|
22 |
+
print(response)
|