Affichage des articles dont le libellé est phi-4. Afficher tous les articles
Affichage des articles dont le libellé est phi-4. Afficher tous les articles

1/25/2026

Un prompt sur Ollama et PHI4

 Un prompt avec des balises pour la G·IA.

Pourquoi ce prompt, simplement je le fais fonctionner sur Ollama et PHI4 sans accès au Web.

Et cela fonctionne.



8/07/2025

Phi-4 Model Card Hugging Face

 Phi-4 Model Card

Phi-4 Technical Report microsoft/phi-4 · Hugging Face


Model Summary

Developers Microsoft Research

Description 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

Architecture 14B parameters, dense decoder-only Transformer model

Inputs Text, best suited for prompts in the chat format

Context length 16K tokens

GPUs 1920 H100-80G

Training time 21 days

Training data 9.8T tokens

Outputs Generated text in response to input

Dates October 2024 – November 2024

Status Static model trained on an offline dataset with cutoff dates of June 2024 and earlier for publicly available data

Release date December 12, 2024

License MIT


microsoft/phi-4 · Hugging Face

https://huggingface.co/microsoft/phi-4#:~:text=phi-4%20is%20a%20state-of-the-art%20open%20model%20built%20upon,websites%2C%20and%20acquired%20academic%20books%20and%20Q%26A%20datasets.


Quick Links

Inference Providers documentation

Nebius AI Studio documentation

Compare Inference Providers for this model


import os
from openai import OpenAI

client = OpenAI(
    base_url="https://router.huggingface.co/v1",
    api_key=os.environ["HF_TOKEN"],
)

completion = client.chat.completions.create(
    model="microsoft/phi-4:nebius",
    messages=[
        {
            "role": "user",
            "content": "What is the capital of France?"
        }
    ],
)

print(completion.choices[0].message)

-----------------------------

Pierre Erol GIRAUDY

https://www.erolgiraudy.eu/

https://uga-ia.blogspot.com/

https://www.erolgiraudy.eu/2024/10/mes-15-livres.html

https://and500.blogspot.com/

https://www.ugaia.eu/

Pour Info : Mon livre https://amzn.eu/d/eTuHn56 sur AMAZON

Users Group Artificial Intelligence Andorra (U.G.A.I.A.) : Liste des Certificats PDF Microsoft Learn

Info SharePoint-Teams-Copilot

https://clubsp2013.blogspot.com/p/portfolio-microsoft-learn-pierre-erol.html