Huggingface.js documentation
接口:ParallelDownloadOptions
@huggingface/inference
使用 Inference ClientAPI 参考
类
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
接口:ParallelDownloadOptions
属性
controllerTickMs
• Optional controllerTickMs:number
并发控制器的 tick 间隔,用于测试和基准测试。
定义于
packages/hub/src/utils/XetBlob.ts:145
maxConcurrency
• Optional maxConcurrency:number
自动调优的并发 xorb 请求数的上限。
Default
8定义于
packages/hub/src/utils/XetBlob.ts:131
maxInFlightBytes
• Optional maxInFlightBytes:number
已下载但尚未消耗的字节数预算。
Default
derived from the file's reconstruction: 3x the largest xorb fetch, clamped to [64MB, 256MB]定义于
packages/hub/src/utils/XetBlob.ts:137
onStat
• Optional onStat:(stat: Record<string, unknown>) => void
用于测试和基准测试的仪表回调,每次下载时调用一次。
类型声明
▸ (stat): void
参数
| 名称 | 类型 |
|---|---|
stat | Record<string, unknown> |
返回
void
定义于
packages/hub/src/utils/XetBlob.ts:141
Update on GitHub