Microsoft: Phi 4

[Microsoft Research](/microsoft) Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed. At 14 …

microsoft/phi-4

[Microsoft Research](/microsoft) Phi-4 is designed to perform well in complex reasoning tasks and can operate efficiently in situations with limited memory or where quick responses are needed. At 14 billion...

Specifications & capabilities

Input
text
Output
text
Context window · tokens
16384
Knowledge cutoff
2024-06-30
Published model ID
phi-4
Capabilities
structuredOutputs

Evaluations

81–83 / 83

Open LLM Leaderboard v2

4.879%

source id
openLLMLeaderboardV2
leaderboard name
Open LLM v2 IFEval · Raw
dimension
instructionFollowing
metric
Raw accuracy
rank
4540
aggregation scope
suite
Open LLM v2
co2_kg
0.8783618221059865
status
archived
precision
float16
task_count
6
metric_kind
Raw accuracy
rank_method
Derived competition rank over published evaluations with reported scores, including variants and source flags
weight_type
Original
published_at
2025-03-20T12:17:27Z
chat_template
false
suite_version
2
model_revision
381727a5ee103da6c1b14ecd3d39cd09832cbcf8
source_flagged
false
missing_metrics
    dataset_revision
    9c09a7cae43334062a82cb164f2ef255013dafa2
    metric_population
    4576
    ranking_population
    4576
    source_flag_anomaly
    false
    source model id
    microsoft/phi-4
    Original result ↗

    Open LLM Leaderboard v2

    4.879%

    source id
    openLLMLeaderboardV2
    leaderboard name
    Open LLM v2 IFEval · Normalized
    dimension
    instructionFollowing
    metric
    Normalized score
    rank
    4540
    aggregation scope
    suite
    Open LLM v2
    co2_kg
    0.8783618221059865
    status
    archived
    precision
    float16
    task_count
    6
    metric_kind
    Normalized score
    rank_method
    Derived competition rank over published evaluations with reported scores, including variants and source flags
    weight_type
    Original
    published_at
    2025-03-20T12:17:27Z
    chat_template
    false
    suite_version
    2
    model_revision
    381727a5ee103da6c1b14ecd3d39cd09832cbcf8
    source_flagged
    false
    missing_metrics
      dataset_revision
      9c09a7cae43334062a82cb164f2ef255013dafa2
      metric_population
      4576
      ranking_population
      4576
      source_flag_anomaly
      false
      source model id
      microsoft/phi-4
      Original result ↗

      Published prices

      1–4 / 4

      microsoft/phi-4 ↗

      $0.07

      Inference provider
      deepInfra
      Platform
      DeepInfra
      Unit
      input_tokens_per_million
      Currency
      USD
      Billing conditions

      microsoft/phi-4 ↗

      $0.14

      Inference provider
      deepInfra
      Platform
      DeepInfra
      Unit
      output_tokens_per_million
      Currency
      USD
      Billing conditions

      microsoft/phi-4 ↗

      $0.07

      Inference provider
      openRouter
      Platform
      OpenRouter
      Unit
      input_tokens_per_million
      Currency
      USD
      Billing conditions

      microsoft/phi-4 ↗

      $0.14

      Inference provider
      openRouter
      Platform
      OpenRouter
      Unit
      output_tokens_per_million
      Currency
      USD
      Billing conditions

      Provider specifications & access

      1–7 / 7

      microsoft/phi-4 ↗

      source model id
      azure-huggingface/microsoft--phi-4@1
      hosting
      foundry-managed-compute
      platforms
      • Microsoft Foundry
      license
      MIT
      context length
      16384
      architecture
      input_modalities
      • text
      output_modalities
      • text
      capabilities

        microsoft/phi-4 ↗

        source model id
        azure-huggingface/microsoft--phi-4@2
        hosting
        foundry-managed-compute
        platforms
        • Microsoft Foundry
        license
        MIT
        context length
        16384
        architecture
        input_modalities
        • text
        output_modalities
        • text
        capabilities

          microsoft/phi-4 ↗

          source model id
          azure-huggingface/microsoft--phi-4@3
          hosting
          foundry-managed-compute
          platforms
          • Microsoft Foundry
          license
          MIT
          context length
          16384
          architecture
          input_modalities
          • text
          output_modalities
          • text
          capabilities

            microsoft/phi-4 ↗

            source model id
            azure-huggingface/microsoft--phi-4@4
            hosting
            foundry-managed-compute
            platforms
            • Microsoft Foundry
            license
            MIT
            context length
            16384
            architecture
            input_modalities
            • text
            output_modalities
            • text
            capabilities

              microsoft/phi-4 ↗

              source model id
              azure-huggingface/microsoft--phi-4@5
              hosting
              foundry-managed-compute
              platforms
              • Microsoft Foundry
              license
              MIT
              context length
              16384
              architecture
              input_modalities
              • text
              output_modalities
              • text
              capabilities

                microsoft/phi-4 ↗

                source model id
                publishers/hf-microsoft/models/phi-4@001
                hosting
                vertex-self-deployed
                platforms
                • Google Cloud Vertex AI
                architecture
                input_modalities
                • text
                output_modalities
                • text
                capabilities

                  Phi-4 ↗

                  source model id
                  publishers/microsoft/models/phi4@phi-4
                  hosting
                  vertex-self-deployed
                  platforms
                  • Google Cloud Vertex AI
                  architecture
                  input_modalities
                  • text
                  output_modalities
                  • text
                  capabilities

                    Source specification observations

                    1–8 / 8

                    azureFoundry ↗

                    field
                    context_length
                    value
                    16384
                    normalized value
                    16384
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    azureFoundry ↗

                    field
                    context_length
                    value
                    16384
                    normalized value
                    16384
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    azureFoundry ↗

                    field
                    context_length
                    value
                    16384
                    normalized value
                    16384
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    azureFoundry ↗

                    field
                    context_length
                    value
                    16384
                    normalized value
                    16384
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    azureFoundry ↗

                    field
                    context_length
                    value
                    16384
                    normalized value
                    16384
                    scope
                    source-model
                    source id
                    azureFoundry
                    confidence
                    1

                    openRouter ↗

                    field
                    context_length
                    value
                    16384
                    normalized value
                    16384
                    scope
                    source-model
                    source id
                    openRouter
                    confidence
                    1

                    openRouter ↗

                    field
                    knowledge_cutoff
                    reported field
                    knowledge_cutoff
                    value
                    2024-06-30
                    normalized value
                    2024-06-30
                    precision
                    day
                    scope
                    source-model
                    source id
                    openRouter
                    confidence
                    1

                    openRouter ↗

                    field
                    max_output_tokens
                    value
                    14745
                    normalized value
                    14745
                    scope
                    source-model
                    source id
                    openRouter
                    confidence
                    1

                    Original sources

                    1–20 / 22

                    Hugging Face · Model repository ↗

                    Hugging Face · microsoft/Phi-4 ↗

                    DeepInfra · Model page ↗

                    Google Cloud · Model page ↗

                    Google Cloud · Model page ↗

                    Microsoft Foundry · Model page ↗

                    Microsoft Foundry · Model page ↗

                    Microsoft Foundry · Model page ↗

                    Microsoft Foundry · Model page ↗

                    Microsoft Foundry · Model page ↗

                    OpenRouter · Model page ↗

                    Microsoft Foundry · Model documentation ↗

                    arXiv · Model reference ↗

                    DeepInfra · Catalog ↗

                    Epoch AI · Catalog ↗

                    GitHub · Catalog ↗

                    Google Cloud · Catalog ↗

                    Hugging Face · Catalog ↗

                    Hugging Face · Catalog ↗

                    LMArena · Catalog ↗

                    Source links

                    1–11 / 11

                    Explore more models

                    Models

                    Loading
                    EVIDENCE / COMPARISON

                    Benchmarks

                    Explore every benchmark

                    Loading

                    These charts contain model-linked results. The charts above also include unlinked source profiles. Compare scores within each evaluation. Model quality, usage, transparency and system performance measure different things.

                    Install TensorTrace