Huggingface.js documentation
Interface: ParallelDownloadOptions
@huggingface/inference
Gunakan Inference ClientReferensi API
Kelas
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
Antarmuka
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntryLoggerOpsiTextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
Modul
@huggingface/hub
Interaksi dengan HubReferensi API
Kelas
Antarmuka
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySourceKredensialDatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
Interface: ParallelDownloadOptions
Properti
controllerTickMs
• Optional controllerTickMs: number
Interval tick pengendali konkurensi, untuk pengujian dan benchmark.
Didefinisikan di
packages/hub/src/utils/XetBlob.ts:145
maxConcurrency
• Optional maxConcurrency: number
Batas atas untuk jumlah permintaan xorb konkuren yang dioptimalkan secara otomatis.
Default
8Didefinisikan di
packages/hub/src/utils/XetBlob.ts:131
maxInFlightBytes
• Optional maxInFlightBytes: number
Anggaran byte yang sudah diunduh tetapi belum dikonsumsi.
Default
derived from the file's reconstruction: 3x the largest xorb fetch, clamped to [64MB, 256MB]Didefinisikan di
packages/hub/src/utils/XetBlob.ts:137
onStat
• Optional onStat: (stat: Record<string, unknown>) => void
Callback instrumen untuk pengujian dan benchmark, dipanggil sekali per unduhan.
Deklarasi tipe
▸ (stat): void
Parameter
| Nama | Tipe |
|---|---|
stat | Record<string, unknown> |
Mengembalikan
void
Didefinisikan di
packages/hub/src/utils/XetBlob.ts:141
Update on GitHub