Defines TypeScript types and constants for training modes, adapters, and model strategies used in AI model selection.
// Source: https://github.com/greyhaven-ai/autocontext | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
export type TrainingMode = "from_scratch" | "adapter_finetune" | "full_finetune";
export type AdapterType = "lora" | "qlora" | "prefix_tuning";
export type TaskComplexity = "structured" | "mixed" | "language_heavy";
export type BudgetTier = "low" | "medium" | "high";
export const TRAINING_MODES: readonly TrainingMode[] = [
"from_scratch",
"adapter_finetune",
"full_finetune",
];
export interface ModelStrategy {
trainingMode: TrainingMode;
baseModel?: string;
adapterType?: AdapterType;
reasoning: string;
estimatedParameterCount?: number;
estimatedTrainingTimeMin
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key