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

Fix: Correct torchvision installation order in tt-buda-demos #129

Merged

Conversation

cekim7
Copy link
Contributor

@cekim7 cekim7 commented Dec 6, 2024

Following the installation issue I created now, here is my suggested fix.

This pull request addresses an installation error encountered when installing pybuda on Linux systems, caused by an incorrect installation order of the required wheel files.

Problem:

The previous installation instructions in 1_install_tt_buda.md specified the following order for installing wheel files:

pip install pybuda-.whl tvm-.whl torchvision-.whl

This order led to the following error on Linux (specifically tested on a Linux environment that installs pybuda for the first time):

ERROR: Could not find a version that satisfies the requirement torchvision==0.16.0+fbb4cc5 (from pybuda) (from versions: 0.1.6, 0.1.7, ..., 0.20.1)
ERROR: No matching distribution found for torchvision==0.16.0+fbb4cc5

This error occurs because pybuda depends on a specific version of torchvision provided by Tenstorrent. Installing pybuda before the Tenstorrent-provided torchvision wheel resulted in pip attempting to resolve the dependency from the standard PyPI repository, which does not contain the required version.

Solution:

This pull request corrects the installation order in 1_install_tt_buda.md to:

pip install torchvision-.whl pybuda-.whl tvm-.whl

Installing the Tenstorrent-provided torchvision wheel first ensures that the correct version is available when pybuda is installed, satisfying its dependency.

Testing:

After applying this change, the installation was successfully tested on a Linux environment. The installation now completes without errors.

Changes:

Modified tt-buda-demos/first_5_steps/1_install_tt_buda.md:
Changed the pip install command order from
pybuda-.whl tvm-.whl torchvision-.whl
to
torchvision-.whl pybuda-.whl tvm-.whl.

This simple change resolves the installation issue and ensures a smooth installation experience for all users.

@milank94 milank94 added bug Something isn't working documentation Improvements or additions to documentation labels Dec 6, 2024
@milank94 milank94 requested a review from anirudTT December 6, 2024 11:43
@milank94 milank94 merged commit 824cd7f into tenstorrent:main Dec 7, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix suggested: to correct torchvision installation order in tt-buda-demos
3 participants