Skip to content

Commit

Permalink
Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION to 'python' to address issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Erland366 committed Nov 12, 2024
1 parent ec49385 commit 9fc1307
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions unsloth/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,11 @@ def save_to_gguf(
# "undergoing some major bug fixes as at 5th of May 2024. This is not an Unsloth issue.\n"\
# "Please be patient - GGUF saving should still work, but might not work as well."
# )

# Fixes this issue
# https://github.com/unslothai/unsloth/issues/1266
os.environ["PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION"] = 'python'

assert(model_dtype == "float16" or model_dtype == "bfloat16")
model_dtype = "f16" if model_dtype == "float16" else "bf16"

Expand Down

0 comments on commit 9fc1307

Please sign in to comment.