Update README.md
Browse files
README.md
CHANGED
@@ -1,29 +1,61 @@
|
|
1 |
---
|
2 |
-
|
3 |
-
|
4 |
language:
|
5 |
- en
|
6 |
-
|
7 |
-
|
|
|
8 |
pipeline_tag: text-generation
|
9 |
tags:
|
10 |
-
- phi
|
11 |
-
- unsloth
|
12 |
- nlp
|
|
|
13 |
- math
|
14 |
- code
|
15 |
-
-
|
16 |
-
-
|
17 |
-
- reasoning
|
18 |
-
inference:
|
19 |
-
parameters:
|
20 |
-
temperature: 0
|
21 |
widget:
|
22 |
- messages:
|
23 |
- role: user
|
24 |
-
content:
|
25 |
-
library_name: transformers
|
26 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
# Phi-4-reasoning Model Card
|
29 |
|
|
|
1 |
---
|
2 |
+
base_model:
|
3 |
+
- microsoft/Phi-4-reasoning
|
4 |
language:
|
5 |
- en
|
6 |
+
library_name: transformers
|
7 |
+
license: mit
|
8 |
+
license_link: https://huggingface.co/microsoft/Phi-4-reasoning/resolve/main/LICENSE
|
9 |
pipeline_tag: text-generation
|
10 |
tags:
|
|
|
|
|
11 |
- nlp
|
12 |
+
- unsloth
|
13 |
- math
|
14 |
- code
|
15 |
+
- phi
|
16 |
+
- phi4
|
|
|
|
|
|
|
|
|
17 |
widget:
|
18 |
- messages:
|
19 |
- role: user
|
20 |
+
content: How to solve 3*x^2+4*x+5=1?
|
|
|
21 |
---
|
22 |
+
> [!NOTE]
|
23 |
+
> You must use `--jinja` in llama.cpp to enable reasoning. Otherwise no <think> token will be provided.
|
24 |
+
>
|
25 |
+
<div>
|
26 |
+
<p style="margin-bottom: 0; margin-top: 0;">
|
27 |
+
<strong>See <a href="https://huggingface.co/collections/unsloth/phi-4-all-versions-677eecf93784e61afe762afa">our collection</a> for all versions of Phi-4 including GGUF, 4-bit & 16-bit formats.</strong>
|
28 |
+
</p>
|
29 |
+
<p style="margin-top: 0;margin-bottom: 0;">
|
30 |
+
<em><a href="https://docs.unsloth.ai/basics/unsloth-dynamic-v2.0-gguf">Unsloth Dynamic 2.0</a> achieves superior accuracy & outperforms other leading quants.</em>
|
31 |
+
</p>
|
32 |
+
<div style="display: flex; gap: 5px; align-items: center; ">
|
33 |
+
<a href="https://github.com/unslothai/unsloth/">
|
34 |
+
<img src="https://github.com/unslothai/unsloth/raw/main/images/unsloth%20new%20logo.png" width="133">
|
35 |
+
</a>
|
36 |
+
<a href="https://discord.gg/unsloth">
|
37 |
+
<img src="https://github.com/unslothai/unsloth/raw/main/images/Discord%20button.png" width="173">
|
38 |
+
</a>
|
39 |
+
<a href="https://docs.unsloth.ai/">
|
40 |
+
<img src="https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/documentation%20green%20button.png" width="143">
|
41 |
+
</a>
|
42 |
+
</div>
|
43 |
+
<h1 style="margin-top: 0rem;">✨ Run & Fine-tune Phi-4 with Unsloth!</h1>
|
44 |
+
</div>
|
45 |
+
|
46 |
+
- Fine-tune Phi-4 (14B) for free using our Google [Colab notebook here](https://docs.unsloth.ai/get-started/unsloth-notebooks)!
|
47 |
+
- Read our Blog about Phi-4 support with our bug fixes: [unsloth.ai/blog/phi4](https://unsloth.ai/blog/phi4)
|
48 |
+
- View the rest of our notebooks in our [docs here](https://docs.unsloth.ai/get-started/unsloth-notebooks).
|
49 |
+
- Run & export your fine-tuned model to Ollama, llama.cpp or HF.
|
50 |
+
|
51 |
+
| Unsloth supports | Free Notebooks | Performance | Memory use |
|
52 |
+
|-----------------|--------------------------------------------------------------------------------------------------------------------------|-------------|----------|
|
53 |
+
| **Phi-4 (14B)** | [▶️ Start on Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4-Conversational.ipynb) | 2x faster | 50% less |
|
54 |
+
| **Qwen3 (14B)** | [▶️ Start on Colab](https://docs.unsloth.ai/get-started/unsloth-notebooks) | 3x faster | 70% less |
|
55 |
+
| **GRPO with Phi-4 (14B)** | [▶️ Start on Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4_(14B)-GRPO.ipynb) | 3x faster | 80% less |
|
56 |
+
| **Llama-3.2 (3B)** | [▶️ Start on Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_(1B_and_3B)-Conversational.ipynb) | 2x faster | 80% less |
|
57 |
+
| **Llama-3.2 (11B vision)** | [▶️ Start on Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_(11B)-Vision.ipynb) | 2x faster | 60% less |
|
58 |
+
| **Qwen2.5 (7B)** | [▶️ Start on Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_(7B)-Alpaca.ipynb) | 2x faster | 60% less |
|
59 |
|
60 |
# Phi-4-reasoning Model Card
|
61 |
|