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

استدعاء مخصص للقياسات (Instrumentation callback) للاختبارات والمعايير، يُستدعى مرة واحدة لكل عملية تنزيل.

إعلان النوع

▸ (stat): void

المعاملات
الاسمالنوع
statRecord<string, unknown>
يعيد

void

معرّف في

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

Update on GitHub