forked from crowdin/crowdin-api-client-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFineTuningJob.java
More file actions
56 lines (50 loc) · 1.41 KB
/
FineTuningJob.java
File metadata and controls
56 lines (50 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.crowdin.client.ai.model;
import java.util.Date;
import java.util.List;
import lombok.Data;
@Data
public class FineTuningJob {
private String identifier;
private String status;
private Long progress;
private JobAttribute attributes;
private Date createdAt;
private Date updatedAt;
private Date startedAt;
private Date finishedAt;
@Data
public static class JobAttribute {
private Boolean dryRun;
private Long aiPromptId;
private Hyperparameters hyperparameters;
private Options trainingOptions;
private Options validationOptions;
private String baseModel;
private String fineTunedModel;
private Long trainedTokensCount;
private String trainingDatasetUrl;
private String validationDatasetUrl;
private Metadata metadata;
}
@Data
public static class Hyperparameters {
private Long batchSize;
private Long learningRateMultiplier;
private Long nEpochs;
}
@Data
public static class Options {
private List<Long> projectIds;
private List<Long> tmIds;
private Date dateFrom;
private Date dateTo;
private Long maxFileSize;
private Long minExamplesCount;
private Long maxExamplesCount;
}
@Data
public static class Metadata {
private Double cost;
private String costCurrency;
}
}