Downloads · 30 days
30
14% of all-time downloads
ykarout/phi-4-deepseek-reasoning
phi-4-deepseek-reasoning is a text generation model from ykarout. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Phi-4 trained on reasoning outputs on complex logic, math and coding challenges derived from nvidia/Llama-Nemotron-Post-Training-Dataset filtered to include high length reasoning answers generated by DeepSeek R1.
Downloads · 30 days
30
14% of all-time downloads
All-time downloads
211
Public
Parameters
14.7B
29.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors29.3 GB · 100%
From the Hugging Face model README
Phi-4 trained on reasoning outputs on complex logic, math and coding challenges derived from nvidia/Llama-Nemotron-Post-Training-Dataset filtered to include high length reasoning answers generated by DeepSeek R1.
Phi-4 trained on reasoning outputs on complex logic, math and coding challenges derived from nvidia/Llama-Nemotron-Post-Training-Dataset filtered to include high length reasoning answers generated by DeepSeek R1. The training was on 10,000 samples done on an RTX 5090 (yes managed to make unsloth work on a 5090) with context length of 16384 and took around 10 hours using unsloth 4-bit quants and transfomers SFT Trainer. You do not need to add a system prompt but it can help in some use cases. The model will automatically go into thinking mode when presented with complex tasks.
Recommended Settings of temperature = 1.5 (you can test with 1 to 1.5) , min_p = 0.1, repeat penalty 1.2 or 1.3 to mitigate extremely long reasoning around the same concept.
Try the following prompt or similar structured prompts containing complex connections and the model will automatically go into thinking mode and generate long reasoning chains akin to DeepSeek.
This prompt was generated using Claude 3.7 Sonnet and not included in the train or test dataset, use similarly structred prompts and see the magic!
You're designing a system to optimize packet routing in a network with multiple possible paths. The network consists of nodes connected by bidirectional links, each with different bandwidth capacities and latency values.
Your task is to find the most efficient routing path between a given source and destination node that satisfies specific constraints on bandwidth, latency, and hop count.
Input Specification
The first line contains four space-separated integers: n, m, b_min, and l_max (2 ≤ n ≤ 100, 1 ≤ m ≤ 5000, 1 ≤ b_min ≤ 1000, 1 ≤ l_max ≤ 10000)
n: number of nodes in the network (numbered from 1 to n)m: number of links between nodesb_min: minimum required bandwidth for the pathl_max: maximum allowed total latency for the pathThe next m lines each contain four integers u, v, b, l (1 ≤ u, v ≤ n, u ≠ v, 1 ≤ b ≤ 1000, 1 ≤ l ≤ 1000):
u, v: nodes connected by this linkb: bandwidth capacity of the linkl: latency of the linkThe last line contains two integers s and t (1 ≤ s, t ≤ n, s ≠ t) - the source and destination nodes.
Constraints and Notes
b_min and latency ≤ l_maxOutput
If a valid path exists, the first line should contain three space-separated integers: the bandwidth of the chosen path, the total latency of the chosen path, and the number of hops.
The second line should contain the sequence of nodes in the path, starting with s and ending with t.
If no valid path exists, output "NO PATH" (without quotes).
Examples
Example 1:
5 6 50 100
1 2 100 20
2 3 80 30
3 5 70 10
1 4 60 10
4 5 90 30
1 3 50 5
1 5
Output:
70 60 3
1 2 3 5
Example 2:
4 5 80 50
1 2 80 20
2 3 120 15
3 4 90 10
1 3 100 30
2 4 70 25
1 4
Output:
90 40 2
1 3 4
Example 3:
3 3 100 100
1 2 150 40
2 3 180 70
1 3 120 30
1 3
Output:
120 30 1
1 3
Your solution should efficiently find the optimal path that satisfies all constraints, handling potentially complex network topologies with multiple possible routes between source and destination.
Complex reasoning requiring challenging thinking and coding (mostly python).
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
Use the code below to get started with the model.
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]