llm_engineering icon indicating copy to clipboard operation
llm_engineering copied to clipboard

Update to environment.yml for Pytorch

Open steveroberts1980 opened this issue 9 months ago • 1 comments

Pytorch no longer has support for conda packages. Moved pytorch to pip.

steveroberts1980 avatar Mar 27 '25 11:03 steveroberts1980

Hey @steveroberts1980

Hmm are you sure about that? My understanding is that pytorch moved to conda-forge, and you'll see in the environment.yml that conda-forge is the first channel specified.

I just deleted and recreated my conda environment from scratch, and it created fine, including PyTorch.

Sometimes pytorch gives a problem installing on PCs that do not have the Windows 260 character limit constraint removed - see the "gotchas" section at the top of SETUP-PC.md.

I'm reluctant to make a change to something this fundamental in the environment setup.. if conda isn't installing pytorch, then this could affect the versions that it picks for all other dependencies. If I make a fundamental change to packages, this often negatively impacts between 1% and 10% of the students on the course, who experience anomalies with their setup. And with 60,000 people on the course, that means I can get hundreds - or even thousands! - of frustrated emails.

So I'm quite cautious about changes like this! Let me know what you think. Ed

ed-donner avatar Mar 29 '25 12:03 ed-donner