Huggingface.js documentation
인터페이스: SafetensorsIndexJson
@huggingface/inference
Inference Client 사용API 참조
클래스
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
인터페이스
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntry로거옵션TextGenerationInputTextGenerationOutputTextGenerationStreamBestOfSequenceTextGenerationStreamDetailsTextGenerationStreamOutputTextGenerationStreamPrefillTokenTextGenerationStreamTokenUrlParams
모듈
@huggingface/hub
Hub와 상호작용하기API 참고
클래스
인터페이스
AuthInfoCachedFileInfoCachedRepoInfoCachedRevisionInfoCommitCopyFileCommitDataCommitDeletedEntryCommitEditFileCommitEditFileParamsCommitFileCommitInfoCommitOutputCopyDestinationCopyFilesEntryCopyProgressEventCopySource자격 증명DatasetEntryFileDownloadInfoOutputHFCacheInfoJobVolumeLfsPathInfoListFileEntryMlxQuantizationConfigModelConfigModelDerivedFieldsModelEntryOAuthResultParallelDownloadOptionsPathInfoQuantizationConfigRangeEditCacheEntryRepoIdSafetensorsIndexJsonSafetensorsShardFileInfoSecurityFileStatusSpaceEntrySpaceResourceConfigSpaceResourceRequirementSpaceRuntimeTensorInfoUserInfoWhoAmIAppWhoAmIOrgWhoAmIUserXetFileInfoXetReadToken
@huggingface/mcp-client
@huggingface/tiny-agents
@huggingface/space-header
@huggingface/gguf
@huggingface/lerobot
@huggingface/usd-web-viewer
인터페이스: SafetensorsIndexJson
속성
dtype
• Optional dtype: string
정의 위치
packages/hub/src/lib/parse-safetensors-metadata.ts:329
metadata
• Optional 메타데이터: { total_parameters?: string | number } & Record<string, string>
정의 위치
packages/hub/src/lib/parse-safetensors-metadata.ts:331
가중치 _ 맵
• Optional weight_map: Record<string, string>
텐서 이름 -> 샤드 파일 이름 매핑.
인덱스가 MAX_WEIGHT_MAP_ENTRIES를 초과하는 수의 텐서를 포함하는 경우 생략됩니다. 이러한 인덱스는 스트리밍 모드에서 소비되며 맵이 물리적으로 생성되지 않으므로 메모리가 제한된 수준으로 유지됩니다(자세한 내용은 parse-safetensors-index.ts 참조). 해당 임계값 이하의 모든 모델, 즉 이전에 파싱 자체가 실패했던 몇몇 거대한 MoE를 제외한 모든 모델에는 영향이 없습니다.
shard 목록만 필요한 경우, 파싱 결과에서 filepaths를 대신 사용하세요.
정의 위치
packages/hub/src/lib/parse-safetensors-metadata.ts:343
Update on GitHub