import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ClassifierTargetIn, ClassifierTargetIn$Outbound } from "./classifiertargetin.js"; import { ClassifierTrainingParametersIn, ClassifierTrainingParametersIn$Outbound } from "./classifiertrainingparametersin.js"; import { CompletionTrainingParametersIn, CompletionTrainingParametersIn$Outbound } from "./completiontrainingparametersin.js"; import { FineTuneableModelType } from "./finetuneablemodeltype.js"; import { GithubRepositoryIn, GithubRepositoryIn$Outbound } from "./githubrepositoryin.js"; import { TrainingFile, TrainingFile$Outbound } from "./trainingfile.js"; import { WandbIntegration, WandbIntegration$Outbound } from "./wandbintegration.js"; export type JobInIntegrations = WandbIntegration; export type Hyperparameters = CompletionTrainingParametersIn | ClassifierTrainingParametersIn; export type JobInRepositories = GithubRepositoryIn; export type JobIn = { /** * The name of the model to fine-tune. */ model: string; trainingFiles?: Array | undefined; /** * A list containing the IDs of uploaded files that contain validation data. If you provide these files, the data is used to generate validation metrics periodically during fine-tuning. These metrics can be viewed in `checkpoints` when getting the status of a running fine-tuning job. The same data should not be present in both train and validation files. */ validationFiles?: Array | null | undefined; /** * A string that will be added to your fine-tuning model name. For example, a suffix of "my-great-model" would produce a model name like `ft:open-mistral-7b:my-great-model:xxx...` */ suffix?: string | null | undefined; /** * A list of integrations to enable for your fine-tuning job. */ integrations?: Array | null | undefined; /** * This field will be required in a future release. */ autoStart?: boolean | undefined; invalidSampleSkipPercentage?: number | undefined; jobType?: FineTuneableModelType | null | undefined; hyperparameters: CompletionTrainingParametersIn | ClassifierTrainingParametersIn; repositories?: Array | null | undefined; classifierTargets?: Array | null | undefined; }; /** @internal */ export declare const JobInIntegrations$inboundSchema: z.ZodType; /** @internal */ export type JobInIntegrations$Outbound = WandbIntegration$Outbound; /** @internal */ export declare const JobInIntegrations$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace JobInIntegrations$ { /** @deprecated use `JobInIntegrations$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `JobInIntegrations$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `JobInIntegrations$Outbound` instead. */ type Outbound = JobInIntegrations$Outbound; } export declare function jobInIntegrationsToJSON(jobInIntegrations: JobInIntegrations): string; export declare function jobInIntegrationsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Hyperparameters$inboundSchema: z.ZodType; /** @internal */ export type Hyperparameters$Outbound = CompletionTrainingParametersIn$Outbound | ClassifierTrainingParametersIn$Outbound; /** @internal */ export declare const Hyperparameters$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Hyperparameters$ { /** @deprecated use `Hyperparameters$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Hyperparameters$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Hyperparameters$Outbound` instead. */ type Outbound = Hyperparameters$Outbound; } export declare function hyperparametersToJSON(hyperparameters: Hyperparameters): string; export declare function hyperparametersFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const JobInRepositories$inboundSchema: z.ZodType; /** @internal */ export type JobInRepositories$Outbound = GithubRepositoryIn$Outbound; /** @internal */ export declare const JobInRepositories$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace JobInRepositories$ { /** @deprecated use `JobInRepositories$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `JobInRepositories$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `JobInRepositories$Outbound` instead. */ type Outbound = JobInRepositories$Outbound; } export declare function jobInRepositoriesToJSON(jobInRepositories: JobInRepositories): string; export declare function jobInRepositoriesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const JobIn$inboundSchema: z.ZodType; /** @internal */ export type JobIn$Outbound = { model: string; training_files?: Array | undefined; validation_files?: Array | null | undefined; suffix?: string | null | undefined; integrations?: Array | null | undefined; auto_start?: boolean | undefined; invalid_sample_skip_percentage: number; job_type?: string | null | undefined; hyperparameters: CompletionTrainingParametersIn$Outbound | ClassifierTrainingParametersIn$Outbound; repositories?: Array | null | undefined; classifier_targets?: Array | null | undefined; }; /** @internal */ export declare const JobIn$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace JobIn$ { /** @deprecated use `JobIn$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `JobIn$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `JobIn$Outbound` instead. */ type Outbound = JobIn$Outbound; } export declare function jobInToJSON(jobIn: JobIn): string; export declare function jobInFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=jobin.d.ts.map