{
  "schema": 1,
  "license": "CC BY 4.0",
  "creator": "本项目 large-language-model-editor",
  "numerical_policy": {
    "logarithm": "natural",
    "loss_unit": "nat",
    "absolute_tolerance": 1e-12,
    "relative_tolerance": 0.0,
    "conditions": [
      "Vocabulary order is fixed as [花, 雨, 猫, 。].",
      "Every weight must be finite and strictly positive; temperature T must be finite and T > 0.",
      "Targets must occur in the fixed vocabulary; sequence CE is arithmetic mean token NLL.",
      "Top-k requires integer 1 <= k <= vocabulary size.",
      "Top-p requires 0 < p <= 1 and selects the smallest descending-probability prefix whose cumulative mass is at least p.",
      "Equal probabilities are ordered by fixed vocabulary order; truncate first, then renormalize retained mass to one.",
      "The published JSON fixture is exact at every field; 1e-12 applies only to independent cross-runtime recomputation diagnostics for derived reported values, never to fixture identity, control fields, or top-p prefix decisions."
    ]
  },
  "vocabulary": [
    "花",
    "雨",
    "猫",
    "。"
  ],
  "next_token_positions": [
    {
      "position": 1,
      "weights": [
        8,
        4,
        2,
        1
      ],
      "target": "花",
      "weight_sum": 15,
      "probabilities": [
        0.5333333333333332,
        0.2666666666666667,
        0.13333333333333336,
        0.06666666666666668
      ],
      "target_probability": 0.5333333333333332,
      "target_nll_nats": 0.6286086594223743
    },
    {
      "position": 2,
      "weights": [
        1,
        2,
        1,
        6
      ],
      "target": "。",
      "weight_sum": 10,
      "probabilities": [
        0.1,
        0.2,
        0.1,
        0.6
      ],
      "target_probability": 0.6,
      "target_nll_nats": 0.5108256237659907
    }
  ],
  "sequence_metrics": {
    "targets": [
      "花",
      "。"
    ],
    "token_nll_nats": [
      0.6286086594223743,
      0.5108256237659907
    ],
    "total_nll_nats": 1.139434283188365,
    "cross_entropy_mean_nats": 0.5697171415941825,
    "perplexity": 1.767766952966369
  },
  "decoding": {
    "temperature": 1.0,
    "top_k_k": 2,
    "top_p_p": 0.75,
    "operation_order": [
      "temperature_scale",
      "normalize",
      "rank",
      "truncate",
      "renormalize"
    ],
    "tie_break": "fixed_vocabulary_order",
    "cases": [
      {
        "position": 1,
        "source_probabilities_in_vocabulary_order": [
          0.5333333333333332,
          0.2666666666666667,
          0.13333333333333336,
          0.06666666666666668
        ],
        "top_k": {
          "k": 2,
          "selected_tokens_in_rank_order": [
            "花",
            "雨"
          ],
          "ranked_prefix": [
            {
              "token": "花",
              "original_probability": 0.5333333333333332,
              "cumulative_probability": 0.5333333333333332
            },
            {
              "token": "雨",
              "original_probability": 0.2666666666666667,
              "cumulative_probability": 0.7999999999999999
            }
          ],
          "retained_mass_before_renormalization": 0.7999999999999999,
          "renormalized_probabilities_in_vocabulary_order": [
            0.6666666666666665,
            0.3333333333333334,
            0.0,
            0.0
          ]
        },
        "top_p": {
          "p": 0.75,
          "selected_tokens_in_rank_order": [
            "花",
            "雨"
          ],
          "ranked_prefix": [
            {
              "token": "花",
              "original_probability": 0.5333333333333332,
              "cumulative_probability": 0.5333333333333332
            },
            {
              "token": "雨",
              "original_probability": 0.2666666666666667,
              "cumulative_probability": 0.7999999999999999
            }
          ],
          "retained_mass_before_renormalization": 0.7999999999999999,
          "renormalized_probabilities_in_vocabulary_order": [
            0.6666666666666665,
            0.3333333333333334,
            0.0,
            0.0
          ]
        }
      },
      {
        "position": 2,
        "source_probabilities_in_vocabulary_order": [
          0.1,
          0.2,
          0.1,
          0.6
        ],
        "top_k": {
          "k": 2,
          "selected_tokens_in_rank_order": [
            "。",
            "雨"
          ],
          "ranked_prefix": [
            {
              "token": "。",
              "original_probability": 0.6,
              "cumulative_probability": 0.6
            },
            {
              "token": "雨",
              "original_probability": 0.2,
              "cumulative_probability": 0.8
            }
          ],
          "retained_mass_before_renormalization": 0.8,
          "renormalized_probabilities_in_vocabulary_order": [
            0.0,
            0.25,
            0.0,
            0.7499999999999999
          ]
        },
        "top_p": {
          "p": 0.75,
          "selected_tokens_in_rank_order": [
            "。",
            "雨"
          ],
          "ranked_prefix": [
            {
              "token": "。",
              "original_probability": 0.6,
              "cumulative_probability": 0.6
            },
            {
              "token": "雨",
              "original_probability": 0.2,
              "cumulative_probability": 0.8
            }
          ],
          "retained_mass_before_renormalization": 0.8,
          "renormalized_probabilities_in_vocabulary_order": [
            0.0,
            0.25,
            0.0,
            0.7499999999999999
          ]
        }
      }
    ]
  }
}
