Skip to content

[Bug] I can't seem to pick a GPU to load the models with unsloth studio + diffusiongemma #6320

Closed

Description

@InCogNiTo124

I have a dual (heterogenous) GPU setup. I have gpu 0 for system and gpu 1 (external) for inference.

today I wanted to try out diffusiongemma and it always loads at gpu 0.

things I tried and none of them work:

  1. running CUDA_VISIBLE_DEVICES=1 unsloth studio
  2. hardcoding os.environ["CUDA_VISIBLE_DEVICES"] = "1" in `$(which unsloth)"

screenshots:

Image Image Image

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

  1. Did you update? pip install --upgrade unsloth unsloth_zoo

no. I cloned the repo and installed from source locally ./install.sh --local

  1. Colab or Kaggle or local / cloud

local

  1. Number GPUs used, use nvidia-smi
GPU 0: NVIDIA GeForce RTX 3090 Ti (UUID: GPU-7bbfe212-8a83-05c7-411e-1bdb078b5841)
GPU 1: NVIDIA RTX A6000 (UUID: GPU-6509bcea-accb-746e-3b4c-189787df5c43)
  1. Which notebook? Please link!

n/a; unsloth studio

  1. Which Unsloth version, TRL version, transformers version, PyTorch version?

da3f7ac

  1. Which trainer? SFTTrainer, GRPOTrainer etc```pythonPut Minimal code to reproduce error here ###Remove Hugging Face token#####Please make sure to check formatting properly, edit if needed.###

n/a

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

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