lightning.predict
Run inference by providing a model configuration with target and kwargs. Optionally specify trainer settings for prediction.
Instructions
Run prediction/inference with a PyTorch Lightning model.
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": {
"model": "<model>"
},
"name": "lightning.predict"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model configuration (_target_ + kwargs). | |
| trainer | No | Trainer configuration. |