import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const fineTuningJob = await client.ai.fineTuning.jobs.create({
model: 'model',
training_file: 'training_file',
});
console.log(fineTuningJob.id);{
"id": "<string>",
"created_at": 123,
"finished_at": 123,
"hyperparameters": {
"n_epochs": 3
},
"model": "<string>",
"organization_id": "<string>",
"status": "queued",
"trained_tokens": 123,
"training_file": "<string>"
}Create a new fine tuning job.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const fineTuningJob = await client.ai.fineTuning.jobs.create({
model: 'model',
training_file: 'training_file',
});
console.log(fineTuningJob.id);{
"id": "<string>",
"created_at": 123,
"finished_at": 123,
"hyperparameters": {
"n_epochs": 3
},
"model": "<string>",
"organization_id": "<string>",
"status": "queued",
"trained_tokens": 123,
"training_file": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The base model that is being fine-tuned.
The storage bucket or object used for training.
Optional suffix to append to the fine tuned model's name.
The hyperparameters used for the fine-tuning job.
Show child attributes
The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset. 'auto' decides the optimal number of epochs based on the size of the dataset. If setting the number manually, we support any number between 1 and 50 epochs.
1 <= x <= 10Successful Response
The fine_tuning.job object represents a fine-tuning job that has been created through the API.
The name of the fine-tuned model that is being created.
The Unix timestamp (in seconds) for when the fine-tuning job was created.
The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.
The base model that is being fine-tuned.
The organization that owns the fine-tuning job.
The current status of the fine-tuning job.
queued, running, succeeded, failed, cancelled The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.
The storage bucket or object used for training.
Was this page helpful?