Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utils/convert-bitnet-embedding-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def main():
elif args.outtype == "f16":
ftype = 1 # GGML F16
else: # i2_s
ftype = 40 # LLAMA_FTYPE_MOSTLY_I2_S
ftype = 41 # LLAMA_FTYPE_MOSTLY_I2_S

logger.info(f"Converting {dir_model.name} (arch={arch}) to GGUF ({args.outtype})")

Expand Down
2 changes: 1 addition & 1 deletion utils/convert-hf-to-gguf-bitnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def set_gguf_parameters(self):
# Map ggml tensor type to llama ftype for general.file_type metadata
ftype_val = self.ftype
if self.ftype == gguf.GGMLQuantizationType.I2_S:
ftype_val = 40 # LLAMA_FTYPE_MOSTLY_I2_S (matches official model)
ftype_val = 41 # LLAMA_FTYPE_MOSTLY_I2_S
self.gguf_writer.add_file_type(ftype_val)
logger.info(f"gguf: file type = {ftype_val}")

Expand Down