Update ui ModelFormatBadge to support GGUF.

This commit is contained in:
Ryan Dick
2024-10-02 21:19:56 +00:00
committed by Kent Keirsey
parent 3d4bd71098
commit c29259ccdb
2 changed files with 105 additions and 13 deletions

View File

@@ -16,6 +16,7 @@ const FORMAT_NAME_MAP: Record<AnyModelConfig['format'], string> = {
t5_encoder: 't5_encoder',
bnb_quantized_int8b: 'bnb_quantized_int8b',
bnb_quantized_nf4b: 'quantized',
gguf_quantized: 'gguf',
};
const FORMAT_COLOR_MAP: Record<AnyModelConfig['format'], string> = {
@@ -28,6 +29,7 @@ const FORMAT_COLOR_MAP: Record<AnyModelConfig['format'], string> = {
t5_encoder: 'base',
bnb_quantized_int8b: 'base',
bnb_quantized_nf4b: 'base',
gguf_quantized: 'base',
};
const ModelFormatBadge = ({ format }: Props) => {