We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8965e51 commit 572f102Copy full SHA for 572f102
1 file changed
extension/llm/export/gguf.py
@@ -380,6 +380,8 @@ def iter_gguf(
380
yield tensor.name, flat.view(torch.float16).reshape(shape).to(
381
torch.bfloat16
382
)
383
+ elif tensor.tensor_type == GGMLQuantizationType.BF16:
384
+ yield tensor.name, flat.view(torch.bfloat16).reshape(shape).clone()
385
else:
386
raise ValueError(f"Unsupported GGUF quant type: {tensor.tensor_type}")
387
0 commit comments