Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error during saving model #2029

Open
furryaxw opened this issue Mar 15, 2025 · 2 comments
Open

error during saving model #2029

furryaxw opened this issue Mar 15, 2025 · 2 comments

Comments

@furryaxw
Copy link

log:

Traceback (most recent call last):
  File "D:\AI\unsloth\unsloth_train.py", line 121, in <module>
    model.save_pretrained_merged("model", tokenizer, save_method="merged_16bit", )
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\unsloth\save.py", line 2357, in unsloth_generic_save_pretrained_merged
    unsloth_generic_save(**arguments)
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\unsloth\save.py", line 2304, in unsloth_generic_save
    merge_and_overwrite_lora(
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\unsloth_zoo\saving_utils.py", line 543, in merge_and_overwrite_lora
    file_list = HfFileSystem(token = token).ls(model_name, detail = True)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\huggingface_hub\hf_file_system.py", line 368, in ls
    resolved_path = self.resolve_path(path, revision=revision)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\huggingface_hub\hf_file_system.py", line 229, in resolve_path
    raise NotImplementedError("Access to repositories lists is not implemented.")
NotImplementedError: Access to repositories lists is not implemented.
@furryaxw
Copy link
Author

using conda
Windows11
Python3.11
dependents all newest

@furryaxw
Copy link
Author

furryaxw commented Mar 20, 2025

new log

Traceback (most recent call last):
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\unsloth_zoo\saving_utils.py", line 545, in merge_and_overwrite_lora
    file_list = HfFileSystem(token = token).ls(model_name, detail = True)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\huggingface_hub\hf_file_system.py", line 368, in ls
    resolved_path = self.resolve_path(path, revision=revision)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\huggingface_hub\hf_file_system.py", line 229, in resolve_path
    raise NotImplementedError("Access to repositories lists is not implemented.")
NotImplementedError: Access to repositories lists is not implemented.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\unsloth\save.py", line 2357, in unsloth_generic_save_pretrained_merged
    unsloth_generic_save(**arguments)
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\unsloth\save.py", line 2304, in unsloth_generic_save
    merge_and_overwrite_lora(
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\unsloth_zoo\saving_utils.py", line 549, in merge_and_overwrite_lora
    file_list = HfFileSystem(token = token).ls(model_name, detail = True)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\huggingface_hub\hf_file_system.py", line 368, in ls
    resolved_path = self.resolve_path(path, revision=revision)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\huggingface_hub\hf_file_system.py", line 172, in resolve_path
    path = self._strip_protocol(path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\anaconda3\envs\unsloth_env\Lib\site-packages\fsspec\spec.py", line 198, in _strip_protocol
    if path.startswith(protocol + "://"):
       ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'startswith'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant