Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION to 'python' to address issue #1266
This commit is contained in:
parent
ec49385e2a
commit
9fc130785d
1 changed files with 5 additions and 0 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue