This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@mistralai/mistralai/models/components/classifiertrainingparametersin.d.ts
T

54 lines
3.3 KiB
TypeScript

import * as z from "zod";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
/**
* The fine-tuning hyperparameter settings used in a classifier fine-tune job.
*/
export type ClassifierTrainingParametersIn = {
/**
* The number of training steps to perform. A training step refers to a single update of the model weights during the fine-tuning process. This update is typically calculated using a batch of samples from the training dataset.
*/
trainingSteps?: number | null | undefined;
/**
* A parameter describing how much to adjust the pre-trained model's weights in response to the estimated error each time the weights are updated during the fine-tuning process.
*/
learningRate?: number | undefined;
/**
* (Advanced Usage) Weight decay adds a term to the loss function that is proportional to the sum of the squared weights. This term reduces the magnitude of the weights and prevents them from growing too large.
*/
weightDecay?: number | null | undefined;
/**
* (Advanced Usage) A parameter that specifies the percentage of the total training steps at which the learning rate warm-up phase ends. During this phase, the learning rate gradually increases from a small value to the initial learning rate, helping to stabilize the training process and improve convergence. Similar to `pct_start` in [mistral-finetune](https://github.com/mistralai/mistral-finetune)
*/
warmupFraction?: number | null | undefined;
epochs?: number | null | undefined;
seqLen?: number | null | undefined;
};
/** @internal */
export declare const ClassifierTrainingParametersIn$inboundSchema: z.ZodType<ClassifierTrainingParametersIn, z.ZodTypeDef, unknown>;
/** @internal */
export type ClassifierTrainingParametersIn$Outbound = {
training_steps?: number | null | undefined;
learning_rate: number;
weight_decay?: number | null | undefined;
warmup_fraction?: number | null | undefined;
epochs?: number | null | undefined;
seq_len?: number | null | undefined;
};
/** @internal */
export declare const ClassifierTrainingParametersIn$outboundSchema: z.ZodType<ClassifierTrainingParametersIn$Outbound, z.ZodTypeDef, ClassifierTrainingParametersIn>;
/**
* @internal
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
*/
export declare namespace ClassifierTrainingParametersIn$ {
/** @deprecated use `ClassifierTrainingParametersIn$inboundSchema` instead. */
const inboundSchema: z.ZodType<ClassifierTrainingParametersIn, z.ZodTypeDef, unknown>;
/** @deprecated use `ClassifierTrainingParametersIn$outboundSchema` instead. */
const outboundSchema: z.ZodType<ClassifierTrainingParametersIn$Outbound, z.ZodTypeDef, ClassifierTrainingParametersIn>;
/** @deprecated use `ClassifierTrainingParametersIn$Outbound` instead. */
type Outbound = ClassifierTrainingParametersIn$Outbound;
}
export declare function classifierTrainingParametersInToJSON(classifierTrainingParametersIn: ClassifierTrainingParametersIn): string;
export declare function classifierTrainingParametersInFromJSON(jsonString: string): SafeParseResult<ClassifierTrainingParametersIn, SDKValidationError>;
//# sourceMappingURL=classifiertrainingparametersin.d.ts.map