The platform for continuously improving AI agents.
/* tslint:disable */
/* eslint-disable */
/**
* Overbae API
* Backend API for the Overclaw / Overmind platform.
*
* The version of the OpenAPI document: 2.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { mapValues } from '../runtime';
import type { FinetuningTimeEstimate } from './FinetuningTimeEstimate';
import {
FinetuningTimeEstimateFromJSON,
FinetuningTimeEstimateFromJSONTyped,
FinetuningTimeEstimateToJSON,
FinetuningTimeEstimateToJSONTyped,
} from './FinetuningTimeEstimate';
import type { FinetuningCatalogTrainingType } from './FinetuningCatalogTrainingType';
import {
FinetuningCatalogTrainingTypeFromJSON,
FinetuningCatalogTrainingTypeFromJSONTyped,
FinetuningCatalogTrainingTypeToJSON,
FinetuningCatalogTrainingTypeToJSONTyped,
} from './FinetuningCatalogTrainingType';
import type { FinetuningEvidence } from './FinetuningEvidence';
import {
FinetuningEvidenceFromJSON,
FinetuningEvidenceFromJSONTyped,
FinetuningEvidenceToJSON,
FinetuningEvidenceToJSONTyped,
} from './FinetuningEvidence';
import type { ServingContextPlan } from './ServingContextPlan';
import {
ServingContextPlanFromJSON,
ServingContextPlanFromJSONTyped,
ServingContextPlanToJSON,
ServingContextPlanToJSONTyped,
} from './ServingContextPlan';
import type { ConfidenceEnum } from './ConfidenceEnum';
import {
ConfidenceEnumFromJSON,
ConfidenceEnumFromJSONTyped,
ConfidenceEnumToJSON,
ConfidenceEnumToJSONTyped,
} from './ConfidenceEnum';
import type { FinetuningGpuConfig } from './FinetuningGpuConfig';
import {
FinetuningGpuConfigFromJSON,
FinetuningGpuConfigFromJSONTyped,
FinetuningGpuConfigToJSON,
FinetuningGpuConfigToJSONTyped,
} from './FinetuningGpuConfig';
import type { FinetuningCostEstimate } from './FinetuningCostEstimate';
import {
FinetuningCostEstimateFromJSON,
FinetuningCostEstimateFromJSONTyped,
FinetuningCostEstimateToJSON,
FinetuningCostEstimateToJSONTyped,
} from './FinetuningCostEstimate';
import type { FinetuningSkillScore } from './FinetuningSkillScore';
import {
FinetuningSkillScoreFromJSON,
FinetuningSkillScoreFromJSONTyped,
FinetuningSkillScoreToJSON,
FinetuningSkillScoreToJSONTyped,
} from './FinetuningSkillScore';
/**
* ``match`` and ``skill_scores`` are standing among the ``match_pool`` graded candidates
* for this dataset; ``grade`` and below are percentiles over every model the benchmark
* artifact tracks.
* @export
* @interface FinetuningExperiment
*/
export interface FinetuningExperiment {
/**
*
* @type {string}
* @memberof FinetuningExperiment
*/
tier: string;
/**
*
* @type {string}
* @memberof FinetuningExperiment
*/
model: string;
/**
*
* @type {string}
* @memberof FinetuningExperiment
*/
displayName: string;
/**
*
* @type {string}
* @memberof FinetuningExperiment
*/
params: string;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
totalParamsB?: number;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
contextLengthSft?: number | null;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
maxBatchSize?: number | null;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
minBatchSize?: number | null;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
match: number | null;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
matchRank: number | null;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
matchPool: number;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
grade: number | null;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
adjustedGrade: number | null;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
lowerBound: number | null;
/**
*
* @type {ConfidenceEnum}
* @memberof FinetuningExperiment
*/
confidence: ConfidenceEnum;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
nBenchmarks: number;
/**
*
* @type {Array<FinetuningSkillScore>}
* @memberof FinetuningExperiment
*/
skillScores: Array<FinetuningSkillScore>;
/**
*
* @type {Array<FinetuningEvidence>}
* @memberof FinetuningExperiment
*/
evidence: Array<FinetuningEvidence>;
/**
*
* @type {boolean}
* @memberof FinetuningExperiment
*/
selected: boolean;
/**
*
* @type {any}
* @memberof FinetuningExperiment
*/
hyperparams: any | null;
/**
*
* @type {boolean}
* @memberof FinetuningExperiment
*/
useLora: boolean;
/**
*
* @type {FinetuningCatalogTrainingType}
* @memberof FinetuningExperiment
*/
trainingType?: FinetuningCatalogTrainingType;
/**
*
* @type {FinetuningGpuConfig}
* @memberof FinetuningExperiment
*/
gpuConfig: FinetuningGpuConfig;
/**
*
* @type {FinetuningCostEstimate}
* @memberof FinetuningExperiment
*/
costEstimate: FinetuningCostEstimate | null;
/**
*
* @type {FinetuningTimeEstimate}
* @memberof FinetuningExperiment
*/
timeEstimate: FinetuningTimeEstimate;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
learningRateLora: number;
/**
*
* @type {number}
* @memberof FinetuningExperiment
*/
learningRateFull: number;
/**
*
* @type {any}
* @memberof FinetuningExperiment
*/
hyperparamReasons: any | null;
/**
*
* @type {ServingContextPlan}
* @memberof FinetuningExperiment
*/
servingContext?: ServingContextPlan;
}
/**
* Check if a given object implements the FinetuningExperiment interface.
*/
export function instanceOfFinetuningExperiment(value: object): value is FinetuningExperiment {
if (!('tier' in value) || value['tier'] === undefined) return false;
if (!('model' in value) || value['model'] === undefined) return false;
if (!('displayName' in value) || value['displayName'] === undefined) return false;
if (!('params' in value) || value['params'] === undefined) return false;
if (!('match' in value) || value['match'] === undefined) return false;
if (!('matchRank' in value) || value['matchRank'] === undefined) return false;
if (!('matchPool' in value) || value['matchPool'] === undefined) return false;
if (!('grade' in value) || value['grade'] === undefined) return false;
if (!('adjustedGrade' in value) || value['adjustedGrade'] === undefined) return false;
if (!('lowerBound' in value) || value['lowerBound'] === undefined) return false;
if (!('confidence' in value) || value['confidence'] === undefined) return false;
if (!('nBenchmarks' in value) || value['nBenchmarks'] === undefined) return false;
if (!('skillScores' in value) || value['skillScores'] === undefined) return false;
if (!('evidence' in value) || value['evidence'] === undefined) return false;
if (!('selected' in value) || value['selected'] === undefined) return false;
if (!('hyperparams' in value) || value['hyperparams'] === undefined) return false;
if (!('useLora' in value) || value['useLora'] === undefined) return false;
if (!('gpuConfig' in value) || value['gpuConfig'] === undefined) return false;
if (!('costEstimate' in value) || value['costEstimate'] === undefined) return false;
if (!('timeEstimate' in value) || value['timeEstimate'] === undefined) return false;
if (!('learningRateLora' in value) || value['learningRateLora'] === undefined) return false;
if (!('learningRateFull' in value) || value['learningRateFull'] === undefined) return false;
if (!('hyperparamReasons' in value) || value['hyperparamReasons'] === undefined) return false;
return true;
}
export function FinetuningExperimentFromJSON(json: any): FinetuningExperiment {
return FinetuningExperimentFromJSONTyped(json, false);
}
export function FinetuningExperimentFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinetuningExperiment {
if (json == null) {
return json;
}
return {
'tier': json['tier'],
'model': json['model'],
'displayName': json['display_name'],
'params': json['params'],
'totalParamsB': json['total_params_b'] == null ? undefined : json['total_params_b'],
'contextLengthSft': json['context_length_sft'] == null ? undefined : json['context_length_sft'],
'maxBatchSize': json['max_batch_size'] == null ? undefined : json['max_batch_size'],
'minBatchSize': json['min_batch_size'] == null ? undefined : json['min_batch_size'],
'match': json['match'],
'matchRank': json['match_rank'],
'matchPool': json['match_pool'],
'grade': json['grade'],
'adjustedGrade': json['adjusted_grade'],
'lowerBound': json['lower_bound'],
'confidence': ConfidenceEnumFromJSON(json['confidence']),
'nBenchmarks': json['n_benchmarks'],
'skillScores': ((json['skill_scores'] as Array<any>).map(FinetuningSkillScoreFromJSON)),
'evidence': ((json['evidence'] as Array<any>).map(FinetuningEvidenceFromJSON)),
'selected': json['selected'],
'hyperparams': json['hyperparams'],
'useLora': json['use_lora'],
'trainingType': json['training_type'] == null ? undefined : FinetuningCatalogTrainingTypeFromJSON(json['training_type']),
'gpuConfig': FinetuningGpuConfigFromJSON(json['gpu_config']),
'costEstimate': FinetuningCostEstimateFromJSON(json['cost_estimate']),
'timeEstimate': FinetuningTimeEstimateFromJSON(json['time_estimate']),
'learningRateLora': json['learning_rate_lora'],
'learningRateFull': json['learning_rate_full'],
'hyperparamReasons': json['hyperparam_reasons'],
'servingContext': json['serving_context'] == null ? undefined : ServingContextPlanFromJSON(json['serving_context']),
};
}
export function FinetuningExperimentToJSON(json: any): FinetuningExperiment {
return FinetuningExperimentToJSONTyped(json, false);
}
export function FinetuningExperimentToJSONTyped(value?: FinetuningExperiment | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'tier': value['tier'],
'model': value['model'],
'display_name': value['displayName'],
'params': value['params'],
'total_params_b': value['totalParamsB'],
'context_length_sft': value['contextLengthSft'],
'max_batch_size': value['maxBatchSize'],
'min_batch_size': value['minBatchSize'],
'match': value['match'],
'match_rank': value['matchRank'],
'match_pool': value['matchPool'],
'grade': value['grade'],
'adjusted_grade': value['adjustedGrade'],
'lower_bound': value['lowerBound'],
'confidence': ConfidenceEnumToJSON(value['confidence']),
'n_benchmarks': value['nBenchmarks'],
'skill_scores': ((value['skillScores'] as Array<any>).map(FinetuningSkillScoreToJSON)),
'evidence': ((value['evidence'] as Array<any>).map(FinetuningEvidenceToJSON)),
'selected': value['selected'],
'hyperparams': value['hyperparams'],
'use_lora': value['useLora'],
'training_type': FinetuningCatalogTrainingTypeToJSON(value['trainingType']),
'gpu_config': FinetuningGpuConfigToJSON(value['gpuConfig']),
'cost_estimate': FinetuningCostEstimateToJSON(value['costEstimate']),
'time_estimate': FinetuningTimeEstimateToJSON(value['timeEstimate']),
'learning_rate_lora': value['learningRateLora'],
'learning_rate_full': value['learningRateFull'],
'hyperparam_reasons': value['hyperparamReasons'],
'serving_context': ServingContextPlanToJSON(value['servingContext']),
};
}