Ctrl K
ComunidadGuías…

scripts/exec_literals_baseline.json

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
{
  "_comment": "Call sites that predate the gate. New ones fail; see scripts/lint_exec_literals.py.",
  "targets": [
    "unsloth",
    "unsloth_cli",
    "studio",
    "scripts",
    "cli.py",
    "unsloth-cli.py"
  ],
  "entries": [
    {
      "file": "studio/backend/core/inference/diffusion_autoopt/patches.py",
      "sink": "compile",
      "digest": "5ae0e330a5c3c7ad",
      "count": 1,
      "reason": "splice_function: compiles an AST parsed from the library function's own inspect.getsource, edited only by exact-once literal needle replacements, checked to be one function whose globals all resolve"
    },
    {
      "file": "studio/backend/core/inference/diffusion_autoopt/patches.py",
      "sink": "exec",
      "digest": "1c33653a1d0bca74",
      "count": 1,
      "reason": "splice_function: executes the code object compiled on the line above into a copy of the original function's globals; never sees user or model input"
    },
    {
      "file": "studio/backend/core/inference/diffusion_capture_safe.py",
      "sink": "compile",
      "digest": "1f39880672dc563b",
      "count": 1,
      "reason": "Rebuilds the installed diffusers HunyuanImage / HunyuanVideo 1.5 forward from its own inspect.getsource with fixed blocks swapped (compiled with dont_inherit so this module's future import does not leak in); the source is the imported library's code, not user or network input."
    },
    {
      "file": "studio/backend/core/inference/diffusion_capture_safe.py",
      "sink": "exec",
      "digest": "4b6b3a49b588c0a6",
      "count": 1,
      "reason": "Rebuilds the installed diffusers HunyuanImage forward from its own inspect.getsource with one fixed block swapped; the source is the imported library's code, not user or network input."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "eval",
      "digest": "6f65bd10ad34f535",
      "count": 1,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "exec",
      "digest": "02c93361a59d02a7",
      "count": 1,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 2,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "exec",
      "digest": "48b77ebd764afeec",
      "count": 1,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "exec",
      "digest": "73395828db366a08",
      "count": 1,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "exec",
      "digest": "7a5e305efb369e7f",
      "count": 1,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "exec",
      "digest": "97ca7ce74cdac597",
      "count": 1,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "exec",
      "digest": "a1ca0b42925e7071",
      "count": 1,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "exec",
      "digest": "ac8b8345e7bf04cf",
      "count": 1,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "exec",
      "digest": "ca0d5d3cc2cd8f6c",
      "count": 1,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "exec",
      "digest": "d452fc2117e42b99",
      "count": 1,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/_utils.py",
      "sink": "exec",
      "digest": "ffa18102ffbe15dd",
      "count": 2,
      "reason": "Re-imports a transformers config module by its dotted path, derived from the installed package layout, and runs a config source this file generated."
    },
    {
      "file": "unsloth/models/cohere.py",
      "sink": "eval",
      "digest": "1892d8728c05a80c",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/cohere.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/falcon_h1.py",
      "sink": "eval",
      "digest": "1892d8728c05a80c",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/falcon_h1.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/float8_training.py",
      "sink": "compile",
      "digest": "13108d7353b8c426",
      "count": 1,
      "reason": "Compiles a fixed forwarding-contract template using function and argument identifiers read from installed library code objects. The resulting code object is only fingerprinted to recognize a generated proxy; this helper never executes it or accepts model, prompt, or user strings."
    },
    {
      "file": "unsloth/models/gemma.py",
      "sink": "eval",
      "digest": "1892d8728c05a80c",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/gemma.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/gemma2.py",
      "sink": "eval",
      "digest": "1892d8728c05a80c",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/gemma2.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/granite.py",
      "sink": "eval",
      "digest": "1892d8728c05a80c",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/granite.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/llama.py",
      "sink": "eval",
      "digest": "1892d8728c05a80c",
      "count": 1,
      "reason": "Installs the patched inner training loop and attention this file generates from a fixed template."
    },
    {
      "file": "unsloth/models/llama.py",
      "sink": "eval",
      "digest": "8c54ad1f5eaab0cd",
      "count": 1,
      "reason": "Installs the patched inner training loop and attention this file generates from a fixed template."
    },
    {
      "file": "unsloth/models/llama.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 1,
      "reason": "Installs the patched inner training loop and attention this file generates from a fixed template."
    },
    {
      "file": "unsloth/models/llama.py",
      "sink": "exec",
      "digest": "bf2e8c51f0f6c2ed",
      "count": 1,
      "reason": "Installs the patched inner training loop and attention this file generates from a fixed template."
    },
    {
      "file": "unsloth/models/llama.py",
      "sink": "exec",
      "digest": "ffa18102ffbe15dd",
      "count": 1,
      "reason": "Installs the patched inner training loop and attention this file generates from a fixed template."
    },
    {
      "file": "unsloth/models/mistral.py",
      "sink": "eval",
      "digest": "1892d8728c05a80c",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/mistral.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/qwen2.py",
      "sink": "eval",
      "digest": "1892d8728c05a80c",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/qwen2.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/qwen3.py",
      "sink": "eval",
      "digest": "1892d8728c05a80c",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/qwen3.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/qwen3_moe.py",
      "sink": "eval",
      "digest": "1892d8728c05a80c",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/qwen3_moe.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 1,
      "reason": "Installs a patched attention `__init__` generated by this file from a fixed template, and binds it by the name that template defines."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "compile",
      "digest": "47706ae142cdfec0",
      "count": 1,
      "reason": "Re-executes TRL's own prepare_peft_model with one branch condition corrected, matching the clause TRL itself added in 0.24.0. The source is read with inspect.getsource from the installed trl package, never from user input or a network fetch, and it is only rewritten when the exact expected branch text is present exactly once; otherwise the patch bails and leaves TRL alone. See tests/test_kbit_prep_guard.py."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "compile",
      "digest": "4be3a8fe5e437a0c",
      "count": 1,
      "reason": "Compiles TRL's own AsyncGRPOTrainer.compute_loss, read with inspect.getsource from the installed trl package, with the PPO loss line swapped for the masked one only when it is present exactly once (two metric lines likewise); built only when a caller passes importance_sampling_mask=True. Never user input or a network fetch. See tests/test_async_grpo_patch.py."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "eval",
      "digest": "040bea2f53f4a4a8",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "eval",
      "digest": "12f9cfb57398f055",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "eval",
      "digest": "1b541d091f185088",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "eval",
      "digest": "485886920a5f24be",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "eval",
      "digest": "751bc0188ade4910",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "eval",
      "digest": "8d596db7f4780ece",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "eval",
      "digest": "a107a7d59348af6b",
      "count": 2,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "eval",
      "digest": "ffde228dbcc08d6e",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "exec",
      "digest": "0c82f779093d048a",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "exec",
      "digest": "71b3c1011fa9a32a",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "exec",
      "digest": "792cfde532dac568",
      "count": 1,
      "reason": "Re-executes TRL's own prepare_peft_model with one branch condition corrected, matching the clause TRL itself added in 0.24.0. The source is read with inspect.getsource from the installed trl package, never from user input or a network fetch, and it is only rewritten when the exact expected branch text is present exactly once; otherwise the patch bails and leaves TRL alone. See tests/test_kbit_prep_guard.py."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "exec",
      "digest": "95a7a7b591ba7c69",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "exec",
      "digest": "9e3882f4d4a000a5",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "exec",
      "digest": "cf3b35303f787f60",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "exec",
      "digest": "dc0878fa52de4e4f",
      "count": 1,
      "reason": "Executes the code object compiled on the line above against TRL's own module globals into a fresh namespace, defining only the rewritten compute_loss. The source is the installed trl package's code, not user or network input."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "exec",
      "digest": "e0d306bb2ec1ef96",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl.py",
      "sink": "exec",
      "digest": "e1916de418366d67",
      "count": 1,
      "reason": "Re-imports TRL trainer and config classes by name, and installs the RL trainer source this file generates. The names come from this file's own tables."
    },
    {
      "file": "unsloth/models/rl_replacements.py",
      "sink": "compile",
      "digest": "53f704f6a01044a0",
      "count": 1,
      "reason": "Runs an OpenEnv helper this file generated, into that module's own namespace."
    },
    {
      "file": "unsloth/models/rl_replacements.py",
      "sink": "compile",
      "digest": "e687239bf1764e7b",
      "count": 1,
      "reason": "Runs an OpenEnv helper this file generated, into that module's own namespace."
    },
    {
      "file": "unsloth/models/rl_replacements.py",
      "sink": "exec",
      "digest": "4c016c10e4e620df",
      "count": 1,
      "reason": "Runs an OpenEnv helper this file generated, into that module's own namespace."
    },
    {
      "file": "unsloth/models/rl_replacements.py",
      "sink": "exec",
      "digest": "bf6c7a01e464bb2e",
      "count": 1,
      "reason": "Runs an OpenEnv helper this file generated, into that module's own namespace."
    },
    {
      "file": "unsloth/models/vision.py",
      "sink": "exec",
      "digest": "8859505e5f6b735d",
      "count": 1,
      "reason": "The two code fields of UNSLOTH_FORCE_CUSTOM_DTYPE. Since #9777 they run only when this process is the one that set the variable; an inherited value is neutralised."
    },
    {
      "file": "unsloth/models/vision.py",
      "sink": "exec",
      "digest": "bc99b6581c19626f",
      "count": 1,
      "reason": "The two code fields of UNSLOTH_FORCE_CUSTOM_DTYPE. Since #9777 they run only when this process is the one that set the variable; an inherited value is neutralised."
    },
    {
      "file": "unsloth/save.py",
      "sink": "eval",
      "digest": "50e054a40711a42c",
      "count": 1,
      "reason": "Installs a generated push_to_hub, and reads a projection off a layer by attribute name from this file's own list."
    },
    {
      "file": "unsloth/save.py",
      "sink": "eval",
      "digest": "511bf8655fb63a91",
      "count": 1,
      "reason": "Installs a generated push_to_hub, and reads a projection off a layer by attribute name from this file's own list."
    },
    {
      "file": "unsloth/save.py",
      "sink": "exec",
      "digest": "a2cfaff818bc9d0a",
      "count": 1,
      "reason": "Installs a generated push_to_hub, and reads a projection off a layer by attribute name from this file's own list."
    },
    {
      "file": "unsloth/tokenizer_utils.py",
      "sink": "eval",
      "digest": "5dfbb61217ed565e",
      "count": 1,
      "reason": "Installs tokenizer helpers this file generates from a fixed template."
    },
    {
      "file": "unsloth/tokenizer_utils.py",
      "sink": "eval",
      "digest": "876b82a666155684",
      "count": 1,
      "reason": "Installs tokenizer helpers this file generates from a fixed template."
    },
    {
      "file": "unsloth/tokenizer_utils.py",
      "sink": "eval",
      "digest": "bb2efe71038ee862",
      "count": 1,
      "reason": "Installs tokenizer helpers this file generates from a fixed template."
    },
    {
      "file": "unsloth/tokenizer_utils.py",
      "sink": "exec",
      "digest": "0531bad2da0f6ae6",
      "count": 1,
      "reason": "Installs tokenizer helpers this file generates from a fixed template."
    },
    {
      "file": "unsloth/tokenizer_utils.py",
      "sink": "exec",
      "digest": "16b70ffbbdbad15f",
      "count": 1,
      "reason": "Installs tokenizer helpers this file generates from a fixed template."
    },
    {
      "file": "unsloth/tokenizer_utils.py",
      "sink": "exec",
      "digest": "334b23e645ea4deb",
      "count": 1,
      "reason": "Installs tokenizer helpers this file generates from a fixed template."
    },
    {
      "file": "unsloth/tokenizer_utils.py",
      "sink": "exec",
      "digest": "5af2e964be736252",
      "count": 1,
      "reason": "Installs tokenizer helpers this file generates from a fixed template."
    },
    {
      "file": "unsloth/tokenizer_utils.py",
      "sink": "exec",
      "digest": "82ee463f140c695e",
      "count": 1,
      "reason": "Installs tokenizer helpers this file generates from a fixed template."
    },
    {
      "file": "unsloth/tokenizer_utils.py",
      "sink": "exec",
      "digest": "f9d16814a82a1e43",
      "count": 1,
      "reason": "Installs tokenizer helpers this file generates from a fixed template."
    },
    {
      "file": "unsloth/trainer.py",
      "sink": "exec",
      "digest": "affd1e4daaf31ae7",
      "count": 1,
      "reason": "Installs the patched trainer method this file generates from a fixed template."
    }
  ]
}