mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-06 02:48:57 +01:00
gguf : single pass for writing tensors + refactoring writer
This commit is contained in:
parent
f31e9230ad
commit
dce07c3121
@ -267,7 +267,7 @@ for part_name in part_names:
|
|||||||
|
|
||||||
data = data.astype(data_dtype)
|
data = data.astype(data_dtype)
|
||||||
|
|
||||||
print(name + ", n_dims = " + n_dims + ", " + str(old_dtype) + " --> " + str(data.dtype))
|
print(name + ", n_dims = " + str(n_dims) + ", " + str(old_dtype) + " --> " + str(data.dtype))
|
||||||
|
|
||||||
gguf_writer.add_tensor(name, data)
|
gguf_writer.add_tensor(name, data)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user