Huggingface.js documentation

Interface: ParallelDownloadOptions

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

Interface: ParallelDownloadOptions

Propriedades

controllerTickMs

• Optional controllerTickMs: number

Intervalo de tick do controlador de concorrência, para testes e benchmarks.

Definido em

packages/hub/src/utils/XetBlob.ts:145


maxConcurrency

• Optional maxConcurrency: number

Limite para o número de solicitações xorb concorrentes ajustadas automaticamente.

Default

8

Definido em

packages/hub/src/utils/XetBlob.ts:131


maxInFlightBytes

• Optional maxInFlightBytes: number

Orçamento de bytes baixados, mas ainda não consumidos.

Default

derived from the file's reconstruction: 3x the largest xorb fetch, clamped to [64MB, 256MB]

Definido em

packages/hub/src/utils/XetBlob.ts:137


onStat

• Optional onStat: (stat: Record<string, unknown>) => void

Callback de instrumentação para testes e benchmarks, chamado uma vez por download.

Declaração de tipo

▸ (stat): void

Parâmetros
NomeTipo
statRecord<string, unknown>
Retorna

void

Definido em

packages/hub/src/utils/XetBlob.ts:141

Update on GitHub