Skip to content

[Bug] "Custom folders" in Linux #6798

Closed

Description

@Dspofu

Note: Please do not remove the questions. Answer beside them.

  1. Did you update? pip install --upgrade unsloth unsloth_zoo | Current Studio code
  2. Colab or Kaggle or local / cloud | Local
  3. Number GPUs used, use nvidia-smi | 1
  4. Which notebook? Please link! | N/A
  5. Which Unsloth version, TRL version, transformers version, PyTorch version? | unsloth 2026.6.9, unsloth_zoo 2026.6.7, trl 0.23.1, transformers 4.57.6, torch 2.10.0+cu130 (CUDA 13.0).
  6. Which trainer? SFTTrainer, GRPOTrainer etc | N/A
Put Minimal code to reproduce error here ###Remove Hugging Face token###
###Please make sure to check formatting properly, edit if needed.###

🦥 You can also ask via our Reddit page: https://reddit.com/r/unsloth/


Bug Description

I have several models stored on external storage devices. When I try to add those locations using the Custom Folder option in the Hub tab, the folders are blocked or cannot be selected, preventing the application from accessing the models.

Steps to Reproduce

  1. Store models on an external storage device.
  2. Open the Hub tab.
  3. Try to add the external directory using Custom Folder.

Actual Behavior

Folders located on external storage devices cannot be selected or accessed through Custom Folder, making those models unavailable.

Image

Activity

  1. changed the title [-][Bug] Please fill in your issue title here.[/-] [+][Bug] "Custom folders" in Linux[/+] on Jul 2, 2026
  2. ramisworld commented on Jul 2, 2026

    @ramisworld
    Contributor

    I think the problem may be that the Custom Folder browser blocks paths outside its current allowlist before they can be added. External drives likely aren’t in that allowlist so the picker can’t reach them.

    I’ll take a look and see if I can reproduce it and open a PR if that’s the issue.

  3. ramisworld commented on Jul 2, 2026

    @ramisworld
    Contributor

    The issue was that Studio blocked all paths under /run, so valid Linux external-drive model folders mounted at /run/media/<user>/<volume>/... were rejected before they could be added. The PR keeps the /run safety block in place but it adds a narrow exception for readable /run/media/<user>/<volume>/... mount paths and updates the folder browser allowlist so Browse can reach those volumes too.

    Waiting on the CI/review now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions