<?xml version="1.0" encoding="UTF-8"?>
<page>
  <sourceCitations></sourceCitations>
  <contentStorage>postgres</contentStorage>
  <sameNames></sameNames>
  <basedOn></basedOn>
  <title>Code Llama · 沿革</title>
  <description>Code Llama 是 Meta 于 2023 年 8 月 24 日发布的代码特化大模型，是 Llama 2 的代码衍生系列。</description>
  <url>/ja/works/code-llama/history.html</url>
  <entity>
    <perspectives></perspectives>
    <customFields></customFields>
    <rankingTiers></rankingTiers>
    <rankingColumns></rankingColumns>
    <rankingEntries></rankingEntries>
    <id>work_code_llama</id>
    <type>work</type>
    <title>Code Llama</title>
    <slug>code-llama</slug>
    <aliases></aliases>
    <previousSlugs></previousSlugs>
    <summary>Code Llama 是 Meta 于 2023 年 8 月 24 日发布的代码特化大模型，是 Llama 2 的代码衍生系列。</summary>
    <status>published</status>
    <categories>
      <category>category-science-technology</category>
    </categories>
    <tags></tags>
    <sources>
      <source>
        <id>s1</id>
        <title>Introducing Code Llama, a state-of-the-art large language model for coding — Meta AI</title>
        <url>https://ai.meta.com/blog/code-llama-large-language-model-coding/</url>
      </source>
      <source>
        <id>s2</id>
        <title>Introducing Code Llama, an AI Tool for Coding — Meta</title>
        <url>https://about.fb.com/news/2023/08/code-llama-ai-for-coding/</url>
      </source>
      <source>
        <id>s3</id>
        <title>Code Llama: Open Foundation Models for Code — arXiv:2308.12950</title>
        <url>https://arxiv.org/pdf/2308.12950</url>
      </source>
      <source>
        <id>s4</id>
        <title>Code Llama — Hugging Face</title>
        <url>https://huggingface.co/codellama</url>
      </source>
    </sources>
    <createdAt>2026-11-10T15:05:22+08:00</createdAt>
    <updatedAt>2026-11-10T15:05:22+08:00</updatedAt>
    <updatedBy>user:admin</updatedBy>
    <revision>1</revision>
    <body>Code Llama 是 Meta 于 2023 年 8 月 24 日发布的代码特化大模型，是 Llama 2 的代码衍生系列。[^s1]&#xA;&#xA;## 发布背景&#xA;发布时上下文窗口为100K tokens。[^s1]&#xA;Meta 官方定性为 Llama 2 的代码特化版本，由 Llama 2 在代码数据集上继续训练而成，但有独立博客、论文、模型卡与 GitHub 仓库[^s1]&#xA;&#xA;## 定价与获取&#xA;开源权重，沿用 Llama 2 社区许可，可免费用于研究与商业用途；训练序列为 16K tokens，官方称在最长 100K tokens 输入上仍有改进，7B/13B 基础版与 Instruct 版支持代码填空。[^s1]&#xA;&#xA;## 性能表现&#xA;以下为Meta公布的自家评测结果，尚未经独立复现。[^s1]&#xA;- HumanEval：53.7% pass@1（Code Llama 34B）（高于 Llama 2，与 GPT-3.5（48.1%）相当）[^s1]&#xA;- MBPP：56.2% pass@1（Code Llama 34B）（为当时公开模型中最高之一）[^s1]&#xA;- HumanEval：67.8% pass@1（Code Llama 70B-Instruct）（略高于 GPT-4 的 67.0%）[^s1]&#xA;- MBPP：65.6% pass@1（Code Llama 70B-Python）（为该系列最高 MBPP 分数）[^s1]&#xA;&#xA;## 主要特点&#xA;- 版本线为 7B/13B/34B（2023-08-24）及 70B（2024-01-29），每尺寸分基础版、Code Llama - Python 与 Code Llama - Instruct 三种变体[^s1]&#xA;&#xA;## 定位与后续&#xA;Llama 2 的代码特化衍生系列，定位为开源代码生成与补全模型，后继为 Llama 3 及后续世代内置的更强代码能力，无独立的 Code Llama 3 续作。 其基础模型为[[work_llama_2|Llama 2]]。[^s1]</body>
    <url>/works/code-llama.html</url>
    <lang>ja</lang>
    <sourceLang>zh</sourceLang>
    <fallback>true</fallback>
    <availableLangs>
      <lang>zh</lang>
    </availableLangs>
    <occupations></occupations>
    <workKind>ai_model</workKind>
    <creators></creators>
    <relatedTerms></relatedTerms>
  </entity>
  <entities></entities>
  <tags></tags>
  <categories></categories>
  <relations></relations>
  <mentions></mentions>
  <toc></toc>
  <askCitations></askCitations>
  <history></history>
  <versions></versions>
  <relationGroups></relationGroups>
  <lang>ja</lang>
  <availableLangs>
    <lang>zh</lang>
  </availableLangs>
  <fallback>true</fallback>
  <infoFields>
    <field>
      <key>work_kind</key>
      <label>Work kind</label>
      <value>AIモデル</value>
    </field>
  </infoFields>
  <pagination>
    <page>1</page>
    <pageSize>50</pageSize>
    <total>0</total>
    <pageCount>0</pageCount>
  </pagination>
  <relationCounts></relationCounts>
  <rankings></rankings>
  <rankingBadges></rankingBadges>
</page>