curl -X POST "https://api.tensorone.ai/v2/training/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Llama-2-7B Fine-tuning",
"description": "Fine-tune Llama-2-7B on custom dialogue dataset",
"framework": "huggingface",
"modelConfig": {
"modelType": "language_model",
"baseModel": "llama-2-7b-hf",
"customCode": "https://github.com/your-org/llama-finetuning"
},
"datasetConfig": {
"datasetId": "ds_abc123",
"format": "json",
"splitRatio": {"train": 0.8, "validation": 0.2}
},
"hyperparameters": {
"learningRate": 0.0001,
"batchSize": 16,
"epochs": 3,
"optimizer": "adamw"
},
"infrastructure": {
"gpuType": "a100-40gb",
"gpuCount": 2,
"memory": "64GB",
"storage": "500GB"
}
}'