-
Hello, Rustformers now supports GPU support via the After some googling i found the Currently the features section of my
If i debug my package via |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
pip extras can only really be used to install other packages, so you can't use them to build different feature sets. Unfortunately selecting different architectures at least somewhat automatically is still an unsolved problem (torch even uses different index servers for different cuda versions, jax also has index servers and extras). What you could try is to add shim crate for each target architecture (e.g. a |
Beta Was this translation helpful? Give feedback.
-
Ok got it, so basically i have to create multiple CI-Pipelines that build the packages with the desired feature-flags and then upload them to different pypi projects? E.g. something similar to this? |
Beta Was this translation helpful? Give feedback.
Ok after some thinkering i couldn't get the wrapper crates to work. I solved my problem by introducing another build step, which patches the
name
field in thepyproject.toml
file to a value configurable via the environment. This way i have no changes in my "cpu-only" CI pipeline but i can simply change the package name for the "cuda","opencl" and "metal" pipelines by adding another step into the pipeline.