Azure
Microsoft

Phi-3 Medium Instruct

microsoft/phi-3-medium-128k-instruct

Phi-3 Medium is a powerful 14-billion parameter model designed for advanced language understanding, reasoning, and instruction following. Optimized through supervised fine-tuning and preference adjustments, it excels in tasks involving common sense, mathematics, logical reasoning, and code processing.

Community

Open Source

Context Window

128,000

0

Using Phi-3 Medium Instruct with Python API

Using Phi-3 Medium Instruct with OpenAI compatible API

import openai

client = openai.Client(
  api_key= '{your_api_key}',
  base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="microsoft/phi-3-medium-128k-instruct",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)