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

Propriétés

controllerTickMs

• Optional controllerTickMs : number

Intervalle de tick du contrôleur de concurrence, pour les tests et les benchmarks.

Défini dans

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


maxConcurrency

• Optional maxConcurrency : number

Plafond pour le nombre de requêtes xorb concurrentes ajusté automatiquement.

Default

8

Défini dans

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


maxInFlightBytes

• Optional maxInFlightBytes : number

Budget d'octets téléchargés mais pas encore consommés.

Default

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

Défini dans

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


onStat

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

Callback d'instrumentation pour les tests et les benchmarks, appelé une fois par téléchargement.

Déclaration de type

▸ (stat): void

Paramètres
NomType
statRecord<string, unknown>
Retourne

void

Défini dans

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

Update on GitHub