Spaces:
Sleeping
Sleeping
Remove top_k & repetiton_penalty as they are not supported
Browse files27 unmodified lines28293031323334353637383940414243444546474849505152535427 unmodified linesmax: 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 type GenerationConfig = Record<GenerationConfigKey, number>;27 unmodified lines2829303132333435363738394027 unmodified linesmax: 1,label: "Top-P",},};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"];export type GenerationConfig = Record<GenerationConfigKey, number>;
src/lib/components/InferencePlayground/generationConfigSettings.ts+1-15