[Bugfix] Fix new Llama3.1 GGUF model loading (#7269)
This commit is contained in:
parent
e904576743
commit
8334c39f37
@ -435,6 +435,7 @@ def gguf_quant_weights_iterator(
|
||||
reader = gguf.GGUFReader(gguf_file)
|
||||
|
||||
for tensor in reader.tensors:
|
||||
if tensor.name in gguf_to_hf_name_map:
|
||||
weight_type = tensor.tensor_type
|
||||
name = gguf_to_hf_name_map[tensor.name]
|
||||
|
||||
@ -444,6 +445,7 @@ def gguf_quant_weights_iterator(
|
||||
yield weight_type_name, weight_type
|
||||
|
||||
for tensor in reader.tensors:
|
||||
if tensor.name in gguf_to_hf_name_map:
|
||||
weight = tensor.data
|
||||
weight_type = tensor.tensor_type
|
||||
name = gguf_to_hf_name_map[tensor.name]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user