Find models
find_modelsScan a directory for PyTorch nn.Module .py files and saved graphs, reporting which parse directly and which need trace_model. Run it first in a new repo.
Instructions
Find nn.Module .py files and saved graphs in a dir; says which parse and which need trace_model. Use first in a new repo.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Default: model's directory, else cwd. | |
| max_files | No | Cap on files opened (default 400). | |
| 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). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | No |