Skip to content
View as Markdown

tinker.types.Datum

Generated from tinker 0.30.4 at commit 1e5777e. Source links point at that snapshot.

class tinker.types.Datum()

Fields:

with_provenance(model_input, loss_fn_inputs)

Return a copy carrying provenance for both span-annotated fields.

Each keyword names the Datum field whose positions its runs tile — model_input spans tile the input tokens, loss_fn_inputs spans tile loss_fn_inputs["target_tokens"]. Tiling is validated here, so a miscounted partition fails at the call site rather than as a request error.

Parameters:

Returns: Self

Referenced by