mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-06 02:48:57 +01:00
gguf : write tensors one by one
This commit is contained in:
parent
0c219fb5b5
commit
c861e234f4
3
gguf.py
3
gguf.py
@ -283,6 +283,7 @@ if __name__ == "__main__":
|
||||
tensor2 = np.ones((32,), dtype=np.float32) * 101.0
|
||||
gguf_writer.write_tensor_info("tensor0", tensor1)
|
||||
gguf_writer.write_tensor_info("tensor1", tensor2)
|
||||
gguf_writer.write_tensors()
|
||||
gguf_writer.write_tensor(tensor1)
|
||||
gguf_writer.write_tensor(tensor2)
|
||||
|
||||
gguf_writer.close()
|
||||
|
Loading…
Reference in New Issue
Block a user