{
  "id": "codellama-7b-python",
  "name": "CodeLlama-7b-Python-hf",
  "identifiers": {
    "huggingface": [
      "codellama/CodeLlama-7b-Python-hf"
    ]
  },
  "developer": "Meta",
  "release_date": {
    "value": "2023-08-24",
    "source": "https://huggingface.co/api/models/codellama/CodeLlama-7b-Python-hf",
    "status": "partial",
    "note": "HF repo creation date; may predate or postdate public release."
  },
  "weights_status": "open",
  "availability": {
    "value": "available",
    "checked": "2026-09-24",
    "source": "https://huggingface.co/codellama/CodeLlama-7b-Python-hf"
  },
  "license": {
    "value": "llama2",
    "source": "https://huggingface.co/codellama/CodeLlama-7b-Python-hf/blob/d4178f5d2eead875e627ec487b23679266319b7f/README.md",
    "status": "partial",
    "note": "From HF card metadata (uploader-declared); confirm against the license text."
  },
  "architecture": {
    "family": "decoder_only",
    "note": "family read from config 'architectures': ['LlamaForCausalLM'].",
    "n_layers": {
      "value": 32,
      "source": "https://huggingface.co/codellama/CodeLlama-7b-Python-hf/raw/d4178f5d2eead875e627ec487b23679266319b7f/config.json",
      "status": "recorded"
    },
    "hidden_size": {
      "value": 4096,
      "source": "https://huggingface.co/codellama/CodeLlama-7b-Python-hf/raw/d4178f5d2eead875e627ec487b23679266319b7f/config.json",
      "status": "recorded"
    },
    "n_heads": {
      "value": 32,
      "source": "https://huggingface.co/codellama/CodeLlama-7b-Python-hf/raw/d4178f5d2eead875e627ec487b23679266319b7f/config.json",
      "status": "recorded"
    },
    "vocab_size": {
      "value": 32000,
      "source": "https://huggingface.co/codellama/CodeLlama-7b-Python-hf/raw/d4178f5d2eead875e627ec487b23679266319b7f/config.json",
      "status": "recorded"
    },
    "context_length": {
      "value": 16384,
      "source": "https://huggingface.co/codellama/CodeLlama-7b-Python-hf/raw/d4178f5d2eead875e627ec487b23679266319b7f/config.json",
      "status": "recorded"
    },
    "n_kv_heads": {
      "value": 32,
      "source": "https://huggingface.co/codellama/CodeLlama-7b-Python-hf/raw/d4178f5d2eead875e627ec487b23679266319b7f/config.json",
      "status": "recorded"
    },
    "positional_encoding": {
      "value": "rotary (RoPE)",
      "source": "https://arxiv.org/abs/2308.12950",
      "status": "recorded",
      "note": "Architecture unchanged from code-llama-7b (further pretraining, not a structural change)."
    }
  },
  "training_data": {
    "value": "Code Llama's 500B-token training run, plus a further 100B tokens of a Python-heavy dataset.",
    "source": "https://arxiv.org/abs/2308.12950",
    "status": "recorded"
  },
  "techniques": [],
  "primary_sources": [
    "https://huggingface.co/codellama/CodeLlama-7b-Python-hf",
    "https://huggingface.co/codellama/CodeLlama-7b-Python-hf/raw/d4178f5d2eead875e627ec487b23679266319b7f/config.json"
  ],
  "record_history": [
    {
      "date": "2026-09-24",
      "change": "ingested as candidate from HF (codellama/CodeLlama-7b-Python-hf@d4178f5d2eead875e627ec487b23679266319b7f)",
      "by": "ingest_hf.py"
    },
    {
      "date": "2026-09-24",
      "change": "preparer: developer, fine_tuned_from code-llama-7b added",
      "by": "claude (preparer, Sonnet 5)"
    },
    {
      "date": "2026-09-24",
      "change": "preparer cleanup: removed 2 stale flag(s), filled training_data",
      "by": "claude (preparer, Sonnet 5)"
    },
    {
      "date": "2026-09-24",
      "change": "preparer cleanup: positional_encoding propagated from an unchanged parent architecture",
      "by": "claude (preparer, Sonnet 5)"
    },
    {
      "date": "2026-09-24",
      "change": "reviewed and promoted from staging (1 edge(s) accepted)",
      "by": "Wilson Pruitt"
    }
  ]
}
