Create Training Job
Create a new training job with specified model architecture, dataset, and training configuration.Required Parameters
name: Human-readable name for the training job (1-100 characters)modelType: Type of model to train (llm,vision,multimodal,custom)datasetId: ID of the dataset to use for trainingconfig: Training configuration object
Optional Parameters
description: Description of the training jobtags: Array of tags for organizationgpuType: Preferred GPU type (a100,h100,v100,rtx4090)maxWorkers: Maximum number of workers (1-32, default: 1)priority: Job priority (high,normal,low, default:normal)
Example Usage
Fine-tune a Language Model
Train a Custom Vision Model
Response
Returns the created training job object:List Training Jobs
Retrieve a list of training jobs for your account.Query Parameters
status: Filter by job status (pending,running,completed,failed,cancelled)modelType: Filter by model type (llm,vision,multimodal,custom)limit: Number of jobs to return (1-100, default: 50)offset: Number of jobs to skip for paginationsort: Sort order (created_at,updated_at,name)order: Sort direction (asc,desc, default:desc)
Response
Get Training Job Details
Retrieve detailed information about a specific training job.Response
Stop Training Job
Stop a running training job and save the current checkpoint.Resume Training Job
Resume a stopped training job from the latest checkpoint.SDK Examples
Python SDK
JavaScript SDK
Error Handling
Common Errors
Best Practices
Resource Optimization
- Choose appropriate GPU types based on model size and memory requirements
- Use gradient accumulation to effectively increase batch size on limited memory
- Enable mixed precision training for faster convergence and memory efficiency
- Monitor resource utilization and adjust worker count accordingly
Cost Management
- Use spot instances for non-critical training jobs to reduce costs
- Implement early stopping to prevent unnecessary training iterations
- Set cost alerts to monitor training expenses
- Consider using smaller models or LoRA fine-tuning for cost efficiency
Training Stability
- Start with conservative learning rates and gradually increase
- Use gradient clipping to prevent exploding gradients
- Implement proper validation splits to monitor overfitting
- Save checkpoints frequently to recover from interruptions
Training jobs are billed per second of GPU usage. Jobs in
pending status are not billed until they transition to running.
