Huggingface.js documentation
Giao diện: RangeEditCacheEntry
@huggingface/inference
Sử dụng Inference ClientTham khảo API
Các lớp
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
Giao diện
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntryLoggerTùy chọnTextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
Các module
@huggingface/hub
Tương tác với HubTham khảo API
Các lớp
Giao diện
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySourceThông tin xác thựcDatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
Giao diện: RangeEditCacheEntry
Thuộc tính
lastTermChunks
• lastTermChunks: { hash: string ; length: number }[]
Các khối (hash + độ dài) của mục cuối
Được định nghĩa trong
packages/hub/src/utils/rangeEdit.ts:29
openSubtree
• openSubtree: null | MerkleHashSubtreeJson
Trạng thái merkle một phần của tất cả các chunk ngoại trừ term cuối cùng
(at_start: true, at_end: false); null khi tệp chỉ có một term.
Được định nghĩa trong
packages/hub/src/utils/rangeEdit.ts:27
size
• size: number
Tổng kích thước tệp tính bằng byte
Được định nghĩa trong
packages/hub/src/utils/rangeEdit.ts:20
điều khoản
• terms: OriginalTerm & { rangeHash: string }[]
Các điều khoản của tệp, theo thứ tự, cùng với các băm phạm vi xác minh của chúng
Được định nghĩa trong
packages/hub/src/utils/rangeEdit.ts:22
Update on GitHub