LLM Reference

Llama 2 7B

Released
2023-07-18
Last refreshed
2026-04-15
Status
Researched 154d ago
Open SourceCodingClassification

Llama 2 7B is worth evaluating for coding and classification when its provider route and context window match the workload.

Use it for

  • Teams evaluating coding and classification
  • Workloads that can use a 4k context window
  • Buyers comparing 1 tracked provider route

Do not use it for

  • Vision or document-understanding workloads
  • Strict JSON or tool-calling flows
Specifications
Family
Llama 2
Released
2023-07-18
Context
4k
Parameters
7B
Architecture
Decoder Only
Knowledge cutoff
2022-09
Specialization
general
Training
finetuned
Created by

Large-scale open-source AI for social technologies.

Menlo Park, California, United States
Founded 2013
Website
Pricing
Output / 1M
$0.200
Input / 1M
$0.200

Cheapest of 1 route · Fireworks AI

About

The Llama 2 7B model is a powerful generative text model developed by Meta, featuring 7 billion parameters and utilizing an optimized transformer architecture. Trained on 2 trillion tokens from diverse public sources, it excels in various NLP tasks, particularly dialogue applications. The model has been fine-tuned for helpfulness and safety using supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF). It outperforms many open-source chat models and competes with popular closed-source alternatives. AI engineers can easily integrate this model into their projects for advanced natural language understanding and generation capabilities through Hugging Face .

Llama 2 7B is an open-source model in the Llama 2 family. The structured metadata tracks a 4k-token context window. This page tracks provider routes through Fireworks AI, with the cheapest tracked route listed at $0.2 input and $0.2 output per 1M tokens. Headline tracked benchmarks include Google-Proof Q&A 35.9, HellaSwag 85.1, and HumanEval 45.1.

Top use-case fit: coding, agents, and build tasks

Coding

Q/$ B

1 relevant benchmark in the decision map.

Classification

Q/$ B

2 relevant benchmarks in the decision map.

Provider price ladder

Compare API pricing across 1 providers for input and output tokens, batch, and cached reads when available.

ProviderInput / 1MOutput / 1MRoute
Fireworks AI$0.200$0.200
Serverless

Capabilities

No model capability flags are currently sourced.

Benchmark peer barsfor Coding

Benchmark scores(4)

Scores are benchmark-specific and are direction-aware: the same numeric gap can mean very different outcomes across suites. Use the leaderboard context and this model's provider route to decide whether the winning margin is meaningful for your workload.
BenchmarkScoreVersionSource
Google-Proof Q&A35.9diamondresearch
HellaSwag85.110-shotresearch
HumanEval45.1pass@1research
Massive Multitask Language Understanding63.55-shotresearch

Migration checks

No linked migration route is available for this model yet.

Rankings & picks(9)

Comparison and alternatives

Browse all comparisons →
Show all 46 popular comparisonssorted by 7-day search impressions
Llama 2 7B vs Xiaomi MiMo-V2.5-TTS-Series24Llama 2 7B vs Stockmark 2 100B Instruct20Llama 2 7B vs GPT-2 Medium19Llama 2 7B vs Codex 119Llama 2 7B vs Qwen3.5-4B16Llama 2 7B vs ELYZA Japanese Llama 2 13B15Llama 2 7B vs Mistral Large 3 675B Instruct13Llama 2 7B vs Seed-OSS 36B Instruct13Llama 2 7B vs Llama 3.1 Swallow 8B Instruct11Llama 2 7B vs MiniCPM 2B10Llama 2 7B vs Phi-4 Mini Flash Reasoning10Llama 2 7B vs Llama 3.1 Nemotron 70B Reward8Llama 2 7B vs Llama 3 Swallow 70B Instruct8Llama 2 7B vs Mistral Nemotron8Llama 2 7B vs Nemotron Mini Hindi 4B Instruct8Llama 2 7B vs Sarvam 30B8Llama 2 7B vs Marin 8B Instruct8Llama 2 7B vs Mistral Magistral Small 25098Llama 2 7B vs Llama 3 Taiwan 70B Instruct7Llama 2 7B vs Mistral Small 37Llama 2 7B vs Bielik 11B v2.6 Instruct6Llama 2 7B vs GPT-4 Turbo Preview6Llama 2 7B vs Together AI - Gemma 3n-e4B6Llama 2 7B vs Llama 3.1 NemoGuard 8B Content Safety6Llama 2 7B vs Teuken 7B Instruct6Llama 2 7B vs Nemotron Mini 4B Instruct6Llama 2 7B vs Llama Guard 3 1B6Llama 2 7B vs GPT-45Llama 2 7B vs Dracarys Llama 3.1 70B Instruct3Llama 2 7B vs Llama Guard 2 8B3Llama 2 7B vs Llama 3.2 NV RerankQA 1B v23Llama 2 7B vs Llama 3.3 Nemotron Super 49B v13Llama 2 7B vs Gemma 2 9B SahabatAI Instruct3Llama 2 7B vs Codex Mini Latest3Llama 2 7B vs text-curie3Llama 2 7B vs Aquila 2 34B3Llama 2 7B vs Llama Guard 7B2Llama 2 7B vs Llama 3.1 NemoGuard 8B Topic Control2Llama 2 7B vs Magistral Small 25062Llama 2 7B vs GPT-11Llama 2 7B vs Claude Instant 1.11Llama 2 7B vs Llama 3.1 Nemotron Nano 4B v1.11Llama 2 7B vs ShieldGemma 9B1Llama 2 7B vs Italia 10B Instruct1Llama 2 7B vs Granite Guardian 3.0 8B1Llama 2 7B vs Claude Instant1