SDK reference · Python SDK
prov.trace.registry.neuron
prov.trace.registry.neuron in Python SDK.
Signature
prov.trace.registry.neuron(model_version_id: str, layer: int, idx: int, pole: str) -> AnyParameters
model_version_idstrRequiredlayerintRequiredidxintRequiredpolestrRequired
Request fields
idstringpathRequired- The object's ID.
neuronstringpathRequired- The neuron pole's ID,
L{layer}.{idx}.{pole}(L13.1053.pos): the model layer, the neuron's index within it, and the sign of the activation,posorneg.
Returns
Any The neuron.
HTTP operation
GET /v1/trace/registry/models/{id}/neurons/{neuron}: Retrieve a neuron
Errors
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/registry/models/qwen2.5-0.5b-instruct@7ae55760/neurons/L13.1053.pos`)).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/trace/registry/models/qwen2.5-0.5b-instruct@7ae55760/neurons/L13.1053.pos").json()