Archived
core/format: a torch.save checkpoint beside the safetensors, read as data -- stored zip entries mapped, the pickle run by a weights-only machine that refuses any other global or opcode by name; hfget fetches a .pth that is not the weights again (Fish Audio drama-3's codec)
This commit is contained in:
1 parent
baf6e89ecb
commit
61abb990ab
8 files changed
+1142
-3
No files matched your search
@@ -24,6 +24,7 @@
|
||||
#include "../rad_internal.h"
|
||||
#include "../rad_core.h"
|
||||
#include "safetensors.h"
|
||||
#include "torch_zip.h"
|
||||
#include "../text/gguf.h"
|
||||
|
||||
#include <deque>
|
||||
@@ -187,6 +188,7 @@ private:
|
||||
int open_diffusers();
|
||||
int open_sgm();
|
||||
int add_companions();
|
||||
int add_torch_files();
|
||||
int open_gguf(const std::string& path);
|
||||
void detect_import();
|
||||
|
||||
@@ -195,6 +197,7 @@ private:
|
||||
GgufFile gguf_;
|
||||
MetaOwn meta_;
|
||||
std::vector<std::unique_ptr<SafeTensorsFile>> shards_;
|
||||
std::vector<std::unique_ptr<TorchZipFile>> torch_;
|
||||
std::vector<SrcTensor> tensors_;
|
||||
std::unordered_map<std::string, size_t> index_;
|
||||
std::unordered_map<std::string, size_t> index_shard_; /* name -> shards_ position */
|
||||
|
||||
Reference in new issue
Block a user