identity

Classes

Identity

Stable short hash plus the canonical payload that produced it.

Functions

canonicalize

Convert arbitrary simple objects to a deterministic JSON-compatible shape.

canonical_json

stable_hash

model_identity

config_identity

block_config_identity

candidate_identity

stage_identity

score_identity

mip_identity

mip_execution_identity

Identify the complete concrete MIP expansion and its materialization mode.

vllm_settings_identity

solution_identity

cache_key

class Identity

Bases: object

Stable short hash plus the canonical payload that produced it.

__init__(kind, value, payload)
Parameters:
  • kind (str)

  • value (str)

  • payload (Any)

Return type:

None

kind: str
payload: Any
to_dict()
Return type:

dict[str, Any]

value: str
block_config_identity(block_config)
Parameters:

block_config (Any)

Return type:

Identity

cache_key(stage, inputs, settings)
Parameters:
  • stage (str)

  • inputs (Any)

  • settings (Any)

Return type:

Identity

candidate_identity(layer_idx, block_config, source)
Parameters:
  • layer_idx (int)

  • block_config (Any)

  • source (Any)

Return type:

Identity

canonical_json(obj)
Parameters:

obj (Any)

Return type:

str

canonicalize(obj)

Convert arbitrary simple objects to a deterministic JSON-compatible shape.

Parameters:

obj (Any)

Return type:

Any

config_identity(config)
Parameters:

config (Any)

Return type:

Identity

mip_execution_identity(mip_config, *, widths, max_depth, depth_trajectory, solve_only, input_artifact_identity)

Identify the complete concrete MIP expansion and its materialization mode.

Parameters:
  • mip_config (Any)

  • widths (Any)

  • max_depth (int)

  • depth_trajectory (Any)

  • solve_only (bool)

  • input_artifact_identity (str)

Return type:

str

mip_identity(library, constraints, objective, solver_settings)
Parameters:
  • library (Any)

  • constraints (Any)

  • objective (Any)

  • solver_settings (Any)

Return type:

Identity

model_identity(config, tokenizer=None, base_checkpoint_manifest=None)
Parameters:
  • config (Any)

  • tokenizer (Any)

  • base_checkpoint_manifest (Any)

Return type:

Identity

score_identity(candidate, data_identity, scorer_settings)
Parameters:
  • candidate (Any)

  • data_identity (Any)

  • scorer_settings (Any)

Return type:

Identity

solution_identity(layer_to_candidate, constraints, objective)
Parameters:
  • layer_to_candidate (Any)

  • constraints (Any)

  • objective (Any)

Return type:

Identity

stable_hash(obj, *, prefix='id', length=16)
Parameters:
  • obj (Any)

  • prefix (str)

  • length (int)

Return type:

str

stage_identity(stage, inputs, settings, code_version=None)
Parameters:
  • stage (str)

  • inputs (Any)

  • settings (Any)

  • code_version (Any)

Return type:

Identity

vllm_settings_identity(settings)
Parameters:

settings (Any)

Return type:

Identity