Add files using upload-large-folder tool
Browse files- .gitattributes +6 -0
- Phi-4-mini-reasoning-UD-IQ1_M.gguf +3 -0
- Phi-4-mini-reasoning-UD-IQ1_S.gguf +3 -0
- Phi-4-mini-reasoning-UD-IQ2_M.gguf +3 -0
- Phi-4-mini-reasoning-UD-IQ3_XXS.gguf +3 -0
- Phi-4-mini-reasoning-UD-Q2_K_XL.gguf +3 -0
- Phi-4-mini-reasoning-UD-Q4_K_XL.gguf +3 -0
- README.md +1 -40
- config.json +139 -0
.gitattributes
CHANGED
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
Phi-4-mini-reasoning-UD-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
Phi-4-mini-reasoning-UD-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
Phi-4-mini-reasoning-UD-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
|
39 |
+
Phi-4-mini-reasoning-UD-Q2_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
|
40 |
+
Phi-4-mini-reasoning-UD-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
|
41 |
+
Phi-4-mini-reasoning-UD-Q4_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
|
Phi-4-mini-reasoning-UD-IQ1_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8aeacce133f4e28ab19b607cd9d85edf9fb52dd231b866b903739b19372e1c37
|
3 |
+
size 1195260832
|
Phi-4-mini-reasoning-UD-IQ1_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:325758ced3f234b5debfab7b97b040545f018438fb201ba670a1127d7a75e927
|
3 |
+
size 1141193632
|
Phi-4-mini-reasoning-UD-IQ2_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa80f2d71bf5e9356c9983d1ac092800ef8e458d5530ec4ce9d906af9a94b4d8
|
3 |
+
size 1536129952
|
Phi-4-mini-reasoning-UD-IQ3_XXS.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:be0af7b40c9cebc18e93adf26645aedadd542ea569ffadd96c3d7576576e5df9
|
3 |
+
size 1668545440
|
Phi-4-mini-reasoning-UD-Q2_K_XL.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:795d18656943be4f9bdeddcde99bc7a3ea6f8c42acf66c3330e5036f9defa4ca
|
3 |
+
size 1720237984
|
Phi-4-mini-reasoning-UD-Q4_K_XL.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:60fd722999c9c67dcf0d9f1b2aad550cbc8aa38c728eddbb0d94af8a016af581
|
3 |
+
size 2462678944
|
README.md
CHANGED
@@ -12,52 +12,13 @@ tags:
|
|
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 |
-
> This Phi-4-mini-reasoning upload also includes our [Phi-4 bug fixes](https://unsloth.ai/blog/phi4).
|
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 |
-
|
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 Qwen3 (8B)** | [▶️ Start on Colab](https://docs.unsloth.ai/get-started/unsloth-notebooks) | 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) | 2.4x faster | 58% 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-mini-reasoning
|
61 |
|
62 |
Phi-4-mini-reasoning is a lightweight open model built upon synthetic data with a focus on high-quality, reasoning dense data further finetuned for more advanced math reasoning capabilities.
|
63 |
The model belongs to the Phi-4 model family and supports 128K token context length.
|
|
|
12 |
- unsloth
|
13 |
- math
|
14 |
- code
|
|
|
|
|
15 |
widget:
|
16 |
- messages:
|
17 |
- role: user
|
18 |
content: How to solve 3*x^2+4*x+5=1?
|
19 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
+
## Model Summary
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
Phi-4-mini-reasoning is a lightweight open model built upon synthetic data with a focus on high-quality, reasoning dense data further finetuned for more advanced math reasoning capabilities.
|
24 |
The model belongs to the Phi-4 model family and supports 128K token context length.
|
config.json
ADDED
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"Phi3ForCausalLM"
|
4 |
+
],
|
5 |
+
"attention_bias": false,
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 199999,
|
8 |
+
"embd_pdrop": 0.0,
|
9 |
+
"eos_token_id": 199999,
|
10 |
+
"full_attn_mod": 1,
|
11 |
+
"hidden_act": "silu",
|
12 |
+
"hidden_size": 3072,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"intermediate_size": 8192,
|
15 |
+
"interpolate_factor": 1,
|
16 |
+
"lm_head_bias": false,
|
17 |
+
"max_position_embeddings": 131072,
|
18 |
+
"mlp_bias": false,
|
19 |
+
"model_type": "phi3",
|
20 |
+
"num_attention_heads": 24,
|
21 |
+
"num_hidden_layers": 32,
|
22 |
+
"num_key_value_heads": 8,
|
23 |
+
"original_max_position_embeddings": 4096,
|
24 |
+
"pad_token_id": 200018,
|
25 |
+
"partial_rotary_factor": 0.75,
|
26 |
+
"resid_pdrop": 0.0,
|
27 |
+
"rms_norm_eps": 1e-05,
|
28 |
+
"rope_scaling": {
|
29 |
+
"long_factor": [
|
30 |
+
1,
|
31 |
+
1.118320672,
|
32 |
+
1.250641126,
|
33 |
+
1.398617824,
|
34 |
+
1.564103225,
|
35 |
+
1.74916897,
|
36 |
+
1.956131817,
|
37 |
+
2.187582649,
|
38 |
+
2.446418898,
|
39 |
+
2.735880826,
|
40 |
+
3.059592084,
|
41 |
+
3.421605075,
|
42 |
+
3.826451687,
|
43 |
+
4.279200023,
|
44 |
+
4.785517845,
|
45 |
+
5.351743533,
|
46 |
+
5.984965424,
|
47 |
+
6.693110555,
|
48 |
+
7.485043894,
|
49 |
+
8.370679318,
|
50 |
+
9.36110372,
|
51 |
+
10.4687158,
|
52 |
+
11.70738129,
|
53 |
+
13.09260651,
|
54 |
+
14.64173252,
|
55 |
+
16.37415215,
|
56 |
+
18.31155283,
|
57 |
+
20.47818807,
|
58 |
+
22.90118105,
|
59 |
+
25.61086418,
|
60 |
+
28.64115884,
|
61 |
+
32.03,
|
62 |
+
32.1,
|
63 |
+
32.13,
|
64 |
+
32.23,
|
65 |
+
32.6,
|
66 |
+
32.61,
|
67 |
+
32.64,
|
68 |
+
32.66,
|
69 |
+
32.7,
|
70 |
+
32.71,
|
71 |
+
32.93,
|
72 |
+
32.97,
|
73 |
+
33.28,
|
74 |
+
33.49,
|
75 |
+
33.5,
|
76 |
+
44.16,
|
77 |
+
47.77
|
78 |
+
],
|
79 |
+
"short_factor": [
|
80 |
+
1,
|
81 |
+
1.118320672,
|
82 |
+
1.250641126,
|
83 |
+
1.398617824,
|
84 |
+
1.564103225,
|
85 |
+
1.74916897,
|
86 |
+
1.956131817,
|
87 |
+
2.187582649,
|
88 |
+
2.446418898,
|
89 |
+
2.735880826,
|
90 |
+
3.059592084,
|
91 |
+
3.421605075,
|
92 |
+
3.826451687,
|
93 |
+
4.279200023,
|
94 |
+
4.785517845,
|
95 |
+
5.351743533,
|
96 |
+
5.984965424,
|
97 |
+
6.693110555,
|
98 |
+
7.485043894,
|
99 |
+
8.370679318,
|
100 |
+
9.36110372,
|
101 |
+
10.4687158,
|
102 |
+
11.70738129,
|
103 |
+
13.09260651,
|
104 |
+
14.64173252,
|
105 |
+
16.37415215,
|
106 |
+
18.31155283,
|
107 |
+
20.47818807,
|
108 |
+
22.90118105,
|
109 |
+
25.61086418,
|
110 |
+
28.64115884,
|
111 |
+
32.03,
|
112 |
+
32.1,
|
113 |
+
32.13,
|
114 |
+
32.23,
|
115 |
+
32.6,
|
116 |
+
32.61,
|
117 |
+
32.64,
|
118 |
+
32.66,
|
119 |
+
32.7,
|
120 |
+
32.71,
|
121 |
+
32.93,
|
122 |
+
32.97,
|
123 |
+
33.28,
|
124 |
+
33.49,
|
125 |
+
33.5,
|
126 |
+
44.16,
|
127 |
+
47.77
|
128 |
+
],
|
129 |
+
"type": "longrope"
|
130 |
+
},
|
131 |
+
"rope_theta": 10000.0,
|
132 |
+
"sliding_window": 262144,
|
133 |
+
"tie_word_embeddings": true,
|
134 |
+
"torch_dtype": "bfloat16",
|
135 |
+
"transformers_version": "4.52.0.dev0",
|
136 |
+
"unsloth_fixed": true,
|
137 |
+
"use_cache": true,
|
138 |
+
"vocab_size": 200064
|
139 |
+
}
|