docs
0
# Fine-Tuning
1
2
Model fine-tuning capabilities with job management, checkpoint handling, and training monitoring.
3
4
## Capabilities
5
6
```python { .api }
7
class FineTuning:
8
jobs: Jobs
9
checkpoints: Checkpoints
10
11
class Jobs:
12
def create(self, **kwargs): ...
13
def list(self, **kwargs): ...
14
def retrieve(self, **kwargs): ...
15
def cancel(self, **kwargs): ...
16
17
class Checkpoints:
18
def list(self, **kwargs): ...
19
def retrieve(self, **kwargs): ...
20
```
21
22
## Usage Examples
23
24
```python
25
# Create fine-tuning job
26
job = portkey.fine_tuning.jobs.create(
27
training_file="file-123",
28
model="gpt-3.5-turbo"
29
)
30
31
# Monitor job
32
job_status = portkey.fine_tuning.jobs.retrieve(job.id)
33
```