EpistemeAI / DeepThink-Phi4

huggingface.co
Total runs: 24
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: March 01 2025
text-generation

Introduction of DeepThink-Phi4

Model Details of DeepThink-Phi4

Model Summary

DeepThink-Phi4 is reasoning open model that is GRPO reward tuning with openai/gsm8k dataset. It improves reasoning capability.

Model Inroduction from Phi-4

phi-4 is a state-of-the-art open model built upon a blend of synthetic datasets, data from filtered public domain websites, and acquired academic books and Q&A datasets. The goal of this approach was to ensure that small capable models were trained with data focused on high quality and advanced reasoning.

phi-4 underwent a rigorous enhancement and alignment process, incorporating both supervised fine-tuning and direct preference optimization to ensure precise instruction adherence and robust safety measures

Usage (from Phi-4 model card)
Input Formats

Given the nature of the training data, phi-4 is best suited for prompts using the chat format as follows:

<|im_start|>system<|im_sep|>
You are a medieval knight and must provide explanations to modern people. Respond in the following format:
<reasoning>
...
</reasoning>
<answer>
...
</answer><|im_end|>
<|im_start|>user<|im_sep|>
How should I explain the Internet?<|im_end|>
<|im_start|>assistant<|im_sep|>
With transformers
import transformers

pipeline = transformers.pipeline(
    "text-generation",
    model="EpistemeAI/DeepThink-Phi4",
    model_kwargs={"torch_dtype": "auto"},
    device_map="auto",
)

messages = [
    {"role": "system", "content": """You are a medieval knight and must provide explanations to modern people. Respond in the following format:
<reasoning>
...
</reasoning>
<answer>
...
</answer>"""},
    {"role": "user", "content": "How should I explain the Internet?"},
]

outputs = pipeline(messages, max_new_tokens=128)
print(outputs[0]["generated_text"][-1])
Responsible AI Considerations

Like other language models, phi-4 can potentially behave in ways that are unfair, unreliable, or offensive. Some of the limiting behaviors to be aware of include:

  • Quality of Service: The model is trained primarily on English text. Languages other than English will experience worse performance. English language varieties with less representation in the training data might experience worse performance than standard American English. phi-4 is not intended to support multilingual use.

  • Representation of Harms & Perpetuation of Stereotypes: These models can over- or under-represent groups of people, erase representation of some groups, or reinforce demeaning or negative stereotypes. Despite safety post-training, these limitations may still be present due to differing levels of representation of different groups or prevalence of examples of negative stereotypes in training data that reflect real-world patterns and societal biases.

  • Inappropriate or Offensive Content: These models may produce other types of inappropriate or offensive content, which may make it inappropriate to deploy for sensitive contexts without additional mitigations that are specific to the use case.

  • Information Reliability: Language models can generate nonsensical content or fabricate content that might sound reasonable but is inaccurate or outdated.

  • Limited Scope for Code: Majority of phi-4 training data is based in Python and uses common packages such as typing , math , random , collections , datetime , itertools . If the model generates Python scripts that utilize other packages or scripts in other languages, we strongly recommend users manually verify all API uses.

Developers should apply responsible AI best practices and are responsible for ensuring that a specific use case complies with relevant laws and regulations (e.g. privacy, trade, etc.). Using safety services like Azure AI Content Safety that have advanced guardrails is highly recommended. Important areas for consideration include:

  • Allocation: Models may not be suitable for scenarios that could have consequential impact on legal status or the allocation of resources or life opportunities (ex: housing, employment, credit, etc.) without further assessments and additional debiasing techniques.

  • High-Risk Scenarios: Developers should assess suitability of using models in high-risk scenarios where unfair, unreliable or offensive outputs might be extremely costly or lead to harm. This includes providing advice in sensitive or expert domains where accuracy and reliability are critical (ex: legal or health advice). Additional safeguards should be implemented at the application level according to the deployment context.

  • Misinformation: Models may produce inaccurate information. Developers should follow transparency best practices and inform end-users they are interacting with an AI system. At the application level, developers can build feedback mechanisms and pipelines to ground responses in use-case specific, contextual information, a technique known as Retrieval Augmented Generation (RAG).

  • Generation of Harmful Content: Developers should assess outputs for their context and use available safety classifiers or custom solutions appropriate for their use case.

  • Misuse: Other forms of misuse such as fraud, spam, or malware production may be possible, and developers should ensure that their applications do not violate applicable laws and regulations.

Uploaded model

  • Developed by: EpistemeAI
  • License: apache-2.0
  • Finetuned from model : unsloth/phi-4-bnb-4bit

This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.

Runs of EpistemeAI DeepThink-Phi4 on huggingface.co

24
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About DeepThink-Phi4 huggingface.co Model

More DeepThink-Phi4 license Visit here:

https://choosealicense.com/licenses/apache-2.0

DeepThink-Phi4 huggingface.co

DeepThink-Phi4 huggingface.co is an AI model on huggingface.co that provides DeepThink-Phi4's model effect (), which can be used instantly with this EpistemeAI DeepThink-Phi4 model. huggingface.co supports a free trial of the DeepThink-Phi4 model, and also provides paid use of the DeepThink-Phi4. Support call DeepThink-Phi4 model through api, including Node.js, Python, http.

EpistemeAI DeepThink-Phi4 online free

DeepThink-Phi4 huggingface.co is an online trial and call api platform, which integrates DeepThink-Phi4's modeling effects, including api services, and provides a free online trial of DeepThink-Phi4, you can try DeepThink-Phi4 online for free by clicking the link below.

EpistemeAI DeepThink-Phi4 online free url in huggingface.co:

https://huggingface.co/EpistemeAI/DeepThink-Phi4

DeepThink-Phi4 install

DeepThink-Phi4 is an open source model from GitHub that offers a free installation service, and any user can find DeepThink-Phi4 on GitHub to install. At the same time, huggingface.co provides the effect of DeepThink-Phi4 install, users can directly use DeepThink-Phi4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

DeepThink-Phi4 install url in huggingface.co:

https://huggingface.co/EpistemeAI/DeepThink-Phi4

Url of DeepThink-Phi4

DeepThink-Phi4 huggingface.co Url

Provider of DeepThink-Phi4 huggingface.co

EpistemeAI
ORGANIZATIONS

Other API from EpistemeAI

huggingface.co

Total runs: 23
Run Growth: 11
Growth Rate: 47.83%
Updated:January 24 2026