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) -> Any

Parameters

model_version_idstrRequired
layerintRequired
idxintRequired
polestrRequired

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, pos or neg.

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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.