Huggingface.js documentation

인터페이스: ParallelDownloadOptions

Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

인터페이스: ParallelDownloadOptions

속성

controllerTickMs

• Optional controllerTickMs: number

테스트 및 벤치마크를 위한 동시성 컨트롤러 틱 간격

정의 위치

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

매개변수
이름유형
statRecord<string, unknown>
반환

void

정의 위치

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

Update on GitHub