SDK reference · Python SDK

prov.trace.registry_builds.create

prov.trace.registry_builds.create in Python SDK.

Signature

prov.trace.registry_builds.create(hf_id: str, revision: str, corpus_ref: Optional[str] = …, families: Optional[list] = …, registry_size: Optional[int] = …) -> Any

Parameters

hf_idstrRequired
revisionstrRequired
corpus_refOptional[str]
familiesOptional[list]
registry_sizeOptional[int]

Request fields

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
hf_idstringRequired
The model's Hugging Face ID.
revisionstringRequired
A Hugging Face commit SHA, not a branch.
corpus_refstring
A corpus the worker ships, by name (never a URL or path).
familiesarray of strings
Canary families to select (default: all eval sets on the worker).
registry_sizeinteger
How many neurons to describe.

Returns

Any The build, now queued. Poll it for the result.

HTTP operation

POST /v1/trace/registry_builds: Create a registry build

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/registry_builds`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_ent_E7nT2vQ9bW4mK8sYd3cFjLh6gAe1pR5x", "Content-Type": "application/json" },
  body: JSON.stringify({
    "hf_id": "Qwen/Qwen2.5-0.5B-Instruct",
    "revision": "7ae55760",
    "families": [
      "prompt_injection"
    ]
  }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.