Huggingface.js documentation
インターフェース: CopyProgressEvent
@huggingface/inference
Inference Client を使用API リファレンス
クラス
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
インターフェース
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntryLoggerオプションTextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
モジュール
@huggingface/hub
Hub とのインタラクションAPI リファレンス
クラス
インターフェース
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySource認証情報DatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
インターフェース: CopyProgressEvent
copyFileIter / copyFilesIter / copyFolderIter が生成する進捗イベント。
現在、fileDownloadedのみが出力されます。これは、ダウンロードが必要だったソースファイルごとに1つのイベントが発生します(サーバーサイドでコピーできない、gitで管理されている小さなファイルです)。Xetバックエンドのファイルはサーバーサイドでコピーされるため、イベントは生成されません。
プロパティ
ダウンロード済み
• ダウンロード済み: number
これまでにダウンロードされたファイルの数(このファイルを含む)。
定義場所
packages/hub/src/lib/copy-files.ts:27
イベント
• イベント: "fileDownloaded"
定義場所
packages/hub/src/lib/copy-files.ts:23
path
• path: string
先ほどダウンロードされたファイルのソースパス。
定義場所
packages/hub/src/lib/copy-files.ts:25
合計
• 合計: number
ダウンロードされるファイルの総数。
定義場所
packages/hub/src/lib/copy-files.ts:29
Update on GitHub