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

No GPU utilization with fine-tune example 02 #133

Open
zshanggu opened this issue Oct 5, 2024 · 1 comment
Open

No GPU utilization with fine-tune example 02 #133

zshanggu opened this issue Oct 5, 2024 · 1 comment

Comments

@zshanggu
Copy link

zshanggu commented Oct 5, 2024

Hi, I'm using this command to run fine-tune example:

python examples/02_finetune_new_observation_action.py --pretrained_path=hf://rail-berkeley/octo-small-1.5 --data_dir="/home/DATA/example_sim_data/aloha_sim_dataset"  --save_dir="/home/octo/exp/

However, it seems the program doesn't consume any GPU memory-usage (2*4090), and is totally run on CPU.

(I can confirm that my GPU environment is good and it works well with the template fine-tune command

python scripts/finetune.py --config.pretrained_path=hf://rail-berkeley/octo-small-1.5 --config.save_dir="./exp/" --config.batch_size=128

)

Do you know what's the possible reason?

@zshanggu
Copy link
Author

Add below before running:

export XLA_PYTHON_CLIENT_PREALLOCATE=false
export XLA_PYTHON_CLIENT_MEM_FRACTION=.50
export XLA_PYTHON_CLIENT_ALLOCATOR=platform

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