Spaces:
Runtime error
Runtime error
Remove top_k & repetiton_penalty as they are not supported
Browse files27 unmodified lines2829303132333435363738394041424344313233343536513738394027 unmodified lines max: 1, label: "Top-P", }, top_k: { default: 50, step: 1, min: 1, max: 100, label: "Top-K", }, repetition_penalty: { default: 1, step: 0.01, min: 1, max: 2, label: "Repetition Penalty", },};
export type GenerationConfigKey = keyof typeof GENERATION_CONFIG_SETTINGS;
export const GENERATION_CONFIG_KEYS: GenerationConfigKey[] = ["temperature", "max_tokens"];
export const GENERATION_CONFIG_KEYS_ADVANCED: GenerationConfigKey[] = ["top_p", "top_k", "repetition_penalty"];export const GENERATION_CONFIG_KEYS_ADVANCED: GenerationConfigKey[] = ["top_p"];
export type GenerationConfig = Record<GenerationConfigKey, number>;
src/lib/components/InferencePlayground/generationConfigSettings.ts+1-15