Key Specifications

Vendorother
Versionphi-2
Release Date2023-12-11
Context Window2048 tokens
Input Modalitiestext
Output Modalitiestext
LicenseMIT
Documentationhttps://huggingface.co/models

Benchmark Performance

BenchmarkScoreUnitEvaluated AtNotesSource
MMLU57.5%2023-12-115-shotview
HUMANEVAL39.7pass@12023-12-11view
GSM8K36.8%2023-12-110-shot CoTview
MATH20.5%2023-12-110-shot CoTview
BBH47.8%2023-12-113-shot CoTview
GPQA21.8%2023-12-110-shotview
IFEVAL48.8%2023-12-11prompt_strictview
ARC75.1%2023-12-11challengeview
MUSR23.7%2023-12-110-shotview
WINOGRANDE72.8%2023-12-110-shotview

Pricing

TierPriceCurrency
Input$0.1 / MtokUSD
Output$0.1 / MtokUSD
Cache Read$0 / MtokUSD
Cache Write$0 / MtokUSD

Source: https://huggingface.co/models · as of 2023-12-11

Compliance

  • Data Residency: self-host
  • SOC2: ✗
  • HIPAA: ✗
  • GDPR: ✗
  • ISO 27001: ✗

Phi-2

Model Overview

Microsoft Phi-2 2.7B 模型, 2K 上下文, 在 2.7B 规模上推理能力突出, 适合研究/教育用途。

Core Specifications

VendorVersionRelease DateContext WindowInput ModalitiesOutput ModalitiesLicense
Otherphi-22023-12-112KtexttextMIT

Benchmark Performance

BenchmarkScoreUnitNotes
MMLU (Massive Multitask Language Understanding)57.5%5-shot
HumanEval39.7pass@1
GSM8K (Grade School Math 8K)36.8%0-shot CoT
MATH20.5%0-shot CoT
BBH (BIG-Bench Hard)47.8%3-shot CoT
GPQA21.8%0-shot
IFEval48.8%prompt_strict
ARC75.1%challenge
MUSR23.7%0-shot
WinoGrande72.8%0-shot

Pricing

InputOutputCache ReadCache Write

per million tokens

Strengths

  • Reliable general-purpose model.

Weaknesses

  • MMLU 57.5, weak knowledge reasoning.
  • HumanEval 39.7, coding weak.
  • Proprietary, not self-hostable.
  • Context window 2K is limited.

Use Cases

  • General chat and Q&A

References