Skip to content

The platform for continuously improving AI agents.

2.1 KB
Raw Blame
/* 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';
/**
 *
 * @export
 * @interface FinetuningGpuConfig
 */
export interface FinetuningGpuConfig {
    /**
     *
     * @type {string}
     * @memberof FinetuningGpuConfig
     */
    gpuType: string | null;
    /**
     *
     * @type {number}
     * @memberof FinetuningGpuConfig
     */
    numGpus: number;
    /**
     *
     * @type {number}
     * @memberof FinetuningGpuConfig
     */
    maxModelLen: number | null;
}

/**
 * Check if a given object implements the FinetuningGpuConfig interface.
 */
export function instanceOfFinetuningGpuConfig(value: object): value is FinetuningGpuConfig {
    if (!('gpuType' in value) || value['gpuType'] === undefined) return false;
    if (!('numGpus' in value) || value['numGpus'] === undefined) return false;
    if (!('maxModelLen' in value) || value['maxModelLen'] === undefined) return false;
    return true;
}

export function FinetuningGpuConfigFromJSON(json: any): FinetuningGpuConfig {
    return FinetuningGpuConfigFromJSONTyped(json, false);
}

export function FinetuningGpuConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinetuningGpuConfig {
    if (json == null) {
        return json;
    }
    return {

        'gpuType': json['gpu_type'],
        'numGpus': json['num_gpus'],
        'maxModelLen': json['max_model_len'],
    };
}

export function FinetuningGpuConfigToJSON(json: any): FinetuningGpuConfig {
    return FinetuningGpuConfigToJSONTyped(json, false);
}

export function FinetuningGpuConfigToJSONTyped(value?: FinetuningGpuConfig | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

        'gpu_type': value['gpuType'],
        'num_gpus': value['numGpus'],
        'max_model_len': value['maxModelLen'],
    };
}