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

[torch_xla2] Simplify developer setup steps #6905

Merged
merged 5 commits into from
Apr 24, 2024
Merged

Conversation

will-cromar
Copy link
Collaborator

  • Add optional dependencies for CPU, CUDA, and TPU. Use jax[cuda12] instead of jax[cuda12_pip] since it doesn't require an extra index.
  • Make use of global options in requirements.txts to install the CPU version of torch automatically.
  • Use tensorflow-cpu because it's much smaller
  • Recommend using VSCode to set up virtual env
  • Update package dependencies
  • Update name of test_requirements to match dev-requirements
  • Add ruff tool setup and adjust to be more like yapf settings in main package. ruff check shows 42 errors, so we can start fixing these in future PRs.

Tested locally by deleting my old environment and creating a new one with these instructions.

@will-cromar will-cromar requested a review from qihqi April 9, 2024 22:56
Copy link
Collaborator

@qihqi qihqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is awesome. Thanks!

@qihqi qihqi merged commit 89efd17 into master Apr 24, 2024
5 checks passed
@qihqi qihqi deleted the wcromar/tx2-simplify-setup branch April 24, 2024 15:34
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

Successfully merging this pull request may close these issues.

2 participants