# The metadata of the Llama and GPT-4 era
#
# YAML is the first-class encoding for facts documents (spec/profile.md), so the
# spec's own historical record is written in it: comments carry the reasoning,
# values carry the facts. `#` after a value is the source; a bare comment above a
# key explains a judgement.
#
# What this records: the two generations that set the vocabulary the profile
# replaces. Both kept the useful facts outside the API.

era: 2023-2024
status: historical record, not a proposal

generations:

  # OpenAI, GPT-4 generation. GET /v1/models was the whole machine surface.
  gpt4:
    listing:
      endpoint: GET /v1/models
      fields: [id, object, created, owned_by]   # nothing about limits, prices or modalities
      revision_mechanism: dated snapshot id     # gpt-4-0613 - a string convention, not a field
    published_elsewhere:
      limit.context:
        gpt-4: 8192
        gpt-4-32k: 32768
        gpt-4-turbo: 128000
        gpt-4o: 128000
        source: docs pages, per snapshot
      pricing.tokens:
        unit: per 1000 tokens                 # the pricing page
        source: pricing page
      identity.knowledge_cutoff: docs
      modalities: docs
      lifecycle.deprecation: deprecations page
      lifecycle.sunset: deprecations page

  # Meta, Llama generation. The Hugging Face model card was the document.
  llama:
    listing: none                            # no models endpoint at all; weights and a card
    published_elsewhere:
      identity.parameters: {llama-2: "7B-70B", llama-3: "8B-70B", llama-3.1: "8B-405B"}
      limit.trained_context:
        llama-2: 4096
        llama-3: 8192
        llama-3.1: 131072
        source: model card
      license: model card
      tokenizer: model card
      benchmarks: model card model-index      # structured evaluations, HF widget
    served_context:                          # never on the card
      - vLLM max_model_len
      - Ollama num_ctx

# Where each fact lives in this profile.
mapping:
  identity.parameters: who.parameters
  identity.snapshots: who.snapshots
  identity.aliases: who.aliases
  limit.trained_context: who.trained_context
  limit.context: the host's served context, which overrides the card
  modalities: modalities
  identity.knowledge_cutoff: identity.knowledge_cutoff
  pricing.tokens: pricing.tokens
  lifecycle.deprecation: lifecycle.deprecation
  lifecycle.sunset: lifecycle.sunset
  benchmarks: the benchmarks document

conclusion: |
  The era's metadata was accurate prose in many places and machine-readable in few.
  A client comparing two routes read the card, the docs and the price page and
  encoded the result itself - the private rulebook this profile exists to replace.
