Skip to content

Exclude module torch from pyinstaller

FyorDev requested to merge fix/480-remove-torch-build into main

Torch wasn't being built on Mac or Windows because they have a PyInstaller skill issue Linux of course does find it 🐧, and generates a bonker huge executable nearly 3GB instead of 800mb

This change makes it 800mb, and for good measure explicitly excludes it in Windows and Mac too (successfully I hope) Without torch, at runtime you get the warning "None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used."

It works anyway, we don't use Torch features, and BERTopic can cry all it want since it won't even be included in build in a later PR

The Linux installer is currently broken on main but works in the 473-dif-fonts branch This PR can be merged after 473-dif-fonts (which makes changes that happen to fix Linux)

Merge request reports

Loading