mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-29 03:26:12 +00:00
feat: add converter metadata to GGUF exports
This commit is contained in:
parent
3b12781fac
commit
6768656e8a
1 changed files with 3 additions and 0 deletions
|
|
@ -167,6 +167,9 @@ bool GGUFStreamingWriter::write_metadata(const std::string& file_path,
|
|||
return false;
|
||||
}
|
||||
|
||||
gguf_set_val_str(gguf_ctx_, "converter.name", "stable-diffusion.cpp");
|
||||
gguf_set_val_str(gguf_ctx_, "converter.url", "https://github.com/leejet/stable-diffusion.cpp");
|
||||
|
||||
for (const TensorWritePlan& plan : tensors) {
|
||||
ggml_tensor* tensor = ggml_new_tensor(meta_ctx_, plan.type, plan.n_dims, plan.ne);
|
||||
if (tensor == nullptr) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue