feat: support safetensors index loading (#1769)

This commit is contained in:
leejet authored and GitHub committed 2026-07-10 23:23:21 +08:00
1 parent ead6bf521b
commit 1b042838d9
4 files changed
+84

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ protected:
bool init_from_gguf_file(const std::string& file_path, const std::string& prefix = "");
bool init_from_safetensors_file(const std::string& file_path, const std::string& prefix = "");
bool init_from_safetensors_index_file(const std::string& file_path, const std::string& prefix = "");
bool init_from_torch_zip_file(const std::string& file_path, const std::string& prefix = "");
bool init_from_torch_legacy_file(const std::string& file_path, const std::string& prefix = "");
bool init_from_diffusers_file(const std::string& file_path, const std::string& prefix = "");