Size a training job
size_training_jobCall BEFORE any training launch: peak memory at your batch, fits/borderline/no per card, smallest safe card, max batch, two-card split, cost, data fit. Not a convergence check. Offline.
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": {
"batch_size": "<batch_size>"
},
"name": "size_training_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gpu | No | "A100-40", "8xH100". | |
| data | No | seq_len, tokenizer_size, num_classes, image_size, channels | |
| hf_id | No | org/name. Needs --hf. | |
| epochs | No | Default 10. | |
| samples | No | Per epoch (default 50,000). | |
| seq_len | No | Default 2048. | |
| attention | No | Default sdpa. | |
| batch_size | Yes | Global batch. | |
| 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 |
|---|---|---|---|
| fits | Yes | ||
| verdict | Yes |