@huggingface/tasks 0.13.0-test2 → 0.13.0-test3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dataset-libraries.d.cts +87 -0
- package/dist/dataset-libraries.d.cts.map +1 -0
- package/dist/dataset-libraries.d.ts +87 -0
- package/dist/dataset-libraries.d.ts.map +1 -0
- package/dist/default-widget-inputs.d.cts +6 -0
- package/dist/default-widget-inputs.d.cts.map +1 -0
- package/dist/default-widget-inputs.d.ts +6 -0
- package/dist/default-widget-inputs.d.ts.map +1 -0
- package/dist/gguf.d.cts +35 -0
- package/dist/gguf.d.cts.map +1 -0
- package/dist/gguf.d.ts +35 -0
- package/dist/gguf.d.ts.map +1 -0
- package/dist/hardware.d.cts +478 -0
- package/dist/hardware.d.cts.map +1 -0
- package/dist/hardware.d.ts +478 -0
- package/dist/hardware.d.ts.map +1 -0
- package/dist/index.d.cts +21 -4778
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +21 -4778
- package/dist/index.d.ts.map +1 -0
- package/dist/library-to-tasks.d.cts +11 -0
- package/dist/library-to-tasks.d.cts.map +1 -0
- package/dist/library-to-tasks.d.ts +11 -0
- package/dist/library-to-tasks.d.ts.map +1 -0
- package/dist/local-apps.d.cts +195 -0
- package/dist/local-apps.d.cts.map +1 -0
- package/dist/local-apps.d.ts +195 -0
- package/dist/local-apps.d.ts.map +1 -0
- package/dist/model-data.d.cts +146 -0
- package/dist/model-data.d.cts.map +1 -0
- package/dist/model-data.d.ts +146 -0
- package/dist/model-data.d.ts.map +1 -0
- package/dist/model-libraries-downloads.d.cts +18 -0
- package/dist/model-libraries-downloads.d.cts.map +1 -0
- package/dist/model-libraries-downloads.d.ts +18 -0
- package/dist/model-libraries-downloads.d.ts.map +1 -0
- package/dist/model-libraries-snippets.d.cts +72 -0
- package/dist/model-libraries-snippets.d.cts.map +1 -0
- package/dist/model-libraries-snippets.d.ts +72 -0
- package/dist/model-libraries-snippets.d.ts.map +1 -0
- package/dist/model-libraries.d.cts +804 -0
- package/dist/model-libraries.d.cts.map +1 -0
- package/dist/model-libraries.d.ts +804 -0
- package/dist/model-libraries.d.ts.map +1 -0
- package/dist/pipelines.d.cts +425 -0
- package/dist/pipelines.d.cts.map +1 -0
- package/dist/pipelines.d.ts +425 -0
- package/dist/pipelines.d.ts.map +1 -0
- package/dist/snippets/common.d.cts +14 -0
- package/dist/snippets/common.d.cts.map +1 -0
- package/dist/snippets/common.d.ts +14 -0
- package/dist/snippets/common.d.ts.map +1 -0
- package/dist/snippets/curl.d.cts +17 -0
- package/dist/snippets/curl.d.cts.map +1 -0
- package/dist/snippets/curl.d.ts +17 -0
- package/dist/snippets/curl.d.ts.map +1 -0
- package/dist/snippets/curl.spec.d.cts +2 -0
- package/dist/snippets/curl.spec.d.cts.map +1 -0
- package/dist/snippets/curl.spec.d.ts +2 -0
- package/dist/snippets/curl.spec.d.ts.map +1 -0
- package/dist/snippets/index.d.cts +6 -0
- package/dist/snippets/index.d.cts.map +1 -0
- package/dist/snippets/index.d.ts +6 -0
- package/dist/snippets/index.d.ts.map +1 -0
- package/dist/snippets/inputs.d.cts +4 -0
- package/dist/snippets/inputs.d.cts.map +1 -0
- package/dist/snippets/inputs.d.ts +4 -0
- package/dist/snippets/inputs.d.ts.map +1 -0
- package/dist/snippets/js.d.cts +19 -0
- package/dist/snippets/js.d.cts.map +1 -0
- package/dist/snippets/js.d.ts +19 -0
- package/dist/snippets/js.d.ts.map +1 -0
- package/dist/snippets/js.spec.d.cts +2 -0
- package/dist/snippets/js.spec.d.cts.map +1 -0
- package/dist/snippets/js.spec.d.ts +2 -0
- package/dist/snippets/js.spec.d.ts.map +1 -0
- package/dist/snippets/python.d.cts +22 -0
- package/dist/snippets/python.d.cts.map +1 -0
- package/dist/snippets/python.d.ts +22 -0
- package/dist/snippets/python.d.ts.map +1 -0
- package/dist/snippets/python.spec.d.cts +2 -0
- package/dist/snippets/python.spec.d.cts.map +1 -0
- package/dist/snippets/python.spec.d.ts +2 -0
- package/dist/snippets/python.spec.d.ts.map +1 -0
- package/dist/snippets/types.d.cts +12 -0
- package/dist/snippets/types.d.cts.map +1 -0
- package/dist/snippets/types.d.ts +12 -0
- package/dist/snippets/types.d.ts.map +1 -0
- package/dist/tasks/audio-classification/data.d.cts +4 -0
- package/dist/tasks/audio-classification/data.d.cts.map +1 -0
- package/dist/tasks/audio-classification/data.d.ts +4 -0
- package/dist/tasks/audio-classification/data.d.ts.map +1 -0
- package/dist/tasks/audio-classification/inference.d.cts +53 -0
- package/dist/tasks/audio-classification/inference.d.cts.map +1 -0
- package/dist/tasks/audio-classification/inference.d.ts +53 -0
- package/dist/tasks/audio-classification/inference.d.ts.map +1 -0
- package/dist/tasks/audio-to-audio/data.d.cts +4 -0
- package/dist/tasks/audio-to-audio/data.d.cts.map +1 -0
- package/dist/tasks/audio-to-audio/data.d.ts +4 -0
- package/dist/tasks/audio-to-audio/data.d.ts.map +1 -0
- package/dist/tasks/automatic-speech-recognition/data.d.cts +4 -0
- package/dist/tasks/automatic-speech-recognition/data.d.cts.map +1 -0
- package/dist/tasks/automatic-speech-recognition/data.d.ts +4 -0
- package/dist/tasks/automatic-speech-recognition/data.d.ts.map +1 -0
- package/dist/tasks/automatic-speech-recognition/inference.d.cts +155 -0
- package/dist/tasks/automatic-speech-recognition/inference.d.cts.map +1 -0
- package/dist/tasks/automatic-speech-recognition/inference.d.ts +155 -0
- package/dist/tasks/automatic-speech-recognition/inference.d.ts.map +1 -0
- package/dist/tasks/chat-completion/inference.d.cts +291 -0
- package/dist/tasks/chat-completion/inference.d.cts.map +1 -0
- package/dist/tasks/chat-completion/inference.d.ts +291 -0
- package/dist/tasks/chat-completion/inference.d.ts.map +1 -0
- package/dist/tasks/depth-estimation/data.d.cts +4 -0
- package/dist/tasks/depth-estimation/data.d.cts.map +1 -0
- package/dist/tasks/depth-estimation/data.d.ts +4 -0
- package/dist/tasks/depth-estimation/data.d.ts.map +1 -0
- package/dist/tasks/depth-estimation/inference.d.cts +36 -0
- package/dist/tasks/depth-estimation/inference.d.cts.map +1 -0
- package/dist/tasks/depth-estimation/inference.d.ts +36 -0
- package/dist/tasks/depth-estimation/inference.d.ts.map +1 -0
- package/dist/tasks/document-question-answering/data.d.cts +4 -0
- package/dist/tasks/document-question-answering/data.d.cts.map +1 -0
- package/dist/tasks/document-question-answering/data.d.ts +4 -0
- package/dist/tasks/document-question-answering/data.d.ts.map +1 -0
- package/dist/tasks/document-question-answering/inference.d.cts +111 -0
- package/dist/tasks/document-question-answering/inference.d.cts.map +1 -0
- package/dist/tasks/document-question-answering/inference.d.ts +111 -0
- package/dist/tasks/document-question-answering/inference.d.ts.map +1 -0
- package/dist/tasks/feature-extraction/data.d.cts +4 -0
- package/dist/tasks/feature-extraction/data.d.cts.map +1 -0
- package/dist/tasks/feature-extraction/data.d.ts +4 -0
- package/dist/tasks/feature-extraction/data.d.ts.map +1 -0
- package/dist/tasks/feature-extraction/inference.d.cts +38 -0
- package/dist/tasks/feature-extraction/inference.d.cts.map +1 -0
- package/dist/tasks/feature-extraction/inference.d.ts +38 -0
- package/dist/tasks/feature-extraction/inference.d.ts.map +1 -0
- package/dist/tasks/fill-mask/data.d.cts +4 -0
- package/dist/tasks/fill-mask/data.d.cts.map +1 -0
- package/dist/tasks/fill-mask/data.d.ts +4 -0
- package/dist/tasks/fill-mask/data.d.ts.map +1 -0
- package/dist/tasks/fill-mask/inference.d.cts +63 -0
- package/dist/tasks/fill-mask/inference.d.cts.map +1 -0
- package/dist/tasks/fill-mask/inference.d.ts +63 -0
- package/dist/tasks/fill-mask/inference.d.ts.map +1 -0
- package/dist/tasks/image-classification/data.d.cts +4 -0
- package/dist/tasks/image-classification/data.d.cts.map +1 -0
- package/dist/tasks/image-classification/data.d.ts +4 -0
- package/dist/tasks/image-classification/data.d.ts.map +1 -0
- package/dist/tasks/image-classification/inference.d.cts +53 -0
- package/dist/tasks/image-classification/inference.d.cts.map +1 -0
- package/dist/tasks/image-classification/inference.d.ts +53 -0
- package/dist/tasks/image-classification/inference.d.ts.map +1 -0
- package/dist/tasks/image-feature-extraction/data.d.cts +4 -0
- package/dist/tasks/image-feature-extraction/data.d.cts.map +1 -0
- package/dist/tasks/image-feature-extraction/data.d.ts +4 -0
- package/dist/tasks/image-feature-extraction/data.d.ts.map +1 -0
- package/dist/tasks/image-segmentation/data.d.cts +4 -0
- package/dist/tasks/image-segmentation/data.d.cts.map +1 -0
- package/dist/tasks/image-segmentation/data.d.ts +4 -0
- package/dist/tasks/image-segmentation/data.d.ts.map +1 -0
- package/dist/tasks/image-segmentation/inference.d.cts +70 -0
- package/dist/tasks/image-segmentation/inference.d.cts.map +1 -0
- package/dist/tasks/image-segmentation/inference.d.ts +70 -0
- package/dist/tasks/image-segmentation/inference.d.ts.map +1 -0
- package/dist/tasks/image-text-to-text/data.d.cts +4 -0
- package/dist/tasks/image-text-to-text/data.d.cts.map +1 -0
- package/dist/tasks/image-text-to-text/data.d.ts +4 -0
- package/dist/tasks/image-text-to-text/data.d.ts.map +1 -0
- package/dist/tasks/image-to-3d/data.d.cts +4 -0
- package/dist/tasks/image-to-3d/data.d.cts.map +1 -0
- package/dist/tasks/image-to-3d/data.d.ts +4 -0
- package/dist/tasks/image-to-3d/data.d.ts.map +1 -0
- package/dist/tasks/image-to-image/data.d.cts +4 -0
- package/dist/tasks/image-to-image/data.d.cts.map +1 -0
- package/dist/tasks/image-to-image/data.d.ts +4 -0
- package/dist/tasks/image-to-image/data.d.ts.map +1 -0
- package/dist/tasks/image-to-image/inference.d.cts +65 -0
- package/dist/tasks/image-to-image/inference.d.cts.map +1 -0
- package/dist/tasks/image-to-image/inference.d.ts +65 -0
- package/dist/tasks/image-to-image/inference.d.ts.map +1 -0
- package/dist/tasks/image-to-text/data.d.cts +4 -0
- package/dist/tasks/image-to-text/data.d.cts.map +1 -0
- package/dist/tasks/image-to-text/data.d.ts +4 -0
- package/dist/tasks/image-to-text/data.d.ts.map +1 -0
- package/dist/tasks/image-to-text/inference.d.cts +139 -0
- package/dist/tasks/image-to-text/inference.d.cts.map +1 -0
- package/dist/tasks/image-to-text/inference.d.ts +139 -0
- package/dist/tasks/image-to-text/inference.d.ts.map +1 -0
- package/dist/tasks/index.d.cts +87 -0
- package/dist/tasks/index.d.cts.map +1 -0
- package/dist/tasks/index.d.ts +87 -0
- package/dist/tasks/index.d.ts.map +1 -0
- package/dist/tasks/keypoint-detection/data.d.cts +4 -0
- package/dist/tasks/keypoint-detection/data.d.cts.map +1 -0
- package/dist/tasks/keypoint-detection/data.d.ts +4 -0
- package/dist/tasks/keypoint-detection/data.d.ts.map +1 -0
- package/dist/tasks/mask-generation/data.d.cts +4 -0
- package/dist/tasks/mask-generation/data.d.cts.map +1 -0
- package/dist/tasks/mask-generation/data.d.ts +4 -0
- package/dist/tasks/mask-generation/data.d.ts.map +1 -0
- package/dist/tasks/object-detection/data.d.cts +4 -0
- package/dist/tasks/object-detection/data.d.cts.map +1 -0
- package/dist/tasks/object-detection/data.d.ts +4 -0
- package/dist/tasks/object-detection/data.d.ts.map +1 -0
- package/dist/tasks/object-detection/inference.d.cts +76 -0
- package/dist/tasks/object-detection/inference.d.cts.map +1 -0
- package/dist/tasks/object-detection/inference.d.ts +76 -0
- package/dist/tasks/object-detection/inference.d.ts.map +1 -0
- package/dist/tasks/placeholder/data.d.cts +4 -0
- package/dist/tasks/placeholder/data.d.cts.map +1 -0
- package/dist/tasks/placeholder/data.d.ts +4 -0
- package/dist/tasks/placeholder/data.d.ts.map +1 -0
- package/dist/tasks/question-answering/data.d.cts +4 -0
- package/dist/tasks/question-answering/data.d.cts.map +1 -0
- package/dist/tasks/question-answering/data.d.ts +4 -0
- package/dist/tasks/question-answering/data.d.ts.map +1 -0
- package/dist/tasks/question-answering/inference.d.cts +100 -0
- package/dist/tasks/question-answering/inference.d.cts.map +1 -0
- package/dist/tasks/question-answering/inference.d.ts +100 -0
- package/dist/tasks/question-answering/inference.d.ts.map +1 -0
- package/dist/tasks/reinforcement-learning/data.d.cts +4 -0
- package/dist/tasks/reinforcement-learning/data.d.cts.map +1 -0
- package/dist/tasks/reinforcement-learning/data.d.ts +4 -0
- package/dist/tasks/reinforcement-learning/data.d.ts.map +1 -0
- package/dist/tasks/sentence-similarity/data.d.cts +4 -0
- package/dist/tasks/sentence-similarity/data.d.cts.map +1 -0
- package/dist/tasks/sentence-similarity/data.d.ts +4 -0
- package/dist/tasks/sentence-similarity/data.d.ts.map +1 -0
- package/dist/tasks/sentence-similarity/inference.d.cts +32 -0
- package/dist/tasks/sentence-similarity/inference.d.cts.map +1 -0
- package/dist/tasks/sentence-similarity/inference.d.ts +32 -0
- package/dist/tasks/sentence-similarity/inference.d.ts.map +1 -0
- package/dist/tasks/summarization/data.d.cts +4 -0
- package/dist/tasks/summarization/data.d.cts.map +1 -0
- package/dist/tasks/summarization/data.d.ts +4 -0
- package/dist/tasks/summarization/data.d.ts.map +1 -0
- package/dist/tasks/summarization/inference.d.cts +56 -0
- package/dist/tasks/summarization/inference.d.cts.map +1 -0
- package/dist/tasks/summarization/inference.d.ts +56 -0
- package/dist/tasks/summarization/inference.d.ts.map +1 -0
- package/dist/tasks/table-question-answering/data.d.cts +4 -0
- package/dist/tasks/table-question-answering/data.d.cts.map +1 -0
- package/dist/tasks/table-question-answering/data.d.ts +4 -0
- package/dist/tasks/table-question-answering/data.d.ts.map +1 -0
- package/dist/tasks/table-question-answering/inference.d.cts +62 -0
- package/dist/tasks/table-question-answering/inference.d.cts.map +1 -0
- package/dist/tasks/table-question-answering/inference.d.ts +62 -0
- package/dist/tasks/table-question-answering/inference.d.ts.map +1 -0
- package/dist/tasks/tabular-classification/data.d.cts +4 -0
- package/dist/tasks/tabular-classification/data.d.cts.map +1 -0
- package/dist/tasks/tabular-classification/data.d.ts +4 -0
- package/dist/tasks/tabular-classification/data.d.ts.map +1 -0
- package/dist/tasks/tabular-regression/data.d.cts +4 -0
- package/dist/tasks/tabular-regression/data.d.cts.map +1 -0
- package/dist/tasks/tabular-regression/data.d.ts +4 -0
- package/dist/tasks/tabular-regression/data.d.ts.map +1 -0
- package/dist/tasks/text-classification/data.d.cts +4 -0
- package/dist/tasks/text-classification/data.d.cts.map +1 -0
- package/dist/tasks/text-classification/data.d.ts +4 -0
- package/dist/tasks/text-classification/data.d.ts.map +1 -0
- package/dist/tasks/text-classification/inference.d.cts +52 -0
- package/dist/tasks/text-classification/inference.d.cts.map +1 -0
- package/dist/tasks/text-classification/inference.d.ts +52 -0
- package/dist/tasks/text-classification/inference.d.ts.map +1 -0
- package/dist/tasks/text-generation/data.d.cts +4 -0
- package/dist/tasks/text-generation/data.d.cts.map +1 -0
- package/dist/tasks/text-generation/data.d.ts +4 -0
- package/dist/tasks/text-generation/data.d.ts.map +1 -0
- package/dist/tasks/text-generation/inference.d.cts +188 -0
- package/dist/tasks/text-generation/inference.d.cts.map +1 -0
- package/dist/tasks/text-generation/inference.d.ts +188 -0
- package/dist/tasks/text-generation/inference.d.ts.map +1 -0
- package/dist/tasks/text-to-3d/data.d.cts +4 -0
- package/dist/tasks/text-to-3d/data.d.cts.map +1 -0
- package/dist/tasks/text-to-3d/data.d.ts +4 -0
- package/dist/tasks/text-to-3d/data.d.ts.map +1 -0
- package/dist/tasks/text-to-audio/inference.d.cts +139 -0
- package/dist/tasks/text-to-audio/inference.d.cts.map +1 -0
- package/dist/tasks/text-to-audio/inference.d.ts +139 -0
- package/dist/tasks/text-to-audio/inference.d.ts.map +1 -0
- package/dist/tasks/text-to-image/data.d.cts +4 -0
- package/dist/tasks/text-to-image/data.d.cts.map +1 -0
- package/dist/tasks/text-to-image/data.d.ts +4 -0
- package/dist/tasks/text-to-image/data.d.ts.map +1 -0
- package/dist/tasks/text-to-image/inference.d.cts +72 -0
- package/dist/tasks/text-to-image/inference.d.cts.map +1 -0
- package/dist/tasks/text-to-image/inference.d.ts +72 -0
- package/dist/tasks/text-to-image/inference.d.ts.map +1 -0
- package/dist/tasks/text-to-speech/data.d.cts +4 -0
- package/dist/tasks/text-to-speech/data.d.cts.map +1 -0
- package/dist/tasks/text-to-speech/data.d.ts +4 -0
- package/dist/tasks/text-to-speech/data.d.ts.map +1 -0
- package/dist/tasks/text-to-speech/inference.d.cts +141 -0
- package/dist/tasks/text-to-speech/inference.d.cts.map +1 -0
- package/dist/tasks/text-to-speech/inference.d.ts +141 -0
- package/dist/tasks/text-to-speech/inference.d.ts.map +1 -0
- package/dist/tasks/text-to-video/data.d.cts +4 -0
- package/dist/tasks/text-to-video/data.d.cts.map +1 -0
- package/dist/tasks/text-to-video/data.d.ts +4 -0
- package/dist/tasks/text-to-video/data.d.ts.map +1 -0
- package/dist/tasks/text2text-generation/inference.d.cts +54 -0
- package/dist/tasks/text2text-generation/inference.d.cts.map +1 -0
- package/dist/tasks/text2text-generation/inference.d.ts +54 -0
- package/dist/tasks/text2text-generation/inference.d.ts.map +1 -0
- package/dist/tasks/token-classification/data.d.cts +4 -0
- package/dist/tasks/token-classification/data.d.cts.map +1 -0
- package/dist/tasks/token-classification/data.d.ts +4 -0
- package/dist/tasks/token-classification/data.d.ts.map +1 -0
- package/dist/tasks/token-classification/inference.d.cts +86 -0
- package/dist/tasks/token-classification/inference.d.cts.map +1 -0
- package/dist/tasks/token-classification/inference.d.ts +86 -0
- package/dist/tasks/token-classification/inference.d.ts.map +1 -0
- package/dist/tasks/translation/data.d.cts +4 -0
- package/dist/tasks/translation/data.d.cts.map +1 -0
- package/dist/tasks/translation/data.d.ts +4 -0
- package/dist/tasks/translation/data.d.ts.map +1 -0
- package/dist/tasks/translation/inference.d.cts +66 -0
- package/dist/tasks/translation/inference.d.cts.map +1 -0
- package/dist/tasks/translation/inference.d.ts +66 -0
- package/dist/tasks/translation/inference.d.ts.map +1 -0
- package/dist/tasks/unconditional-image-generation/data.d.cts +4 -0
- package/dist/tasks/unconditional-image-generation/data.d.cts.map +1 -0
- package/dist/tasks/unconditional-image-generation/data.d.ts +4 -0
- package/dist/tasks/unconditional-image-generation/data.d.ts.map +1 -0
- package/dist/tasks/video-classification/data.d.cts +4 -0
- package/dist/tasks/video-classification/data.d.cts.map +1 -0
- package/dist/tasks/video-classification/data.d.ts +4 -0
- package/dist/tasks/video-classification/data.d.ts.map +1 -0
- package/dist/tasks/video-classification/inference.d.cts +60 -0
- package/dist/tasks/video-classification/inference.d.cts.map +1 -0
- package/dist/tasks/video-classification/inference.d.ts +60 -0
- package/dist/tasks/video-classification/inference.d.ts.map +1 -0
- package/dist/tasks/video-text-to-text/data.d.cts +4 -0
- package/dist/tasks/video-text-to-text/data.d.cts.map +1 -0
- package/dist/tasks/video-text-to-text/data.d.ts +4 -0
- package/dist/tasks/video-text-to-text/data.d.ts.map +1 -0
- package/dist/tasks/visual-question-answering/data.d.cts +4 -0
- package/dist/tasks/visual-question-answering/data.d.cts.map +1 -0
- package/dist/tasks/visual-question-answering/data.d.ts +4 -0
- package/dist/tasks/visual-question-answering/data.d.ts.map +1 -0
- package/dist/tasks/visual-question-answering/inference.d.cts +63 -0
- package/dist/tasks/visual-question-answering/inference.d.cts.map +1 -0
- package/dist/tasks/visual-question-answering/inference.d.ts +63 -0
- package/dist/tasks/visual-question-answering/inference.d.ts.map +1 -0
- package/dist/tasks/zero-shot-classification/data.d.cts +4 -0
- package/dist/tasks/zero-shot-classification/data.d.cts.map +1 -0
- package/dist/tasks/zero-shot-classification/data.d.ts +4 -0
- package/dist/tasks/zero-shot-classification/data.d.ts.map +1 -0
- package/dist/tasks/zero-shot-classification/inference.d.cts +68 -0
- package/dist/tasks/zero-shot-classification/inference.d.cts.map +1 -0
- package/dist/tasks/zero-shot-classification/inference.d.ts +68 -0
- package/dist/tasks/zero-shot-classification/inference.d.ts.map +1 -0
- package/dist/tasks/zero-shot-image-classification/data.d.cts +4 -0
- package/dist/tasks/zero-shot-image-classification/data.d.cts.map +1 -0
- package/dist/tasks/zero-shot-image-classification/data.d.ts +4 -0
- package/dist/tasks/zero-shot-image-classification/data.d.ts.map +1 -0
- package/dist/tasks/zero-shot-image-classification/inference.d.cts +62 -0
- package/dist/tasks/zero-shot-image-classification/inference.d.cts.map +1 -0
- package/dist/tasks/zero-shot-image-classification/inference.d.ts +62 -0
- package/dist/tasks/zero-shot-image-classification/inference.d.ts.map +1 -0
- package/dist/tasks/zero-shot-object-detection/data.d.cts +4 -0
- package/dist/tasks/zero-shot-object-detection/data.d.cts.map +1 -0
- package/dist/tasks/zero-shot-object-detection/data.d.ts +4 -0
- package/dist/tasks/zero-shot-object-detection/data.d.ts.map +1 -0
- package/dist/tasks/zero-shot-object-detection/inference.d.cts +67 -0
- package/dist/tasks/zero-shot-object-detection/inference.d.cts.map +1 -0
- package/dist/tasks/zero-shot-object-detection/inference.d.ts +67 -0
- package/dist/tasks/zero-shot-object-detection/inference.d.ts.map +1 -0
- package/dist/tokenizer-data.d.cts +26 -0
- package/dist/tokenizer-data.d.cts.map +1 -0
- package/dist/tokenizer-data.d.ts +26 -0
- package/dist/tokenizer-data.d.ts.map +1 -0
- package/dist/widget-example.d.cts +83 -0
- package/dist/widget-example.d.cts.map +1 -0
- package/dist/widget-example.d.ts +83 -0
- package/dist/widget-example.d.ts.map +1 -0
- package/package.json +5 -2
- package/tsconfig.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC9E,cAAc,SAAS,CAAC;AACxB,OAAO,EACN,aAAa,EACb,cAAc,EACd,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,UAAU,EACV,eAAe,EACf,aAAa,EACb,kBAAkB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,8BAA8B,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|
+
* Mapping from library name to its supported tasks.
|
|
5
|
+
* Inference API (serverless) should be disabled for all other (library, task) pairs beyond this mapping.
|
|
6
|
+
* This mapping is partially generated automatically by "python-api-export-tasks" action in
|
|
7
|
+
* huggingface/api-inference-community repo upon merge. For transformers, the mapping is manually
|
|
8
|
+
* based on api-inference (hf_types.rs).
|
|
9
|
+
*/
|
|
10
|
+
export declare const LIBRARY_TASK_MAPPING: Partial<Record<ModelLibraryKey, PipelineType[]>>;
|
|
11
|
+
//# sourceMappingURL=library-to-tasks.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-to-tasks.d.cts","sourceRoot":"","sources":["../src/library-to-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,YAAY,EAAE,CAAC,CAiEjF,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ModelLibraryKey } from "./model-libraries";
|
|
2
|
+
import type { PipelineType } from "./pipelines";
|
|
3
|
+
/**
|
|
4
|
+
* Mapping from library name to its supported tasks.
|
|
5
|
+
* Inference API (serverless) should be disabled for all other (library, task) pairs beyond this mapping.
|
|
6
|
+
* This mapping is partially generated automatically by "python-api-export-tasks" action in
|
|
7
|
+
* huggingface/api-inference-community repo upon merge. For transformers, the mapping is manually
|
|
8
|
+
* based on api-inference (hf_types.rs).
|
|
9
|
+
*/
|
|
10
|
+
export declare const LIBRARY_TASK_MAPPING: Partial<Record<ModelLibraryKey, PipelineType[]>>;
|
|
11
|
+
//# sourceMappingURL=library-to-tasks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-to-tasks.d.ts","sourceRoot":"","sources":["../src/library-to-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,YAAY,EAAE,CAAC,CAiEjF,CAAC"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import type { ModelData } from "./model-data";
|
|
2
|
+
import type { PipelineType } from "./pipelines";
|
|
3
|
+
export interface LocalAppSnippet {
|
|
4
|
+
/**
|
|
5
|
+
* Title of the snippet
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Optional setup guide
|
|
10
|
+
*/
|
|
11
|
+
setup?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Content (or command) to be run
|
|
14
|
+
*/
|
|
15
|
+
content: string | string[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Elements configurable by a local app.
|
|
19
|
+
*/
|
|
20
|
+
export type LocalApp = {
|
|
21
|
+
/**
|
|
22
|
+
* Name that appears in buttons
|
|
23
|
+
*/
|
|
24
|
+
prettyLabel: string;
|
|
25
|
+
/**
|
|
26
|
+
* Link to get more info about a local app (website etc)
|
|
27
|
+
*/
|
|
28
|
+
docsUrl: string;
|
|
29
|
+
/**
|
|
30
|
+
* main category of app
|
|
31
|
+
*/
|
|
32
|
+
mainTask: PipelineType;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to display a pill "macOS-only"
|
|
35
|
+
*/
|
|
36
|
+
macOSOnly?: boolean;
|
|
37
|
+
comingSoon?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* IMPORTANT: function to figure out whether to display the button on a model page's main "Use this model" dropdown.
|
|
40
|
+
*/
|
|
41
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
42
|
+
} & ({
|
|
43
|
+
/**
|
|
44
|
+
* If the app supports deeplink, URL to open.
|
|
45
|
+
*/
|
|
46
|
+
deeplink: (model: ModelData, filepath?: string) => URL;
|
|
47
|
+
} | {
|
|
48
|
+
/**
|
|
49
|
+
* And if not (mostly llama.cpp), snippet to copy/paste in your terminal
|
|
50
|
+
* Support the placeholder {{GGUF_FILE}} that will be replaced by the gguf file path or the list of available files.
|
|
51
|
+
* Support the placeholder {{OLLAMA_TAG}} that will be replaced by the list of available quant tags or will be removed if there are no multiple quant files in a same repo.
|
|
52
|
+
*/
|
|
53
|
+
snippet: (model: ModelData, filepath?: string) => string | string[] | LocalAppSnippet | LocalAppSnippet[];
|
|
54
|
+
});
|
|
55
|
+
declare function isTgiModel(model: ModelData): boolean;
|
|
56
|
+
declare function isLlamaCppGgufModel(model: ModelData): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Add your new local app here.
|
|
59
|
+
*
|
|
60
|
+
* This is open to new suggestions and awesome upcoming apps.
|
|
61
|
+
*
|
|
62
|
+
* /!\ IMPORTANT
|
|
63
|
+
*
|
|
64
|
+
* If possible, you need to support deeplinks and be as cross-platform as possible.
|
|
65
|
+
*
|
|
66
|
+
* Ping the HF team if we can help with anything!
|
|
67
|
+
*/
|
|
68
|
+
export declare const LOCAL_APPS: {
|
|
69
|
+
"llama.cpp": {
|
|
70
|
+
prettyLabel: string;
|
|
71
|
+
docsUrl: string;
|
|
72
|
+
mainTask: "text-generation";
|
|
73
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
74
|
+
snippet: (model: ModelData, filepath?: string) => LocalAppSnippet[];
|
|
75
|
+
};
|
|
76
|
+
"node-llama-cpp": {
|
|
77
|
+
prettyLabel: string;
|
|
78
|
+
docsUrl: string;
|
|
79
|
+
mainTask: "text-generation";
|
|
80
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
81
|
+
snippet: (model: ModelData, filepath?: string) => LocalAppSnippet[];
|
|
82
|
+
};
|
|
83
|
+
vllm: {
|
|
84
|
+
prettyLabel: string;
|
|
85
|
+
docsUrl: string;
|
|
86
|
+
mainTask: "text-generation";
|
|
87
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
88
|
+
snippet: (model: ModelData) => LocalAppSnippet[];
|
|
89
|
+
};
|
|
90
|
+
tgi: {
|
|
91
|
+
prettyLabel: string;
|
|
92
|
+
docsUrl: string;
|
|
93
|
+
mainTask: "text-generation";
|
|
94
|
+
displayOnModelPage: typeof isTgiModel;
|
|
95
|
+
snippet: (model: ModelData) => LocalAppSnippet[];
|
|
96
|
+
};
|
|
97
|
+
lmstudio: {
|
|
98
|
+
prettyLabel: string;
|
|
99
|
+
docsUrl: string;
|
|
100
|
+
mainTask: "text-generation";
|
|
101
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
102
|
+
deeplink: (model: ModelData, filepath: string | undefined) => URL;
|
|
103
|
+
};
|
|
104
|
+
localai: {
|
|
105
|
+
prettyLabel: string;
|
|
106
|
+
docsUrl: string;
|
|
107
|
+
mainTask: "text-generation";
|
|
108
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
109
|
+
snippet: (model: ModelData, filepath?: string) => LocalAppSnippet[];
|
|
110
|
+
};
|
|
111
|
+
jan: {
|
|
112
|
+
prettyLabel: string;
|
|
113
|
+
docsUrl: string;
|
|
114
|
+
mainTask: "text-generation";
|
|
115
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
116
|
+
deeplink: (model: ModelData) => URL;
|
|
117
|
+
};
|
|
118
|
+
backyard: {
|
|
119
|
+
prettyLabel: string;
|
|
120
|
+
docsUrl: string;
|
|
121
|
+
mainTask: "text-generation";
|
|
122
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
123
|
+
deeplink: (model: ModelData) => URL;
|
|
124
|
+
};
|
|
125
|
+
sanctum: {
|
|
126
|
+
prettyLabel: string;
|
|
127
|
+
docsUrl: string;
|
|
128
|
+
mainTask: "text-generation";
|
|
129
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
130
|
+
deeplink: (model: ModelData) => URL;
|
|
131
|
+
};
|
|
132
|
+
jellybox: {
|
|
133
|
+
prettyLabel: string;
|
|
134
|
+
docsUrl: string;
|
|
135
|
+
mainTask: "text-generation";
|
|
136
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
137
|
+
deeplink: (model: ModelData) => URL;
|
|
138
|
+
};
|
|
139
|
+
msty: {
|
|
140
|
+
prettyLabel: string;
|
|
141
|
+
docsUrl: string;
|
|
142
|
+
mainTask: "text-generation";
|
|
143
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
144
|
+
deeplink: (model: ModelData) => URL;
|
|
145
|
+
};
|
|
146
|
+
recursechat: {
|
|
147
|
+
prettyLabel: string;
|
|
148
|
+
docsUrl: string;
|
|
149
|
+
mainTask: "text-generation";
|
|
150
|
+
macOSOnly: true;
|
|
151
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
152
|
+
deeplink: (model: ModelData) => URL;
|
|
153
|
+
};
|
|
154
|
+
drawthings: {
|
|
155
|
+
prettyLabel: string;
|
|
156
|
+
docsUrl: string;
|
|
157
|
+
mainTask: "text-to-image";
|
|
158
|
+
macOSOnly: true;
|
|
159
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
160
|
+
deeplink: (model: ModelData) => URL;
|
|
161
|
+
};
|
|
162
|
+
diffusionbee: {
|
|
163
|
+
prettyLabel: string;
|
|
164
|
+
docsUrl: string;
|
|
165
|
+
mainTask: "text-to-image";
|
|
166
|
+
macOSOnly: true;
|
|
167
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
168
|
+
deeplink: (model: ModelData) => URL;
|
|
169
|
+
};
|
|
170
|
+
joyfusion: {
|
|
171
|
+
prettyLabel: string;
|
|
172
|
+
docsUrl: string;
|
|
173
|
+
mainTask: "text-to-image";
|
|
174
|
+
macOSOnly: true;
|
|
175
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
176
|
+
deeplink: (model: ModelData) => URL;
|
|
177
|
+
};
|
|
178
|
+
invoke: {
|
|
179
|
+
prettyLabel: string;
|
|
180
|
+
docsUrl: string;
|
|
181
|
+
mainTask: "text-to-image";
|
|
182
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
183
|
+
deeplink: (model: ModelData) => URL;
|
|
184
|
+
};
|
|
185
|
+
ollama: {
|
|
186
|
+
prettyLabel: string;
|
|
187
|
+
docsUrl: string;
|
|
188
|
+
mainTask: "text-generation";
|
|
189
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
190
|
+
snippet: (model: ModelData, filepath?: string) => string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
export type LocalAppKey = keyof typeof LOCAL_APPS;
|
|
194
|
+
export {};
|
|
195
|
+
//# sourceMappingURL=local-apps.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-apps.d.cts","sourceRoot":"","sources":["../src/local-apps.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,kBAAkB,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC;CAClD,GAAG,CACD;IACA;;OAEG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,GAAG,CAAC;CACtD,GACD;IACA;;;;OAIG;IACH,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,EAAE,GAAG,eAAe,GAAG,eAAe,EAAE,CAAC;CACzG,CACH,CAAC;AAqBF,iBAAS,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAE7C;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,SAAS,WAE5C;AA+JD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU;;;;;;yBApKS,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;yBAqCzC,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;oCAkJzD,SAAS;yBAjGX,SAAS,KAAG,eAAe,EAAE;;;;;;;yBAsC9B,SAAS,KAAG,eAAe,EAAE;;;;;;;;;;;;;;yBA7DzB,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBATjD,SAAS,aAAa,MAAM,KAAG,MAAM;;CAsQ/B,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import type { ModelData } from "./model-data";
|
|
2
|
+
import type { PipelineType } from "./pipelines";
|
|
3
|
+
export interface LocalAppSnippet {
|
|
4
|
+
/**
|
|
5
|
+
* Title of the snippet
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Optional setup guide
|
|
10
|
+
*/
|
|
11
|
+
setup?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Content (or command) to be run
|
|
14
|
+
*/
|
|
15
|
+
content: string | string[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Elements configurable by a local app.
|
|
19
|
+
*/
|
|
20
|
+
export type LocalApp = {
|
|
21
|
+
/**
|
|
22
|
+
* Name that appears in buttons
|
|
23
|
+
*/
|
|
24
|
+
prettyLabel: string;
|
|
25
|
+
/**
|
|
26
|
+
* Link to get more info about a local app (website etc)
|
|
27
|
+
*/
|
|
28
|
+
docsUrl: string;
|
|
29
|
+
/**
|
|
30
|
+
* main category of app
|
|
31
|
+
*/
|
|
32
|
+
mainTask: PipelineType;
|
|
33
|
+
/**
|
|
34
|
+
* Whether to display a pill "macOS-only"
|
|
35
|
+
*/
|
|
36
|
+
macOSOnly?: boolean;
|
|
37
|
+
comingSoon?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* IMPORTANT: function to figure out whether to display the button on a model page's main "Use this model" dropdown.
|
|
40
|
+
*/
|
|
41
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
42
|
+
} & ({
|
|
43
|
+
/**
|
|
44
|
+
* If the app supports deeplink, URL to open.
|
|
45
|
+
*/
|
|
46
|
+
deeplink: (model: ModelData, filepath?: string) => URL;
|
|
47
|
+
} | {
|
|
48
|
+
/**
|
|
49
|
+
* And if not (mostly llama.cpp), snippet to copy/paste in your terminal
|
|
50
|
+
* Support the placeholder {{GGUF_FILE}} that will be replaced by the gguf file path or the list of available files.
|
|
51
|
+
* Support the placeholder {{OLLAMA_TAG}} that will be replaced by the list of available quant tags or will be removed if there are no multiple quant files in a same repo.
|
|
52
|
+
*/
|
|
53
|
+
snippet: (model: ModelData, filepath?: string) => string | string[] | LocalAppSnippet | LocalAppSnippet[];
|
|
54
|
+
});
|
|
55
|
+
declare function isTgiModel(model: ModelData): boolean;
|
|
56
|
+
declare function isLlamaCppGgufModel(model: ModelData): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Add your new local app here.
|
|
59
|
+
*
|
|
60
|
+
* This is open to new suggestions and awesome upcoming apps.
|
|
61
|
+
*
|
|
62
|
+
* /!\ IMPORTANT
|
|
63
|
+
*
|
|
64
|
+
* If possible, you need to support deeplinks and be as cross-platform as possible.
|
|
65
|
+
*
|
|
66
|
+
* Ping the HF team if we can help with anything!
|
|
67
|
+
*/
|
|
68
|
+
export declare const LOCAL_APPS: {
|
|
69
|
+
"llama.cpp": {
|
|
70
|
+
prettyLabel: string;
|
|
71
|
+
docsUrl: string;
|
|
72
|
+
mainTask: "text-generation";
|
|
73
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
74
|
+
snippet: (model: ModelData, filepath?: string) => LocalAppSnippet[];
|
|
75
|
+
};
|
|
76
|
+
"node-llama-cpp": {
|
|
77
|
+
prettyLabel: string;
|
|
78
|
+
docsUrl: string;
|
|
79
|
+
mainTask: "text-generation";
|
|
80
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
81
|
+
snippet: (model: ModelData, filepath?: string) => LocalAppSnippet[];
|
|
82
|
+
};
|
|
83
|
+
vllm: {
|
|
84
|
+
prettyLabel: string;
|
|
85
|
+
docsUrl: string;
|
|
86
|
+
mainTask: "text-generation";
|
|
87
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
88
|
+
snippet: (model: ModelData) => LocalAppSnippet[];
|
|
89
|
+
};
|
|
90
|
+
tgi: {
|
|
91
|
+
prettyLabel: string;
|
|
92
|
+
docsUrl: string;
|
|
93
|
+
mainTask: "text-generation";
|
|
94
|
+
displayOnModelPage: typeof isTgiModel;
|
|
95
|
+
snippet: (model: ModelData) => LocalAppSnippet[];
|
|
96
|
+
};
|
|
97
|
+
lmstudio: {
|
|
98
|
+
prettyLabel: string;
|
|
99
|
+
docsUrl: string;
|
|
100
|
+
mainTask: "text-generation";
|
|
101
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
102
|
+
deeplink: (model: ModelData, filepath: string | undefined) => URL;
|
|
103
|
+
};
|
|
104
|
+
localai: {
|
|
105
|
+
prettyLabel: string;
|
|
106
|
+
docsUrl: string;
|
|
107
|
+
mainTask: "text-generation";
|
|
108
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
109
|
+
snippet: (model: ModelData, filepath?: string) => LocalAppSnippet[];
|
|
110
|
+
};
|
|
111
|
+
jan: {
|
|
112
|
+
prettyLabel: string;
|
|
113
|
+
docsUrl: string;
|
|
114
|
+
mainTask: "text-generation";
|
|
115
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
116
|
+
deeplink: (model: ModelData) => URL;
|
|
117
|
+
};
|
|
118
|
+
backyard: {
|
|
119
|
+
prettyLabel: string;
|
|
120
|
+
docsUrl: string;
|
|
121
|
+
mainTask: "text-generation";
|
|
122
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
123
|
+
deeplink: (model: ModelData) => URL;
|
|
124
|
+
};
|
|
125
|
+
sanctum: {
|
|
126
|
+
prettyLabel: string;
|
|
127
|
+
docsUrl: string;
|
|
128
|
+
mainTask: "text-generation";
|
|
129
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
130
|
+
deeplink: (model: ModelData) => URL;
|
|
131
|
+
};
|
|
132
|
+
jellybox: {
|
|
133
|
+
prettyLabel: string;
|
|
134
|
+
docsUrl: string;
|
|
135
|
+
mainTask: "text-generation";
|
|
136
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
137
|
+
deeplink: (model: ModelData) => URL;
|
|
138
|
+
};
|
|
139
|
+
msty: {
|
|
140
|
+
prettyLabel: string;
|
|
141
|
+
docsUrl: string;
|
|
142
|
+
mainTask: "text-generation";
|
|
143
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
144
|
+
deeplink: (model: ModelData) => URL;
|
|
145
|
+
};
|
|
146
|
+
recursechat: {
|
|
147
|
+
prettyLabel: string;
|
|
148
|
+
docsUrl: string;
|
|
149
|
+
mainTask: "text-generation";
|
|
150
|
+
macOSOnly: true;
|
|
151
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
152
|
+
deeplink: (model: ModelData) => URL;
|
|
153
|
+
};
|
|
154
|
+
drawthings: {
|
|
155
|
+
prettyLabel: string;
|
|
156
|
+
docsUrl: string;
|
|
157
|
+
mainTask: "text-to-image";
|
|
158
|
+
macOSOnly: true;
|
|
159
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
160
|
+
deeplink: (model: ModelData) => URL;
|
|
161
|
+
};
|
|
162
|
+
diffusionbee: {
|
|
163
|
+
prettyLabel: string;
|
|
164
|
+
docsUrl: string;
|
|
165
|
+
mainTask: "text-to-image";
|
|
166
|
+
macOSOnly: true;
|
|
167
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
168
|
+
deeplink: (model: ModelData) => URL;
|
|
169
|
+
};
|
|
170
|
+
joyfusion: {
|
|
171
|
+
prettyLabel: string;
|
|
172
|
+
docsUrl: string;
|
|
173
|
+
mainTask: "text-to-image";
|
|
174
|
+
macOSOnly: true;
|
|
175
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
176
|
+
deeplink: (model: ModelData) => URL;
|
|
177
|
+
};
|
|
178
|
+
invoke: {
|
|
179
|
+
prettyLabel: string;
|
|
180
|
+
docsUrl: string;
|
|
181
|
+
mainTask: "text-to-image";
|
|
182
|
+
displayOnModelPage: (model: ModelData) => boolean;
|
|
183
|
+
deeplink: (model: ModelData) => URL;
|
|
184
|
+
};
|
|
185
|
+
ollama: {
|
|
186
|
+
prettyLabel: string;
|
|
187
|
+
docsUrl: string;
|
|
188
|
+
mainTask: "text-generation";
|
|
189
|
+
displayOnModelPage: typeof isLlamaCppGgufModel;
|
|
190
|
+
snippet: (model: ModelData, filepath?: string) => string;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
export type LocalAppKey = keyof typeof LOCAL_APPS;
|
|
194
|
+
export {};
|
|
195
|
+
//# sourceMappingURL=local-apps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-apps.d.ts","sourceRo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kJzD,SAAS;yBAjGX,SAAS,KAAG,eAAe,EAAE;;;;;;;yBAsC9B,SAAS,KAAG,eAAe,EAAE;;;;;;;;;;;;;;yBA7DzB,SAAS,aAAa,MAAM,KAAG,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBATjD,SAAS,aAAa,MAAM,KAAG,MAAM;;CAsQ/B,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { PipelineType } from "./pipelines";
|
|
2
|
+
import type { WidgetExample } from "./widget-example";
|
|
3
|
+
import type { TokenizerConfig } from "./tokenizer-data";
|
|
4
|
+
/**
|
|
5
|
+
* Public interface for model metadata
|
|
6
|
+
*/
|
|
7
|
+
export interface ModelData {
|
|
8
|
+
/**
|
|
9
|
+
* id of model (e.g. 'user/repo_name')
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not to enable inference widget for this model
|
|
14
|
+
* TODO(type it)
|
|
15
|
+
*/
|
|
16
|
+
inference: string;
|
|
17
|
+
/**
|
|
18
|
+
* is this model private?
|
|
19
|
+
*/
|
|
20
|
+
private?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* this dictionary has useful information about the model configuration
|
|
23
|
+
*/
|
|
24
|
+
config?: {
|
|
25
|
+
architectures?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* Dict of AutoModel or Auto… class name to local import path in the repo
|
|
28
|
+
*/
|
|
29
|
+
auto_map?: {
|
|
30
|
+
/**
|
|
31
|
+
* String Property
|
|
32
|
+
*/
|
|
33
|
+
[x: string]: string;
|
|
34
|
+
};
|
|
35
|
+
model_type?: string;
|
|
36
|
+
quantization_config?: {
|
|
37
|
+
bits?: number;
|
|
38
|
+
load_in_4bit?: boolean;
|
|
39
|
+
load_in_8bit?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* awq, gptq, aqlm, marlin, … Used by vLLM
|
|
42
|
+
*/
|
|
43
|
+
quant_method?: string;
|
|
44
|
+
};
|
|
45
|
+
tokenizer_config?: TokenizerConfig;
|
|
46
|
+
adapter_transformers?: {
|
|
47
|
+
model_name?: string;
|
|
48
|
+
model_class?: string;
|
|
49
|
+
};
|
|
50
|
+
diffusers?: {
|
|
51
|
+
_class_name?: string;
|
|
52
|
+
};
|
|
53
|
+
sklearn?: {
|
|
54
|
+
model?: {
|
|
55
|
+
file?: string;
|
|
56
|
+
};
|
|
57
|
+
model_format?: string;
|
|
58
|
+
};
|
|
59
|
+
speechbrain?: {
|
|
60
|
+
speechbrain_interface?: string;
|
|
61
|
+
vocoder_interface?: string;
|
|
62
|
+
vocoder_model_id?: string;
|
|
63
|
+
};
|
|
64
|
+
peft?: {
|
|
65
|
+
base_model_name_or_path?: string;
|
|
66
|
+
task_type?: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* all the model tags
|
|
71
|
+
*/
|
|
72
|
+
tags: string[];
|
|
73
|
+
/**
|
|
74
|
+
* transformers-specific info to display in the code sample.
|
|
75
|
+
*/
|
|
76
|
+
transformersInfo?: TransformersInfo;
|
|
77
|
+
/**
|
|
78
|
+
* Pipeline type
|
|
79
|
+
*/
|
|
80
|
+
pipeline_tag?: PipelineType | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* for relevant models, get mask token
|
|
83
|
+
*/
|
|
84
|
+
mask_token?: string | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* Example data that will be fed into the widget.
|
|
87
|
+
*
|
|
88
|
+
* can be set in the model card metadata (under `widget`),
|
|
89
|
+
* or by default in `DefaultWidget.ts`
|
|
90
|
+
*/
|
|
91
|
+
widgetData?: WidgetExample[] | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Parameters that will be used by the widget when calling Inference API (serverless)
|
|
94
|
+
* https://huggingface.co/docs/api-inference/detailed_parameters
|
|
95
|
+
*
|
|
96
|
+
* can be set in the model card metadata (under `inference/parameters`)
|
|
97
|
+
* Example:
|
|
98
|
+
* inference:
|
|
99
|
+
* parameters:
|
|
100
|
+
* key: val
|
|
101
|
+
*/
|
|
102
|
+
cardData?: {
|
|
103
|
+
inference?: boolean | {
|
|
104
|
+
parameters?: Record<string, unknown>;
|
|
105
|
+
};
|
|
106
|
+
base_model?: string | string[];
|
|
107
|
+
instance_prompt?: string | null;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Library name
|
|
111
|
+
* Example: transformers, SpeechBrain, Stanza, etc.
|
|
112
|
+
*/
|
|
113
|
+
library_name?: string;
|
|
114
|
+
safetensors?: {
|
|
115
|
+
parameters: Record<string, number>;
|
|
116
|
+
total: number;
|
|
117
|
+
sharded: boolean;
|
|
118
|
+
};
|
|
119
|
+
gguf?: {
|
|
120
|
+
total: number;
|
|
121
|
+
architecture?: string;
|
|
122
|
+
context_length?: number;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* transformers-specific info to display in the code sample.
|
|
127
|
+
*/
|
|
128
|
+
export interface TransformersInfo {
|
|
129
|
+
/**
|
|
130
|
+
* e.g. AutoModelForSequenceClassification
|
|
131
|
+
*/
|
|
132
|
+
auto_model: string;
|
|
133
|
+
/**
|
|
134
|
+
* if set in config.json's auto_map
|
|
135
|
+
*/
|
|
136
|
+
custom_class?: string;
|
|
137
|
+
/**
|
|
138
|
+
* e.g. text-classification
|
|
139
|
+
*/
|
|
140
|
+
pipeline_tag?: PipelineType;
|
|
141
|
+
/**
|
|
142
|
+
* e.g. "AutoTokenizer" | "AutoFeatureExtractor" | "AutoProcessor"
|
|
143
|
+
*/
|
|
144
|
+
processor?: string;
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=model-data.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-data.d.cts","sourceRoot":"","s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