| import type { PipelineType } from "./pipelines.js"; |
| import type { WidgetExample } from "./widget-example.js"; |
| import type { TokenizerConfig } from "./tokenizer-data.js"; |
| |
| |
| |
| export interface ModelData { |
| |
| |
| |
| id: string; |
| |
| |
| |
| |
| inference: string; |
| |
| |
| |
| private?: boolean; |
| |
| |
| |
| config?: { |
| architectures?: string[]; |
| |
| |
| |
| auto_map?: { |
| |
| |
| |
| [x: string]: string; |
| }; |
| model_type?: string; |
| quantization_config?: { |
| bits?: number; |
| load_in_4bit?: boolean; |
| load_in_8bit?: boolean; |
| |
| |
| |
| quant_method?: string; |
| }; |
| tokenizer_config?: TokenizerConfig; |
| adapter_transformers?: { |
| model_name?: string; |
| model_class?: string; |
| }; |
| diffusers?: { |
| _class_name?: string; |
| }; |
| sklearn?: { |
| model?: { |
| file?: string; |
| }; |
| model_format?: string; |
| }; |
| speechbrain?: { |
| speechbrain_interface?: string; |
| vocoder_interface?: string; |
| vocoder_model_id?: string; |
| }; |
| peft?: { |
| base_model_name_or_path?: string; |
| task_type?: string; |
| }; |
| keras_hub?: { |
| tasks?: string[]; |
| }; |
| }; |
| |
| |
| |
| tags: string[]; |
| |
| |
| |
| transformersInfo?: TransformersInfo; |
| |
| |
| |
| pipeline_tag?: PipelineType | undefined; |
| |
| |
| |
| mask_token?: string | undefined; |
| |
| |
| |
| |
| |
| |
| widgetData?: WidgetExample[] | undefined; |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| cardData?: { |
| inference?: boolean | { |
| parameters?: Record<string, unknown>; |
| }; |
| base_model?: string | string[]; |
| instance_prompt?: string | null; |
| }; |
| |
| |
| |
| |
| library_name?: string; |
| safetensors?: { |
| parameters: Record<string, number>; |
| total: number; |
| sharded: boolean; |
| }; |
| gguf?: { |
| total: number; |
| architecture?: string; |
| context_length?: number; |
| }; |
| } |
| |
| |
| |
| export interface TransformersInfo { |
| |
| |
| |
| auto_model: string; |
| |
| |
| |
| custom_class?: string; |
| |
| |
| |
| pipeline_tag?: PipelineType; |
| |
| |
| |
| processor?: string; |
| } |
| |