Run this model with HF Jobs

Run microsoft/phi-4 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/microsoft/phi-4. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/microsoft/phi-4 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/microsoft/phi-4. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/microsoft/phi-4. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Phi-4 Training Cutoff Date (Responds October 2023)

#45
by kittikitti - opened

Overview

On the model card we see here,

Dates October 2024 – November 2024

Also, Microsoft's official documentation at https://azure.microsoft.com/en-us/products/phi states in their FAQ,

Screenshot 2025-04-20 at 12.04.58 PM.png

However, when prompting the model responds October 2023.

Example 1

user: What is the cutoff date for Phi training data?
phi-4: As a large language model, my training data includes information up until October 2023. This means I can provide information and insights based on developments and knowledge available up to that point. It's important to stay updated with the latest sources for the most current developments beyond this date.

Example 2

user: When is your training cutoff date?
phi-4: As of my last update, my training data includes information up to October 2023. This means I can provide information and insights based on knowledge available up to that date. If you have questions about developments or events beyond this time, I recommend consulting more current resources. How else may I assist you today?

Discussion

  • Is this intended behavior?
  • Is this a hallucination?
  • Which prompts illicit a correct response?
  • If it's a hallucination or otherwise incorrect, can this be fixed?
Microsoft org
β€’
edited May 9, 2025

Hello @kittikitti !

According to the model card, "Dates" are referred to the period when the model has been trained, whereas the "Status" indicates the model's knowledge cutoff. It is expected that for publicly available data the model answers with a date earlier than June 2024.

Screenshot 2025-05-09 at 10.21.13.png

Hello @kittikitti !

According to the model card, "Dates" are referred to the period when the model has been trained, whereas the "Status" indicates the model's knowledge cutoff. It is expected that for publicly available data the model answers with a date earlier than June 2024.

Screenshot 2025-05-09 at 10.21.13.png

Thank you, this is a good explanation.

gugarosa changed discussion status to closed

Sign up or log in to comment