Skip to content
Open
Show file tree
Hide file tree
Changes from 53 commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
10346a6
Add fine tuning
Jul 20, 2025
46065c7
Revert "Add fine tuning"
Jul 20, 2025
dbaa82d
get api
Jul 20, 2025
9bd2642
add get example
Jul 20, 2025
0fdd2ab
add compile result
Jul 20, 2025
9056872
add finetuning method, base rft grader
Jul 20, 2025
3ca81cc
add graders
Jul 21, 2025
3ba4d3a
add more operations
Jul 21, 2025
f922550
remove modelProvider from create
Jul 21, 2025
421a1d6
prettier
Jul 23, 2025
d0deefb
update
Aug 1, 2025
65c663c
fix spell check
Aug 1, 2025
fc29c84
updates
Aug 1, 2025
22f30d4
Merge branch 'main' into marici_AddFineTuning
Aug 1, 2025
239fc0d
fixes
Aug 1, 2025
137682a
updates
Aug 2, 2025
2230b38
updates
Aug 3, 2025
3584180
updates
Aug 3, 2025
5a70dc4
rename
Aug 3, 2025
1c4b262
add list
Aug 4, 2025
19fa5fd
fix version for list
Aug 4, 2025
3fd7ab6
Merge branch 'main' into marici_AddFineTuning
Aug 4, 2025
b3c54e5
fixes
Aug 4, 2025
28910ad
fix get routing
Aug 4, 2025
3c925ba
add events
Aug 5, 2025
91bf1f9
events checkpoints
Aug 5, 2025
f36325c
add delete
Aug 5, 2025
fb897be
add samples
Aug 5, 2025
43e0f1b
Create FineTuningJobs_Create.json
Aug 5, 2025
6316e77
add Mistral
Aug 5, 2025
e6259d8
missed
Aug 5, 2025
b2ee81d
fixes
Aug 6, 2025
7b8ff34
samples fixes
Aug 6, 2025
dcf9eef
samples update
Aug 6, 2025
a160483
updates
Aug 6, 2025
2651adb
Merge branch 'main' into marici_AddFineTuning
Aug 6, 2025
f819b3b
update
Aug 6, 2025
e08c340
fix newline
Aug 6, 2025
833a1c8
update samples
Aug 7, 2025
03e6f91
align with OAI type names
Aug 8, 2025
397fb32
fix
Aug 8, 2025
cb941a9
Merge branch 'main' into marici_AddFineTuning
Aug 8, 2025
6581126
update graders
Aug 8, 2025
754bb89
fix
Aug 8, 2025
a896de6
Revert "Merge branch 'main' into marici_AddFineTuning"
Aug 8, 2025
b859520
fix
Aug 8, 2025
23a0668
Reapply "Merge branch 'main' into marici_AddFineTuning"
Aug 8, 2025
729bc8c
workaround compilation error
Aug 8, 2025
94016e5
fixes
Aug 9, 2025
fc938f8
fix nouns
Aug 9, 2025
5d988fd
set max len
Aug 11, 2025
e5d4938
adding @list back.
glecaros Aug 13, 2025
8bccff5
update after tsv and format
Aug 14, 2025
9975e26
Merge branch 'main' into marici_AddFineTuning
Aug 21, 2025
b8bec16
update casing
Aug 21, 2025
2943e75
Merge branch 'main' into marici_AddFineTuning
Sep 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"title": "Cancel a FineTuning job",
"operationId": "FineTuningJobs_Cancel",
"parameters": {
"api-version": "2025-05-15-preview",
"x-ms-client-request-id": "cf35b680-dc80-4815-ab83-9364acc3bce6",
"fine_tuning_job_id": "ftjob-1"
},
"responses": {
"200": {
"body": {
"object": "fine_tuning.job",
"id": "ftjob-1",
"organization_id": "Org123",
"created_at": "2025-01-01T10:00:00.00Z",
"status": "cancelling",
"training_file": "FileId-1",
"validation_file": "FileId-2",
"model": "gpt-4o-mini-2024-07-18",
"seed": 123,
"trained_tokens": 1000,
"hyperparameters": {
"batch_size": 1,
"learning_rate_multiplier": 1,
"n_epochs": 1
},
"integrations": [
{
"type": "wandb",
"wandb": {
"project": "custom-wandb-project",
"name": "ftjob-1",
"tags": [
"FTJob",
"completed"
]
}
}
],
"method": {
"type": "supervised",
"supervised": {
"hyperparameters": {
"batch_size": 1,
"learning_rate_multiplier": 1,
"n_epochs": 1
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"title": "Create FineTuning job",
"operationId": "FineTuningJobs_Create",
"parameters": {
"api-version": "2025-05-15-preview",
"x-ms-client-request-id": "cf35b680-dc80-4815-ab83-9364acc3bce6",
"fineTuningJob": {
"model": "gpt-4o-mini-2024-07-18",
"training_file": "FileId-1",
"integrations": [
{
"type": "wandb",
"wandb": {
"project": "custom-wandb-project",
"name": "ftjob-1",
"tags": [
"FTJob",
"completed"
]
}
}
],
"method": {
"type": "supervised",
"supervised": {
"hyperparameters": {
"batch_size": 1,
"learning_rate_multiplier": 1,
"n_epochs": 1
}
}
},
"seed": 123,
"validation_file": "FileId-2"
}
},
"responses": {
"200": {
"body": {
"object": "fine_tuning.job",
"id": "ftjob-1",
"organization_id": "Org123",
"created_at": "2025-01-01T10:00:00.00Z",
"status": "running",
"training_file": "FileId-1",
"validation_file": "FileId-2",
"model": "gpt-4o-mini-2024-07-18",
"seed": 123,
"trained_tokens": 1000,
"hyperparameters": {
"batch_size": 1,
"learning_rate_multiplier": 1,
"n_epochs": 1
},
"integrations": [
{
"type": "wandb",
"wandb": {
"project": "custom-wandb-project",
"name": "ftjob-1",
"tags": [
"FTJob",
"completed"
]
}
}
],
"method": {
"type": "supervised",
"supervised": {
"hyperparameters": {
"batch_size": 1,
"learning_rate_multiplier": 1,
"n_epochs": 1
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"title": "Delete FineTuning job",
"operationId": "FineTuningJobs_Delete",
"parameters": {
"api-version": "2025-05-15-preview",
"x-ms-client-request-id": "cf35b680-dc80-4815-ab83-9364acc3bce6",
"fine_tuning_job_id": "ftjob-1"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"title": "Retrieve a failed FineTuning job",
"operationId": "FineTuningJobs_Get",
"parameters": {
"api-version": "2025-05-15-preview",
"x-ms-client-request-id": "cf35b680-dc80-4815-ab83-9364acc3bce6",
"fine_tuning_job_id": "ftjob-1"
},
"responses": {
"200": {
"body": {
"object": "fine_tuning.job",
"id": "ftjob-1",
"organization_id": "Org123",
"created_at": "2025-01-01T10:00:00.00Z",
"finished_at": "2025-01-01T11:00:00.00Z",
"status": "failed",
"training_file": "FileId-1",
"validation_file": "FileId-2",
"model": "gpt-4o-mini-2024-07-18",
"seed": 123,
"hyperparameters": {
"batch_size": 1,
"learning_rate_multiplier": 1,
"n_epochs": 1
},
"integrations": [
{
"type": "wandb",
"wandb": {
"project": "custom-wandb-project",
"name": "ftjob-1",
"tags": [
"FTJob",
"failed"
]
}
}
],
"method": {
"type": "supervised",
"supervised": {
"hyperparameters": {
"batch_size": 1,
"learning_rate_multiplier": 1,
"n_epochs": 1
}
}
},
"error": {
"code": "400",
"message": "Training file should be chat or completion for supervised finetune.",
"param": "training file"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"title": "Retrieve a successful FineTuning job",
"operationId": "FineTuningJobs_Get",
"parameters": {
"api-version": "2025-05-15-preview",
"x-ms-client-request-id": "cf35b680-dc80-4815-ab83-9364acc3bce6",
"fine_tuning_job_id": "ftjob-1"
},
"responses": {
"200": {
"body": {
"object": "fine_tuning.job",
"id": "ftjob-1",
"organization_id": "Org123",
"created_at": "2025-01-01T10:00:00.00Z",
"finished_at": "2025-01-01T11:00:00.00Z",
"status": "succeeded",
"training_file": "FileId-1",
"validation_file": "FileId-2",
"model": "gpt-4o-mini-2024-07-18",
"fine_tuned_model": "gpt-4o-mini-2024-07-18.ftjob-1",
"seed": 123,
"trained_tokens": 1000,
"hyperparameters": {
"batch_size": 1,
"learning_rate_multiplier": 1,
"n_epochs": 1
},
"integrations": [
{
"type": "wandb",
"wandb": {
"project": "custom-wandb-project",
"name": "ftjob-1",
"tags": [
"FTJob",
"completed"
]
}
}
],
"method": {
"type": "supervised",
"supervised": {
"hyperparameters": {
"batch_size": 1,
"learning_rate_multiplier": 1,
"n_epochs": 1
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"title": "List the checkpoints from a FineTuning jobs",
"operationId": "FineTuningJobs_ListCheckpoints",
"parameters": {
"api-version": "2025-05-15-preview",
"x-ms-client-request-id": "cf35b680-dc80-4815-ab83-9364acc3bce6",
"fine_tuning_job_id": "ftjob-1",
"limit": "2"
},
"responses": {
"200": {
"body": {
"object": "list",
"data": [
{
"object": "fine_tuning.job.checkpoint",
"id": "ftckpt_qtZ5Gyk4BLq1SfLFWp3RtO3P",
"created_at": "2025-01-01T10:00:00.00Z",
"fine_tuned_model_checkpoint": "ft:gpt-4o-mini-2024-07-18:my-org:custom_suffix:9ABel2dg:ckpt-step-88",
"fine_tuning_job_id": "ftjob-1",
"metrics": {
"step": 88,
"train_loss": 0.478,
"train_mean_token_accuracy": 0.924,
"valid_loss": 10.112,
"valid_mean_token_accuracy": 0.145,
"full_valid_loss": 0.567,
"full_valid_mean_token_accuracy": 0.944
},
"step_number": 88
}
],
"has_more": false
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"title": "List the events from a FineTuning jobs",
"operationId": "FineTuningJobs_ListEvents",
"parameters": {
"api-version": "2025-05-15-preview",
"x-ms-client-request-id": "cf35b680-dc80-4815-ab83-9364acc3bce6",
"fine_tuning_job_id": "ftjob-1",
"limit": "2"
},
"responses": {
"200": {
"body": {
"object": "list",
"data": [
{
"object": "fine_tuning.job.event",
"created_at": "2025-01-01T10:00:00.00Z",
"id": "ftevent-1",
"level": "info",
"message": "job started"
}
],
"has_more": false
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"title": "List FineTuning jobs",
"operationId": "FineTuningJobs_List",
"parameters": {
"api-version": "2025-05-15-preview",
"x-ms-client-request-id": "cf35b680-dc80-4815-ab83-9364acc3bce6",
"limit": "2"
},
"responses": {
"200": {
"body": {
"object": "list",
"data": [
{
"object": "fine_tuning.job",
"id": "ftjob-1",
"organization_id": "Org123",
"created_at": "2025-01-01T10:00:00.00Z",
"finished_at": "2025-01-01T11:00:00.00Z",
"status": "succeeded",
"training_file": "FileId-1",
"validation_file": "FileId-2",
"model": "gpt-4o-mini-2024-07-18",
"fine_tuned_model": "gpt-4o-mini-2024-07-18.ftjob-1",
"seed": 123,
"trained_tokens": 1000,
"hyperparameters": {
"batch_size": 1,
"learning_rate_multiplier": 1,
"n_epochs": 1
},
"integrations": [
{
"type": "wandb",
"wandb": {
"project": "custom-wandb-project",
"name": "ftjob-1",
"tags": [
"FTJob",
"completed"
]
}
}
],
"method": {
"type": "supervised",
"supervised": {
"hyperparameters": {
"batch_size": 1,
"learning_rate_multiplier": 1,
"n_epochs": 1
}
}
}
}
],
"has_more": false
}
}
}
}
Loading
Loading