identity
Classes
Stable short hash plus the canonical payload that produced it. |
Functions
Convert arbitrary simple objects to a deterministic JSON-compatible shape. |
|
Identify the complete concrete MIP expansion and its materialization mode. |
|
- class Identity
Bases:
objectStable 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
- cache_key(stage, inputs, settings)
- Parameters:
stage (str)
inputs (Any)
settings (Any)
- Return type:
- candidate_identity(layer_idx, block_config, source)
- Parameters:
layer_idx (int)
block_config (Any)
source (Any)
- Return type:
- 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
- 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:
- model_identity(config, tokenizer=None, base_checkpoint_manifest=None)
- Parameters:
config (Any)
tokenizer (Any)
base_checkpoint_manifest (Any)
- Return type:
- score_identity(candidate, data_identity, scorer_settings)
- Parameters:
candidate (Any)
data_identity (Any)
scorer_settings (Any)
- Return type:
- solution_identity(layer_to_candidate, constraints, objective)
- Parameters:
layer_to_candidate (Any)
constraints (Any)
objective (Any)
- Return type:
- 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: