Trace model
trace_modelRun the model once in Python (neurarch-trace) for a graph with real shapes; needs input dims. The way in for a real repository (static parsing reads 41%).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"input": "<input>"
},
"name": "trace_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| depth | No | Default: leaves. | |
| dtype | No | Input dtype (float32; long for hf:). | |
| input | Yes | Input dims, batch first, one per input: ["1,3,224,224"]. ":long" for token ids. | |
| target | Yes | "path/to/model.py:ClassName", "pkg.module:factory", or "hf:org/name". | |
| save_to | No | Write the graph here (--write). | |
| timeout_s | No | Seconds (default 120). | |
| model_path | No | File, zoo:<id>, hf:<org/name> | |
| model_source | No | Optional: answer about model text passed inline (a .neurarch.json document or PyTorch source). |