{
  "contentStorage": "postgres",
  "title": "Llama 2 · Versões",
  "description": "Llama 2 是 Meta 于 2023 年 7 月 18 日发布的第二代 Llama 模型，首个开放权重且允许商用的 Llama 世代。",
  "url": "/pt/works/llama-2/versions.html",
  "entity": {
    "id": "work_llama_2",
    "type": "work",
    "title": "Llama 2",
    "slug": "llama-2",
    "summary": "Llama 2 是 Meta 于 2023 年 7 月 18 日发布的第二代 Llama 模型，首个开放权重且允许商用的 Llama 世代。",
    "status": "published",
    "categories": [
      "category-science-technology"
    ],
    "tags": [],
    "sources": [
      {
        "id": "s1",
        "title": "Meta and Microsoft Introduce the Next Generation of Llama",
        "url": "https://about.fb.com/news/2023/07/llama-2/"
      },
      {
        "id": "s2",
        "title": "Llama 2: Open Foundation and Fine-Tuned Chat Models",
        "url": "https://arxiv.org/abs/2307.09288"
      },
      {
        "id": "s3",
        "title": "Llama 2 — Hugging Face Transformers documentation",
        "url": "https://huggingface.co/docs/transformers/main/model_doc/llama2"
      },
      {
        "id": "s4",
        "title": "Llama (language model) — Wikipedia",
        "url": "https://en.wikipedia.org/wiki/Llama_(language_model)"
      }
    ],
    "createdAt": "2026-11-10T15:05:17+08:00",
    "updatedAt": "2026-11-10T15:05:17+08:00",
    "updatedBy": "user:admin",
    "revision": 1,
    "body": "Llama 2 是 Meta 于 2023 年 7 月 18 日发布的第二代 Llama 模型，首个开放权重且允许商用的 Llama 世代。[^s1]\n\n## 发布背景\n发布时上下文窗口为4,096 tokens。[^s1]\n7B、13B、70B 三种尺寸，含预训练版与对话微调版 Llama 2-Chat，预训练语料 2 万亿 tokens，比 Llama 1 多 40%，上下文由 2K 翻倍至 4K tokens[^s1]\n\n## 定价与获取\n按 Llama 2 Community License 免费提供权重，可用于研究与商业用途（月活超 7 亿的产品需另行申请许可），微软为首选合作伙伴并上架 Azure AI 模型目录。[^s1]\n\n## 性能表现\n以下为Meta公布的自家评测结果，尚未经独立复现。[^s1]\n- MMLU (5-shot, 70B)：68.9（较 Llama 1 65B 高约 5 分；接近 GPT-3.5 的 70.0）[^s1]\n- GSM8K (8-shot, 70B)：56.8（接近 GPT-3.5 的 57.1）[^s1]\n- Code average, HumanEval + MBPP pass@1 (70B)：37.5（论文称与 GPT-3.5 相比编码基准仍有明显差距）[^s1]\n- Commonsense reasoning, 7-benchmark average (70B)：71.9（高于 Llama 2 13B 的 66.9 和 7B 的 63.9）[^s1]\n\n## 主要特点\n- 34B 版本已训练但因红队测试时间不足未发布[^s1]\n\n## 定位与后续\nLlama 1（LLaMA）的继任者、Llama 3 的前代：首个开放权重且允许商用的 Llama 世代，奠定了 Meta 开放权重路线，后被 2024 年 4 月发布的 Llama 3 取代。 其前代为[[work_llama|Llama]]。[^s1]",
    "url": "/works/llama-2.html",
    "lang": "pt",
    "sourceLang": "zh",
    "fallback": true,
    "availableLangs": [
      "zh"
    ],
    "workKind": "ai_model"
  },
  "entities": null,
  "versions": [
    {
      "revision": 1,
      "updatedAt": "2026-11-10T15:05:17+08:00",
      "message": "当前版本",
      "hasSnapshot": true,
      "url": "/pt/works/llama-2/at/1.html"
    }
  ],
  "lang": "pt",
  "availableLangs": [
    "zh"
  ],
  "fallback": true,
  "infoFields": [
    {
      "key": "work_kind",
      "label": "Work kind",
      "value": "Modelo de IA"
    }
  ],
  "pagination": {
    "page": 1,
    "pageSize": 50,
    "total": 1,
    "pageCount": 1
  }
}