Huggingface.js documentation
インターフェース: SafetensorsIndexJson
@huggingface/inference
Inference Client を使用API リファレンス
クラス
HfInferenceInferenceClientInferenceClientEndpointInferenceClientErrorInferenceClientHubApiErrorInferenceClientInputErrorInferenceClientProviderApiErrorInferenceClientProviderOutputErrorInferenceClientRoutingError
インターフェース
AudioToAudioOutputAudioToAudioOutputElemBaseArgsBodyParamsHeaderParamsInferenceProviderMappingEntryLoggerオプション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
メタデータ
• Optional メタデータ: { total_parameters?: string | number } & Record<string, string>
定義場所
packages/hub/src/lib/parse-safetensors-metadata.ts:331
weight _ map
• Optional weight_map: Record<string, string>
テンソル名からシャードファイル名へのマッピング。
インデックスがMAX_WEIGHT_MAP_ENTRIESを超える数のテンソルを保持する場合に省略されます。そのようなインデックスはストリーミングモードで消費され、マップはマテリアライズされないため、メモリは有界に保たれます(parse-safetensors-index.tsを参照)。この閾値を下回るすべてのモデル、つまり以前はパース自体に失敗していた一部の巨大なMoEを除くすべてのモデルには、影響はありません。
シャードのリストのみが必要な場合は、パース結果の代わりにfilepathsを使用してください。
定義場所
packages/hub/src/lib/parse-safetensors-metadata.ts:343
Update on GitHub