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

Make openai-triton/pytorch free again (and various fixes) #263048

Merged
merged 19 commits into from
Nov 10, 2023

Conversation

Madouura
Copy link
Contributor

@Madouura Madouura commented Oct 24, 2023

Description of changes

Tracking: #197885
python3Packages.torch: include openai-triton in propagatedBuildInputs by default
openai-triton-llvm: init at 14.0.6-f28c006a5895

This makes openai-triton and torchWithRocm free again.
Please note that to test torch.compile, you will need to use python310Packages because it is not supported with python 3.11 yet. (This is fixed in torch 2.1.0 #259068 pytorch/pytorch#86566)

Fixes: #263144

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@Madouura
Copy link
Contributor Author

Draft until I make sure torchWithCuda is working as well.

@ofborg ofborg bot added the 8.has: package (new) This PR adds a new package label Oct 24, 2023
@Madouura Madouura marked this pull request as ready for review October 24, 2023 04:33
@Madouura Madouura mentioned this pull request Oct 24, 2023
34 tasks
@Madouura
Copy link
Contributor Author

Madouura commented Oct 24, 2023

Need to change torch to propagate pybind11.

/nix/store/iyqd8a1w2cg54xpafi8cygjavlgrnip3-python3.11-torch-2.0.1/lib/python3.11/site-packages/torch/include/torch/csrc/Exceptions.h:14:10: fatal error: pybind11/pybind11.h: No such file or directory
       >    14 | #include <pybind11/pybind11.h>

As well as other minor fixes to packages that depend on torch/triton.

@Madouura
Copy link
Contributor Author

Result of nixpkgs-review pr 263048 run on x86_64-linux 1

36 packages marked as broken and skipped:
  • piper-train
  • piper-train.dist
  • python310Packages.cleanlab
  • python310Packages.cleanlab.dist
  • python310Packages.dalle-mini
  • python310Packages.dalle-mini.dist
  • python310Packages.elegy
  • python310Packages.elegy.dist
  • python310Packages.pymanopt
  • python310Packages.pymanopt.dist
  • python310Packages.qiskit
  • python310Packages.qiskit-machine-learning
  • python310Packages.qiskit-machine-learning.dist
  • python310Packages.qiskit.dist
  • python310Packages.treex
  • python310Packages.treex.dist
  • python310Packages.unstructured-inference
  • python310Packages.unstructured-inference.dist
  • python310Packages.vqgan-jax
  • python310Packages.vqgan-jax.dist
  • python311Packages.cleanlab
  • python311Packages.cleanlab.dist
  • python311Packages.dalle-mini
  • python311Packages.dalle-mini.dist
  • python311Packages.elegy
  • python311Packages.elegy.dist
  • python311Packages.pymanopt
  • python311Packages.pymanopt.dist
  • python311Packages.qiskit
  • python311Packages.qiskit-machine-learning
  • python311Packages.qiskit-machine-learning.dist
  • python311Packages.qiskit.dist
  • python311Packages.treex
  • python311Packages.treex.dist
  • python311Packages.vqgan-jax
  • python311Packages.vqgan-jax.dist
107 packages failed to build:
  • pentestgpt
  • pentestgpt.dist
  • python310Packages.arviz
  • python310Packages.arviz.dist
  • python310Packages.ax
  • python310Packages.ax.dist
  • python310Packages.bambi
  • python310Packages.bambi.dist
  • python310Packages.fairseq
  • python310Packages.fairseq.dist
  • python310Packages.fastai
  • python310Packages.fastai.dist
  • python310Packages.ffcv
  • python310Packages.ffcv.dist
  • python310Packages.k-diffusion
  • python310Packages.k-diffusion.dist
  • python310Packages.langchain
  • python310Packages.langchain.dist
  • python310Packages.layoutparser
  • python310Packages.layoutparser.dist
  • python310Packages.pdfplumber
  • python310Packages.pdfplumber.dist
  • python310Packages.pymc
  • python310Packages.pymc.dist
  • python310Packages.pytorch-lightning
  • python310Packages.pytorch-lightning.dist
  • python310Packages.pytorch-pfn-extras
  • python310Packages.pytorch-pfn-extras.dist
  • python310Packages.sfepy
  • python310Packages.sfepy.dist
  • python310Packages.skrl
  • python310Packages.skrl.dist
  • python310Packages.spacy
  • python310Packages.spacy-loggers
  • python310Packages.spacy-loggers.dist
  • python310Packages.spacy-lookups-data
  • python310Packages.spacy-lookups-data.dist
  • python310Packages.spacy-transformers
  • python310Packages.spacy-transformers.dist
  • python310Packages.spacy.dist
  • python310Packages.stytra
  • python310Packages.stytra.dist
  • python310Packages.textacy
  • python310Packages.textacy.dist
  • python310Packages.textnets
  • python310Packages.textnets.dist
  • python310Packages.tiny-cuda-nn
  • python310Packages.torchinfo
  • python310Packages.torchinfo.dist
  • python310Packages.torchmetrics
  • python310Packages.torchmetrics.dist
  • python310Packages.wandb
  • python310Packages.wandb.dist
  • python311Packages.arviz
  • python311Packages.arviz.dist
  • python311Packages.ax
  • python311Packages.ax.dist
  • python311Packages.bambi
  • python311Packages.bambi.dist
  • python311Packages.fairseq
  • python311Packages.fairseq.dist
  • python311Packages.fastai
  • python311Packages.fastai.dist
  • python311Packages.ffcv
  • python311Packages.ffcv.dist
  • python311Packages.langchain
  • python311Packages.langchain.dist
  • python311Packages.layoutparser
  • python311Packages.layoutparser.dist
  • python311Packages.mayavi
  • python311Packages.mayavi.dist
  • python311Packages.optuna
  • python311Packages.optuna.dist
  • python311Packages.pdfplumber
  • python311Packages.pdfplumber.dist
  • python311Packages.pymc
  • python311Packages.pymc.dist
  • python311Packages.pytorch-lightning
  • python311Packages.pytorch-lightning.dist
  • python311Packages.pytorch-pfn-extras
  • python311Packages.pytorch-pfn-extras.dist
  • python311Packages.sfepy
  • python311Packages.sfepy.dist
  • python311Packages.skrl
  • python311Packages.skrl.dist
  • python311Packages.spacy
  • python311Packages.spacy-lookups-data
  • python311Packages.spacy-lookups-data.dist
  • python311Packages.spacy-transformers
  • python311Packages.spacy-transformers.dist
  • python311Packages.spacy.dist
  • python311Packages.stytra
  • python311Packages.stytra.dist
  • python311Packages.tensorboardx
  • python311Packages.tensorboardx.dist
  • python311Packages.textacy
  • python311Packages.textacy.dist
  • python311Packages.textnets
  • python311Packages.textnets.dist
  • python311Packages.tiny-cuda-nn
  • python311Packages.torchinfo
  • python311Packages.torchinfo.dist
  • python311Packages.torchmetrics
  • python311Packages.torchmetrics.dist
  • rocmPackages.mivisionx (rocmPackages.mivisionx-hip ,rocmPackages_5.mivisionx ,rocmPackages_5.mivisionx-hip)
  • rocmPackages.mivisionx-cpu (rocmPackages_5.mivisionx-cpu)
  • rocmPackages.mivisionx-opencl (rocmPackages_5.mivisionx-opencl)
405 packages built:
  • easyocr (python311Packages.easyocr)
  • easyocr.dist (python311Packages.easyocr.dist)
  • khoj
  • khoj.dist
  • libretranslate (python311Packages.libretranslate)
  • libretranslate.dist (python311Packages.libretranslate.dist)
  • openai-full
  • openai-full.dist
  • openai-triton-llvm
  • openai-triton-llvm.doc
  • openai-triton-llvm.man
  • openai-whisper (python311Packages.openai-whisper)
  • openai-whisper.dist (python311Packages.openai-whisper.dist)
  • pianotrans
  • pianotrans.dist
  • python310Packages.accelerate
  • python310Packages.accelerate.dist
  • python310Packages.apptools
  • python310Packages.apptools.dist
  • python310Packages.argos-translate-files
  • python310Packages.argos-translate-files.dist
  • python310Packages.argostranslate
  • python310Packages.argostranslate.dist
  • python310Packages.atomman
  • python310Packages.atomman.dist
  • python310Packages.bitsandbytes
  • python310Packages.bitsandbytes.dist
  • python310Packages.blosc2
  • python310Packages.blosc2.dist
  • python310Packages.botorch
  • python310Packages.botorch.dist
  • python310Packages.boxx
  • python310Packages.boxx.dist
  • python310Packages.bpycv
  • python310Packages.bpycv.dist
  • python310Packages.clean-fid
  • python310Packages.clean-fid.dist
  • python310Packages.clip
  • python310Packages.clip-anytorch
  • python310Packages.clip-anytorch.dist
  • python310Packages.clip.dist
  • python310Packages.ctranslate2
  • python310Packages.ctranslate2.dist
  • python310Packages.dctorch
  • python310Packages.dctorch.dist
  • python310Packages.deepdish
  • python310Packages.deepdish.dist
  • python310Packages.deepwave
  • python310Packages.deepwave.dist
  • python310Packages.detectron2
  • python310Packages.detectron2.dist
  • python310Packages.easyocr
  • python310Packages.easyocr.dist
  • python310Packages.effdet
  • python310Packages.effdet.dist
  • python310Packages.envisage
  • python310Packages.envisage.dist
  • python310Packages.experiment-utilities
  • python310Packages.experiment-utilities.dist
  • python310Packages.ezyrb
  • python310Packages.ezyrb.dist
  • python310Packages.fairscale
  • python310Packages.fairscale.dist
  • python310Packages.faster-whisper
  • python310Packages.faster-whisper.dist
  • python310Packages.flammkuchen
  • python310Packages.flammkuchen.dist
  • python310Packages.flyingsquid
  • python310Packages.flyingsquid.dist
  • python310Packages.funsor
  • python310Packages.funsor.dist
  • python310Packages.fvcore
  • python310Packages.fvcore.dist
  • python310Packages.gpytorch
  • python310Packages.gpytorch.dist
  • python310Packages.grad-cam
  • python310Packages.grad-cam.dist
  • python310Packages.gradio
  • python310Packages.gradio.dist
  • python310Packages.guidance
  • python310Packages.guidance.dist
  • python310Packages.ignite
  • python310Packages.ignite.dist
  • python310Packages.imagededup
  • python310Packages.imagededup.dist
  • python310Packages.invisible-watermark
  • python310Packages.invisible-watermark.dist
  • python310Packages.iopath
  • python310Packages.iopath.dist
  • python310Packages.kornia
  • python310Packages.kornia.dist
  • python310Packages.libretranslate
  • python310Packages.libretranslate.dist
  • python310Packages.linear_operator
  • python310Packages.linear_operator.dist
  • python310Packages.lion-pytorch
  • python310Packages.lion-pytorch.dist
  • python310Packages.manifest-ml
  • python310Packages.manifest-ml.dist
  • python310Packages.mayavi
  • python310Packages.mayavi.dist
  • python310Packages.minichain
  • python310Packages.minichain.dist
  • python310Packages.mmcv
  • python310Packages.mmcv.dist
  • python310Packages.mmengine
  • python310Packages.mmengine.dist
  • python310Packages.monai
  • python310Packages.monai.dist
  • python310Packages.monty
  • python310Packages.monty.dist
  • python310Packages.nianet
  • python310Packages.nianet.dist
  • python310Packages.numpyro
  • python310Packages.numpyro.dist
  • python310Packages.openai-triton
  • python310Packages.openai-triton-cuda
  • python310Packages.openai-triton-cuda.dist
  • python310Packages.openai-triton.dist
  • python310Packages.openai-whisper
  • python310Packages.openai-whisper.dist
  • python310Packages.openllm
  • python310Packages.openllm.dist
  • python310Packages.optimum
  • python310Packages.optimum.dist
  • python310Packages.optuna
  • python310Packages.optuna.dist
  • python310Packages.pandas-stubs
  • python310Packages.pandas-stubs.dist
  • python310Packages.peft
  • python310Packages.peft.dist
  • python310Packages.pgmpy
  • python310Packages.pgmpy.dist
  • python310Packages.piano-transcription-inference
  • python310Packages.piano-transcription-inference.dist
  • python310Packages.pydmd
  • python310Packages.pydmd.dist
  • python310Packages.pymatgen
  • python310Packages.pymatgen.dist
  • python310Packages.pyro-ppl
  • python310Packages.pyro-ppl.dist
  • python310Packages.pytorch-metric-learning
  • python310Packages.pytorch-metric-learning.dist
  • python310Packages.resize-right
  • python310Packages.resize-right.dist
  • python310Packages.rising
  • python310Packages.rising.dist
  • python310Packages.rotary-embedding-torch
  • python310Packages.rotary-embedding-torch.dist
  • python310Packages.safetensors
  • python310Packages.safetensors.dist
  • python310Packages.sentence-transformers
  • python310Packages.sentence-transformers.dist
  • python310Packages.shap
  • python310Packages.shap.dist
  • python310Packages.skorch
  • python310Packages.skorch.dist
  • python310Packages.slicer
  • python310Packages.slicer.dist
  • python310Packages.snorkel
  • python310Packages.snorkel.dist
  • python310Packages.speechbrain
  • python310Packages.speechbrain.dist
  • python310Packages.stanza
  • python310Packages.stanza.dist
  • python310Packages.sumo
  • python310Packages.sumo.dist
  • python310Packages.tables
  • python310Packages.tables.dist
  • python310Packages.tensorboardx
  • python310Packages.tensorboardx.dist
  • python310Packages.test-tube
  • python310Packages.test-tube.dist
  • python310Packages.timm
  • python310Packages.timm.dist
  • python310Packages.torch (python310Packages.torchWithoutCuda ,python310Packages.torchWithoutRocm)
  • python310Packages.torch-tb-profiler
  • python310Packages.torch-tb-profiler.dist
  • python310Packages.torch.dev (python310Packages.torchWithoutCuda.dev ,python310Packages.torchWithoutRocm.dev)
  • python310Packages.torch.dist (python310Packages.torchWithoutCuda.dist ,python310Packages.torchWithoutRocm.dist)
  • python310Packages.torch.lib (python310Packages.torchWithoutCuda.lib ,python310Packages.torchWithoutRocm.lib)
  • python310Packages.torchWithCuda
  • python310Packages.torchWithCuda.dev
  • python310Packages.torchWithCuda.dist
  • python310Packages.torchWithCuda.lib
  • python310Packages.torchWithRocm
  • python310Packages.torchWithRocm.dev
  • python310Packages.torchWithRocm.dist
  • python310Packages.torchWithRocm.lib
  • python310Packages.torchaudio
  • python310Packages.torchaudio.dist
  • python310Packages.torchdiffeq
  • python310Packages.torchdiffeq.dist
  • python310Packages.torchgpipe
  • python310Packages.torchgpipe.dist
  • python310Packages.torchio
  • python310Packages.torchio.dist
  • python310Packages.torchlibrosa
  • python310Packages.torchlibrosa.dist
  • python310Packages.torchsde
  • python310Packages.torchsde.dist
  • python310Packages.torchvision
  • python310Packages.torchvision.dist
  • python310Packages.transformers
  • python310Packages.transformers.dist
  • python310Packages.translatehtml
  • python310Packages.translatehtml.dist
  • python310Packages.ttach
  • python310Packages.ttach.dist
  • python310Packages.txtai
  • python310Packages.txtai.dist
  • python310Packages.xformers
  • python310Packages.xformers.dist
  • python310Packages.zcs
  • python310Packages.zcs.dist
  • python311Packages.accelerate
  • python311Packages.accelerate.dist
  • python311Packages.apptools
  • python311Packages.apptools.dist
  • python311Packages.argos-translate-files
  • python311Packages.argos-translate-files.dist
  • python311Packages.argostranslate
  • python311Packages.argostranslate.dist
  • python311Packages.atomman
  • python311Packages.atomman.dist
  • python311Packages.bitsandbytes
  • python311Packages.bitsandbytes.dist
  • python311Packages.blosc2
  • python311Packages.blosc2.dist
  • python311Packages.botorch
  • python311Packages.botorch.dist
  • python311Packages.clean-fid
  • python311Packages.clean-fid.dist
  • python311Packages.clip
  • python311Packages.clip-anytorch
  • python311Packages.clip-anytorch.dist
  • python311Packages.clip.dist
  • python311Packages.ctranslate2
  • python311Packages.ctranslate2.dist
  • python311Packages.dctorch
  • python311Packages.dctorch.dist
  • python311Packages.deepdish
  • python311Packages.deepdish.dist
  • python311Packages.deepwave
  • python311Packages.deepwave.dist
  • python311Packages.detectron2
  • python311Packages.detectron2.dist
  • python311Packages.effdet
  • python311Packages.effdet.dist
  • python311Packages.envisage
  • python311Packages.envisage.dist
  • python311Packages.experiment-utilities
  • python311Packages.experiment-utilities.dist
  • python311Packages.ezyrb
  • python311Packages.ezyrb.dist
  • python311Packages.fairscale
  • python311Packages.fairscale.dist
  • python311Packages.faster-whisper
  • python311Packages.faster-whisper.dist
  • python311Packages.flammkuchen
  • python311Packages.flammkuchen.dist
  • python311Packages.flyingsquid
  • python311Packages.flyingsquid.dist
  • python311Packages.funsor
  • python311Packages.funsor.dist
  • python311Packages.fvcore
  • python311Packages.fvcore.dist
  • python311Packages.gpytorch
  • python311Packages.gpytorch.dist
  • python311Packages.grad-cam
  • python311Packages.grad-cam.dist
  • python311Packages.gradio
  • python311Packages.gradio.dist
  • python311Packages.guidance
  • python311Packages.guidance.dist
  • python311Packages.ignite
  • python311Packages.ignite.dist
  • python311Packages.imagededup
  • python311Packages.imagededup.dist
  • python311Packages.invisible-watermark
  • python311Packages.invisible-watermark.dist
  • python311Packages.iopath
  • python311Packages.iopath.dist
  • python311Packages.k-diffusion
  • python311Packages.k-diffusion.dist
  • python311Packages.kornia
  • python311Packages.kornia.dist
  • python311Packages.linear_operator
  • python311Packages.linear_operator.dist
  • python311Packages.lion-pytorch
  • python311Packages.lion-pytorch.dist
  • python311Packages.manifest-ml
  • python311Packages.manifest-ml.dist
  • python311Packages.mmcv
  • python311Packages.mmcv.dist
  • python311Packages.mmengine
  • python311Packages.mmengine.dist
  • python311Packages.monai
  • python311Packages.monai.dist
  • python311Packages.monty
  • python311Packages.monty.dist
  • python311Packages.nianet
  • python311Packages.nianet.dist
  • python311Packages.numpyro
  • python311Packages.numpyro.dist
  • python311Packages.openai-triton
  • python311Packages.openai-triton-cuda
  • python311Packages.openai-triton-cuda.dist
  • python311Packages.openai-triton.dist
  • python311Packages.openllm
  • python311Packages.openllm.dist
  • python311Packages.optimum
  • python311Packages.optimum.dist
  • python311Packages.pandas-stubs
  • python311Packages.pandas-stubs.dist
  • python311Packages.peft
  • python311Packages.peft.dist
  • python311Packages.pgmpy
  • python311Packages.pgmpy.dist
  • python311Packages.piano-transcription-inference
  • python311Packages.piano-transcription-inference.dist
  • python311Packages.pydmd
  • python311Packages.pydmd.dist
  • python311Packages.pymatgen
  • python311Packages.pymatgen.dist
  • python311Packages.pyro-ppl
  • python311Packages.pyro-ppl.dist
  • python311Packages.pytorch-metric-learning
  • python311Packages.pytorch-metric-learning.dist
  • python311Packages.resize-right
  • python311Packages.resize-right.dist
  • python311Packages.rising
  • python311Packages.rising.dist
  • python311Packages.rotary-embedding-torch
  • python311Packages.rotary-embedding-torch.dist
  • python311Packages.safetensors
  • python311Packages.safetensors.dist
  • python311Packages.sentence-transformers
  • python311Packages.sentence-transformers.dist
  • python311Packages.shap
  • python311Packages.shap.dist
  • python311Packages.skorch
  • python311Packages.skorch.dist
  • python311Packages.slicer
  • python311Packages.slicer.dist
  • python311Packages.snorkel
  • python311Packages.snorkel.dist
  • python311Packages.spacy-loggers
  • python311Packages.spacy-loggers.dist
  • python311Packages.speechbrain
  • python311Packages.speechbrain.dist
  • python311Packages.stanza
  • python311Packages.stanza.dist
  • python311Packages.sumo
  • python311Packages.sumo.dist
  • python311Packages.tables
  • python311Packages.tables.dist
  • python311Packages.test-tube
  • python311Packages.test-tube.dist
  • python311Packages.timm
  • python311Packages.timm.dist
  • python311Packages.torch (python311Packages.torchWithoutCuda ,python311Packages.torchWithoutRocm)
  • python311Packages.torch-tb-profiler
  • python311Packages.torch-tb-profiler.dist
  • python311Packages.torch.dev (python311Packages.torchWithoutCuda.dev ,python311Packages.torchWithoutRocm.dev)
  • python311Packages.torch.dist (python311Packages.torchWithoutCuda.dist ,python311Packages.torchWithoutRocm.dist)
  • python311Packages.torch.lib (python311Packages.torchWithoutCuda.lib ,python311Packages.torchWithoutRocm.lib)
  • python311Packages.torchWithCuda
  • python311Packages.torchWithCuda.dev
  • python311Packages.torchWithCuda.dist
  • python311Packages.torchWithCuda.lib
  • python311Packages.torchWithRocm
  • python311Packages.torchWithRocm.dev
  • python311Packages.torchWithRocm.dist
  • python311Packages.torchWithRocm.lib
  • python311Packages.torchaudio
  • python311Packages.torchaudio.dist
  • python311Packages.torchdiffeq
  • python311Packages.torchdiffeq.dist
  • python311Packages.torchgpipe
  • python311Packages.torchgpipe.dist
  • python311Packages.torchio
  • python311Packages.torchio.dist
  • python311Packages.torchlibrosa
  • python311Packages.torchlibrosa.dist
  • python311Packages.torchsde
  • python311Packages.torchsde.dist
  • python311Packages.torchvision
  • python311Packages.torchvision.dist
  • python311Packages.transformers
  • python311Packages.transformers.dist
  • python311Packages.translatehtml
  • python311Packages.translatehtml.dist
  • python311Packages.ttach
  • python311Packages.ttach.dist
  • python311Packages.txtai
  • python311Packages.txtai.dist
  • python311Packages.wandb
  • python311Packages.wandb.dist
  • python311Packages.xformers
  • python311Packages.xformers.dist
  • whisper-ctranslate2
  • whisper-ctranslate2.dist
  • wyoming-faster-whisper
  • wyoming-faster-whisper.dist

@Madouura
Copy link
Contributor Author

Had to manually abort cvxpy and sfepy because the tests were taking absurdly long.
Now to fix some of this...

@Madouura Madouura changed the title python3Packages.openai-triton: strip ptxas for non-cuda build Make openai-triton/pytorch free again (and fix a bunch of python dependents) Oct 24, 2023
@Madouura Madouura changed the title Make openai-triton/pytorch free again (and fix a bunch of python dependents) Make openai-triton/pytorch free again (and various fixes) Oct 24, 2023
@SomeoneSerge
Copy link
Contributor

Need to change torch to propagate pybind11.

Is this for torch.compile? Feels disorderly...

@Madouura
Copy link
Contributor Author

Madouura commented Oct 25, 2023

torchmetrics tests are, as far as I can tell, completely broken.
The issue with the duplicate closures is somewhat resolved now though, just wish there was a better way.
I tested with pytorch-lightning having it's own custom torchmetrics too, the tests were still messed up.

@Madouura
Copy link
Contributor Author

Result of nixpkgs-review pr 263048 run on x86_64-linux 1

60 packages marked as broken and skipped:
  • piper-train
  • piper-train.dist
  • python310Packages.cleanlab
  • python310Packages.cleanlab.dist
  • python310Packages.dalle-mini
  • python310Packages.dalle-mini.dist
  • python310Packages.elegy
  • python310Packages.elegy.dist
  • python310Packages.pymanopt
  • python310Packages.pymanopt.dist
  • python310Packages.qiskit
  • python310Packages.qiskit-aer
  • python310Packages.qiskit-aer.dist
  • python310Packages.qiskit-finance
  • python310Packages.qiskit-finance.dist
  • python310Packages.qiskit-ibmq-provider
  • python310Packages.qiskit-ibmq-provider.dist
  • python310Packages.qiskit-ignis
  • python310Packages.qiskit-ignis.dist
  • python310Packages.qiskit-machine-learning
  • python310Packages.qiskit-machine-learning.dist
  • python310Packages.qiskit-nature
  • python310Packages.qiskit-nature.dist
  • python310Packages.qiskit-optimization
  • python310Packages.qiskit-optimization.dist
  • python310Packages.qiskit.dist
  • python310Packages.treex
  • python310Packages.treex.dist
  • python310Packages.unstructured-inference
  • python310Packages.unstructured-inference.dist
  • python310Packages.vqgan-jax
  • python310Packages.vqgan-jax.dist
  • python311Packages.cleanlab
  • python311Packages.cleanlab.dist
  • python311Packages.dalle-mini
  • python311Packages.dalle-mini.dist
  • python311Packages.elegy
  • python311Packages.elegy.dist
  • python311Packages.pymanopt
  • python311Packages.pymanopt.dist
  • python311Packages.qiskit
  • python311Packages.qiskit-aer
  • python311Packages.qiskit-aer.dist
  • python311Packages.qiskit-finance
  • python311Packages.qiskit-finance.dist
  • python311Packages.qiskit-ibmq-provider
  • python311Packages.qiskit-ibmq-provider.dist
  • python311Packages.qiskit-ignis
  • python311Packages.qiskit-ignis.dist
  • python311Packages.qiskit-machine-learning
  • python311Packages.qiskit-machine-learning.dist
  • python311Packages.qiskit-nature
  • python311Packages.qiskit-nature.dist
  • python311Packages.qiskit-optimization
  • python311Packages.qiskit-optimization.dist
  • python311Packages.qiskit.dist
  • python311Packages.treex
  • python311Packages.treex.dist
  • python311Packages.vqgan-jax
  • python311Packages.vqgan-jax.dist
36 packages failed to build:
  • openai-full
  • openai-full.dist
  • pentestgpt
  • pentestgpt.dist
  • python310Packages.qutip
  • python310Packages.qutip.dist
  • python310Packages.skrl
  • python310Packages.skrl.dist
  • python310Packages.textnets
  • python310Packages.textnets.dist
  • python310Packages.tiny-cuda-nn
  • python311Packages.fastai
  • python311Packages.fastai.dist
  • python311Packages.k-diffusion
  • python311Packages.k-diffusion.dist
  • python311Packages.langchain
  • python311Packages.langchain.dist
  • python311Packages.qutip
  • python311Packages.qutip.dist
  • python311Packages.skrl
  • python311Packages.skrl.dist
  • python311Packages.spacy
  • python311Packages.spacy-loggers
  • python311Packages.spacy-loggers.dist
  • python311Packages.spacy-lookups-data
  • python311Packages.spacy-lookups-data.dist
  • python311Packages.spacy-transformers
  • python311Packages.spacy-transformers.dist
  • python311Packages.spacy.dist
  • python311Packages.textacy
  • python311Packages.textacy.dist
  • python311Packages.textnets
  • python311Packages.textnets.dist
  • python311Packages.tiny-cuda-nn
  • python311Packages.wandb
  • python311Packages.wandb.dist
493 packages built:
  • easyocr (python311Packages.easyocr)
  • easyocr.dist (python311Packages.easyocr.dist)
  • khoj
  • khoj.dist
  • libretranslate (python311Packages.libretranslate)
  • libretranslate.dist (python311Packages.libretranslate.dist)
  • openai-triton-llvm
  • openai-triton-llvm.doc
  • openai-triton-llvm.man
  • openai-whisper (python311Packages.openai-whisper)
  • openai-whisper.dist (python311Packages.openai-whisper.dist)
  • pianotrans
  • pianotrans.dist
  • python310Packages.accelerate
  • python310Packages.accelerate.dist
  • python310Packages.apptools
  • python310Packages.apptools.dist
  • python310Packages.argos-translate-files
  • python310Packages.argos-translate-files.dist
  • python310Packages.argostranslate
  • python310Packages.argostranslate.dist
  • python310Packages.arviz
  • python310Packages.arviz.dist
  • python310Packages.atomman
  • python310Packages.atomman.dist
  • python310Packages.ax
  • python310Packages.ax.dist
  • python310Packages.bambi
  • python310Packages.bambi.dist
  • python310Packages.bitsandbytes
  • python310Packages.bitsandbytes.dist
  • python310Packages.blackjax
  • python310Packages.blackjax.dist
  • python310Packages.blosc2
  • python310Packages.blosc2.dist
  • python310Packages.botorch
  • python310Packages.botorch.dist
  • python310Packages.boxx
  • python310Packages.boxx.dist
  • python310Packages.bpycv
  • python310Packages.bpycv.dist
  • python310Packages.clean-fid
  • python310Packages.clean-fid.dist
  • python310Packages.clip
  • python310Packages.clip-anytorch
  • python310Packages.clip-anytorch.dist
  • python310Packages.clip.dist
  • python310Packages.ctranslate2
  • python310Packages.ctranslate2.dist
  • python310Packages.cvxpy
  • python310Packages.cvxpy.dist
  • python310Packages.dctorch
  • python310Packages.dctorch.dist
  • python310Packages.deepdish
  • python310Packages.deepdish.dist
  • python310Packages.deepwave
  • python310Packages.deepwave.dist
  • python310Packages.detectron2
  • python310Packages.detectron2.dist
  • python310Packages.easyocr
  • python310Packages.easyocr.dist
  • python310Packages.effdet
  • python310Packages.effdet.dist
  • python310Packages.envisage
  • python310Packages.envisage.dist
  • python310Packages.experiment-utilities
  • python310Packages.experiment-utilities.dist
  • python310Packages.ezyrb
  • python310Packages.ezyrb.dist
  • python310Packages.fairscale
  • python310Packages.fairscale.dist
  • python310Packages.fairseq
  • python310Packages.fairseq.dist
  • python310Packages.fastai
  • python310Packages.fastai.dist
  • python310Packages.faster-whisper
  • python310Packages.faster-whisper.dist
  • python310Packages.ffcv
  • python310Packages.ffcv.dist
  • python310Packages.flammkuchen
  • python310Packages.flammkuchen.dist
  • python310Packages.floret
  • python310Packages.floret.dist
  • python310Packages.flyingsquid
  • python310Packages.flyingsquid.dist
  • python310Packages.funsor
  • python310Packages.funsor.dist
  • python310Packages.fvcore
  • python310Packages.fvcore.dist
  • python310Packages.gpytorch
  • python310Packages.gpytorch.dist
  • python310Packages.grad-cam
  • python310Packages.grad-cam.dist
  • python310Packages.gradio
  • python310Packages.gradio.dist
  • python310Packages.guidance
  • python310Packages.guidance.dist
  • python310Packages.ignite
  • python310Packages.ignite.dist
  • python310Packages.imagededup
  • python310Packages.imagededup.dist
  • python310Packages.invisible-watermark
  • python310Packages.invisible-watermark.dist
  • python310Packages.iopath
  • python310Packages.iopath.dist
  • python310Packages.jaxopt
  • python310Packages.jaxopt.dist
  • python310Packages.k-diffusion
  • python310Packages.k-diffusion.dist
  • python310Packages.kornia
  • python310Packages.kornia.dist
  • python310Packages.langchain
  • python310Packages.langchain.dist
  • python310Packages.layoutparser
  • python310Packages.layoutparser.dist
  • python310Packages.libretranslate
  • python310Packages.libretranslate.dist
  • python310Packages.linear_operator
  • python310Packages.linear_operator.dist
  • python310Packages.lion-pytorch
  • python310Packages.lion-pytorch.dist
  • python310Packages.manifest-ml
  • python310Packages.manifest-ml.dist
  • python310Packages.mayavi
  • python310Packages.mayavi.dist
  • python310Packages.minichain
  • python310Packages.minichain.dist
  • python310Packages.mmcv
  • python310Packages.mmcv.dist
  • python310Packages.mmengine
  • python310Packages.mmengine.dist
  • python310Packages.monai
  • python310Packages.monai.dist
  • python310Packages.monty
  • python310Packages.monty.dist
  • python310Packages.nianet
  • python310Packages.nianet.dist
  • python310Packages.numpyro
  • python310Packages.numpyro.dist
  • python310Packages.openai-triton
  • python310Packages.openai-triton-cuda
  • python310Packages.openai-triton-cuda.dist
  • python310Packages.openai-triton.dist
  • python310Packages.openai-whisper
  • python310Packages.openai-whisper.dist
  • python310Packages.openllm
  • python310Packages.openllm.dist
  • python310Packages.optimum
  • python310Packages.optimum.dist
  • python310Packages.optuna
  • python310Packages.optuna.dist
  • python310Packages.pandas-stubs
  • python310Packages.pandas-stubs.dist
  • python310Packages.pdfplumber
  • python310Packages.pdfplumber.dist
  • python310Packages.peft
  • python310Packages.peft.dist
  • python310Packages.pgmpy
  • python310Packages.pgmpy.dist
  • python310Packages.piano-transcription-inference
  • python310Packages.piano-transcription-inference.dist
  • python310Packages.pydmd
  • python310Packages.pydmd.dist
  • python310Packages.pymatgen
  • python310Packages.pymatgen.dist
  • python310Packages.pymc
  • python310Packages.pymc.dist
  • python310Packages.pyro-ppl
  • python310Packages.pyro-ppl.dist
  • python310Packages.pytorch-lightning
  • python310Packages.pytorch-lightning.dist
  • python310Packages.pytorch-metric-learning
  • python310Packages.pytorch-metric-learning.dist
  • python310Packages.pytorch-pfn-extras
  • python310Packages.pytorch-pfn-extras.dist
  • python310Packages.resize-right
  • python310Packages.resize-right.dist
  • python310Packages.rising
  • python310Packages.rising.dist
  • python310Packages.rotary-embedding-torch
  • python310Packages.rotary-embedding-torch.dist
  • python310Packages.safetensors
  • python310Packages.safetensors.dist
  • python310Packages.sentence-transformers
  • python310Packages.sentence-transformers.dist
  • python310Packages.sfepy
  • python310Packages.sfepy.dist
  • python310Packages.shap
  • python310Packages.shap.dist
  • python310Packages.skorch
  • python310Packages.skorch.dist
  • python310Packages.slicer
  • python310Packages.slicer.dist
  • python310Packages.snorkel
  • python310Packages.snorkel.dist
  • python310Packages.spacy
  • python310Packages.spacy-loggers
  • python310Packages.spacy-loggers.dist
  • python310Packages.spacy-lookups-data
  • python310Packages.spacy-lookups-data.dist
  • python310Packages.spacy-transformers
  • python310Packages.spacy-transformers.dist
  • python310Packages.spacy.dist
  • python310Packages.speechbrain
  • python310Packages.speechbrain.dist
  • python310Packages.stanza
  • python310Packages.stanza.dist
  • python310Packages.stytra
  • python310Packages.stytra.dist
  • python310Packages.sumo
  • python310Packages.sumo.dist
  • python310Packages.tables
  • python310Packages.tables.dist
  • python310Packages.tensorboardx
  • python310Packages.tensorboardx.dist
  • python310Packages.test-tube
  • python310Packages.test-tube.dist
  • python310Packages.textacy
  • python310Packages.textacy.dist
  • python310Packages.timm
  • python310Packages.timm.dist
  • python310Packages.torch (python310Packages.torchWithoutCuda ,python310Packages.torchWithoutRocm)
  • python310Packages.torch-tb-profiler
  • python310Packages.torch-tb-profiler.dist
  • python310Packages.torch.dev (python310Packages.torchWithoutCuda.dev ,python310Packages.torchWithoutRocm.dev)
  • python310Packages.torch.dist (python310Packages.torchWithoutCuda.dist ,python310Packages.torchWithoutRocm.dist)
  • python310Packages.torch.lib (python310Packages.torchWithoutCuda.lib ,python310Packages.torchWithoutRocm.lib)
  • python310Packages.torchWithCuda
  • python310Packages.torchWithCuda.dev
  • python310Packages.torchWithCuda.dist
  • python310Packages.torchWithCuda.lib
  • python310Packages.torchWithRocm
  • python310Packages.torchWithRocm.dev
  • python310Packages.torchWithRocm.dist
  • python310Packages.torchWithRocm.lib
  • python310Packages.torchaudio
  • python310Packages.torchaudio.dist
  • python310Packages.torchdiffeq
  • python310Packages.torchdiffeq.dist
  • python310Packages.torchgpipe
  • python310Packages.torchgpipe.dist
  • python310Packages.torchinfo
  • python310Packages.torchinfo.dist
  • python310Packages.torchio
  • python310Packages.torchio.dist
  • python310Packages.torchlibrosa
  • python310Packages.torchlibrosa.dist
  • python310Packages.torchmetrics
  • python310Packages.torchmetrics.dist
  • python310Packages.torchsde
  • python310Packages.torchsde.dist
  • python310Packages.torchvision
  • python310Packages.torchvision.dist
  • python310Packages.transformers
  • python310Packages.transformers.dist
  • python310Packages.translatehtml
  • python310Packages.translatehtml.dist
  • python310Packages.ttach
  • python310Packages.ttach.dist
  • python310Packages.txtai
  • python310Packages.txtai.dist
  • python310Packages.wandb
  • python310Packages.wandb.dist
  • python310Packages.xformers
  • python310Packages.xformers.dist
  • python310Packages.zcs
  • python310Packages.zcs.dist
  • python311Packages.accelerate
  • python311Packages.accelerate.dist
  • python311Packages.apptools
  • python311Packages.apptools.dist
  • python311Packages.argos-translate-files
  • python311Packages.argos-translate-files.dist
  • python311Packages.argostranslate
  • python311Packages.argostranslate.dist
  • python311Packages.arviz
  • python311Packages.arviz.dist
  • python311Packages.atomman
  • python311Packages.atomman.dist
  • python311Packages.ax
  • python311Packages.ax.dist
  • python311Packages.bambi
  • python311Packages.bambi.dist
  • python311Packages.bitsandbytes
  • python311Packages.bitsandbytes.dist
  • python311Packages.blackjax
  • python311Packages.blackjax.dist
  • python311Packages.blosc2
  • python311Packages.blosc2.dist
  • python311Packages.botorch
  • python311Packages.botorch.dist
  • python311Packages.clean-fid
  • python311Packages.clean-fid.dist
  • python311Packages.clip
  • python311Packages.clip-anytorch
  • python311Packages.clip-anytorch.dist
  • python311Packages.clip.dist
  • python311Packages.ctranslate2
  • python311Packages.ctranslate2.dist
  • python311Packages.cvxpy
  • python311Packages.cvxpy.dist
  • python311Packages.dctorch
  • python311Packages.dctorch.dist
  • python311Packages.deepdish
  • python311Packages.deepdish.dist
  • python311Packages.deepwave
  • python311Packages.deepwave.dist
  • python311Packages.detectron2
  • python311Packages.detectron2.dist
  • python311Packages.effdet
  • python311Packages.effdet.dist
  • python311Packages.envisage
  • python311Packages.envisage.dist
  • python311Packages.experiment-utilities
  • python311Packages.experiment-utilities.dist
  • python311Packages.ezyrb
  • python311Packages.ezyrb.dist
  • python311Packages.fairscale
  • python311Packages.fairscale.dist
  • python311Packages.faster-whisper
  • python311Packages.faster-whisper.dist
  • python311Packages.ffcv
  • python311Packages.ffcv.dist
  • python311Packages.flammkuchen
  • python311Packages.flammkuchen.dist
  • python311Packages.floret
  • python311Packages.floret.dist
  • python311Packages.flyingsquid
  • python311Packages.flyingsquid.dist
  • python311Packages.funsor
  • python311Packages.funsor.dist
  • python311Packages.fvcore
  • python311Packages.fvcore.dist
  • python311Packages.gpytorch
  • python311Packages.gpytorch.dist
  • python311Packages.grad-cam
  • python311Packages.grad-cam.dist
  • python311Packages.gradio
  • python311Packages.gradio.dist
  • python311Packages.guidance
  • python311Packages.guidance.dist
  • python311Packages.ignite
  • python311Packages.ignite.dist
  • python311Packages.imagededup
  • python311Packages.imagededup.dist
  • python311Packages.invisible-watermark
  • python311Packages.invisible-watermark.dist
  • python311Packages.iopath
  • python311Packages.iopath.dist
  • python311Packages.jaxopt
  • python311Packages.jaxopt.dist
  • python311Packages.kornia
  • python311Packages.kornia.dist
  • python311Packages.layoutparser
  • python311Packages.layoutparser.dist
  • python311Packages.linear_operator
  • python311Packages.linear_operator.dist
  • python311Packages.lion-pytorch
  • python311Packages.lion-pytorch.dist
  • python311Packages.manifest-ml
  • python311Packages.manifest-ml.dist
  • python311Packages.mmcv
  • python311Packages.mmcv.dist
  • python311Packages.mmengine
  • python311Packages.mmengine.dist
  • python311Packages.monai
  • python311Packages.monai.dist
  • python311Packages.monty
  • python311Packages.monty.dist
  • python311Packages.nianet
  • python311Packages.nianet.dist
  • python311Packages.numpyro
  • python311Packages.numpyro.dist
  • python311Packages.openai-triton
  • python311Packages.openai-triton-cuda
  • python311Packages.openai-triton-cuda.dist
  • python311Packages.openai-triton.dist
  • python311Packages.openllm
  • python311Packages.openllm.dist
  • python311Packages.optimum
  • python311Packages.optimum.dist
  • python311Packages.optuna
  • python311Packages.optuna.dist
  • python311Packages.pandas-stubs
  • python311Packages.pandas-stubs.dist
  • python311Packages.pdfplumber
  • python311Packages.pdfplumber.dist
  • python311Packages.peft
  • python311Packages.peft.dist
  • python311Packages.pgmpy
  • python311Packages.pgmpy.dist
  • python311Packages.piano-transcription-inference
  • python311Packages.piano-transcription-inference.dist
  • python311Packages.pydmd
  • python311Packages.pydmd.dist
  • python311Packages.pymatgen
  • python311Packages.pymatgen.dist
  • python311Packages.pymc
  • python311Packages.pymc.dist
  • python311Packages.pyro-ppl
  • python311Packages.pyro-ppl.dist
  • python311Packages.pytorch-lightning
  • python311Packages.pytorch-lightning.dist
  • python311Packages.pytorch-metric-learning
  • python311Packages.pytorch-metric-learning.dist
  • python311Packages.pytorch-pfn-extras
  • python311Packages.pytorch-pfn-extras.dist
  • python311Packages.resize-right
  • python311Packages.resize-right.dist
  • python311Packages.rising
  • python311Packages.rising.dist
  • python311Packages.rotary-embedding-torch
  • python311Packages.rotary-embedding-torch.dist
  • python311Packages.safetensors
  • python311Packages.safetensors.dist
  • python311Packages.sentence-transformers
  • python311Packages.sentence-transformers.dist
  • python311Packages.sfepy
  • python311Packages.sfepy.dist
  • python311Packages.shap
  • python311Packages.shap.dist
  • python311Packages.skorch
  • python311Packages.skorch.dist
  • python311Packages.slicer
  • python311Packages.slicer.dist
  • python311Packages.snorkel
  • python311Packages.snorkel.dist
  • python311Packages.speechbrain
  • python311Packages.speechbrain.dist
  • python311Packages.stanza
  • python311Packages.stanza.dist
  • python311Packages.stytra
  • python311Packages.stytra.dist
  • python311Packages.sumo
  • python311Packages.sumo.dist
  • python311Packages.tables
  • python311Packages.tables.dist
  • python311Packages.tensorboardx
  • python311Packages.tensorboardx.dist
  • python311Packages.test-tube
  • python311Packages.test-tube.dist
  • python311Packages.timm
  • python311Packages.timm.dist
  • python311Packages.torch (python311Packages.torchWithoutCuda ,python311Packages.torchWithoutRocm)
  • python311Packages.torch-tb-profiler
  • python311Packages.torch-tb-profiler.dist
  • python311Packages.torch.dev (python311Packages.torchWithoutCuda.dev ,python311Packages.torchWithoutRocm.dev)
  • python311Packages.torch.dist (python311Packages.torchWithoutCuda.dist ,python311Packages.torchWithoutRocm.dist)
  • python311Packages.torch.lib (python311Packages.torchWithoutCuda.lib ,python311Packages.torchWithoutRocm.lib)
  • python311Packages.torchWithCuda
  • python311Packages.torchWithCuda.dev
  • python311Packages.torchWithCuda.dist
  • python311Packages.torchWithCuda.lib
  • python311Packages.torchWithRocm
  • python311Packages.torchWithRocm.dev
  • python311Packages.torchWithRocm.dist
  • python311Packages.torchWithRocm.lib
  • python311Packages.torchaudio
  • python311Packages.torchaudio.dist
  • python311Packages.torchdiffeq
  • python311Packages.torchdiffeq.dist
  • python311Packages.torchgpipe
  • python311Packages.torchgpipe.dist
  • python311Packages.torchinfo
  • python311Packages.torchinfo.dist
  • python311Packages.torchio
  • python311Packages.torchio.dist
  • python311Packages.torchlibrosa
  • python311Packages.torchlibrosa.dist
  • python311Packages.torchmetrics
  • python311Packages.torchmetrics.dist
  • python311Packages.torchsde
  • python311Packages.torchsde.dist
  • python311Packages.torchvision
  • python311Packages.torchvision.dist
  • python311Packages.transformers
  • python311Packages.transformers.dist
  • python311Packages.translatehtml
  • python311Packages.translatehtml.dist
  • python311Packages.ttach
  • python311Packages.ttach.dist
  • python311Packages.txtai
  • python311Packages.txtai.dist
  • python311Packages.xformers
  • python311Packages.xformers.dist
  • rapidjson-unstable
  • rocmPackages.mivisionx (rocmPackages.mivisionx-hip ,rocmPackages_5.mivisionx ,rocmPackages_5.mivisionx-hip)
  • rocmPackages.mivisionx-cpu (rocmPackages_5.mivisionx-cpu)
  • rocmPackages.mivisionx-opencl (rocmPackages_5.mivisionx-opencl)
  • whisper-ctranslate2
  • whisper-ctranslate2.dist
  • wyoming-faster-whisper
  • wyoming-faster-whisper.dist

@Madouura
Copy link
Contributor Author

Madouura commented Oct 25, 2023

Manually killed python-qutip because I didn't have the patience to let the tests finish and I need to do yet another mass rebuild anyway.

@Madouura Madouura force-pushed the pr/triton branch 2 times, most recently from 8971c98 to 31aff0d Compare October 25, 2023 17:06
This is mainly for fixing fairseq's python 3.11 build
The repo was moved from PyTorchLightning/metrics to Lightning-AI/torchmetrics
@mweinelt mweinelt merged commit 6cd5fb6 into NixOS:master Nov 10, 2023
20 of 22 checks passed
@Madouura Madouura deleted the pr/triton branch November 10, 2023 15:02
@wegank
Copy link
Member

wegank commented Nov 10, 2023

Does this PR break darwin support? openai-triton is only available on Linux.

@SomeoneSerge
Copy link
Contributor

Does this PR break darwin support? openai-triton is only available on Linux.

H'm? Upstream does mention macos somewhere: https://github.com/openai/triton/blob/f168b148ecdd067205c6066bc3e6939fd67ab893/python/setup.py#L77-L81. We never tested the darwin version in nixpkgs before, because it used to depend on cuda_nvcc

@wegank
Copy link
Member

wegank commented Nov 10, 2023

Oh. Then someone has to add darwin support to openai-triton-llvm. I imagine python311Packages.torch doesn't even work on aarch64-linux now.

platforms = platforms.linux;
# Consider the derivation broken if we're not building for CUDA or ROCm, or if we're building for aarch64
# and ROCm is enabled. See https://github.com/RadeonOpenCompute/ROCm/issues/1831#issuecomment-1278205344.
broken = stdenv.isAarch64 && !config.cudaSupport;

@Madouura
Copy link
Contributor Author

Does this PR break darwin support? openai-triton is only available on Linux.

It's using the same LLVM as before just as a separate package, and before that was using rocm-llvm which definitely did not have Darwin support.

@Madouura
Copy link
Contributor Author

Oh. Then someone has to add darwin support to openai-triton-llvm. I imagine python311Packages.torch doesn't even work on aarch64-linux now.

platforms = platforms.linux;
# Consider the derivation broken if we're not building for CUDA or ROCm, or if we're building for aarch64
# and ROCm is enabled. See https://github.com/RadeonOpenCompute/ROCm/issues/1831#issuecomment-1278205344.
broken = stdenv.isAarch64 && !config.cudaSupport;

This is an artifact from rocm-llvm-llvm that I basically copy/pasted to openai-triton-llvm.
We can probably rethink the broken modifier in this case.

@Madouura
Copy link
Contributor Author

Madouura commented Nov 10, 2023

Wait, actually it's not. It's been a while since I messed with openai-triton-llvm...
Why can't we support non-cuda and aarch64 at the same time?

@wegank
Copy link
Member

wegank commented Nov 10, 2023

So, how about having a PR that make this

# ROCm build and `torch.compile` requires openai-triton
openai-triton

conditional again for platforms where openai-triton is not available or broken, or simply restore the following lines?

# rocm build requires openai-triton;
# openai-triton currently requires cuda_nvcc,
# so not including it in the cpu-only build;
# torch.compile relies on openai-triton,
# so we include it for the cuda build as well
++ lib.optionals (rocmSupport || cudaSupport) [
openai-triton
];

@Madouura
Copy link
Contributor Author

Madouura commented Nov 10, 2023

I think it would be best to add a conditional.
We want to keep openai-triton in propagatedBuildInputs if possible for torch.compile.
If we absolutely cannot build openai-triton-llvm with aarch64, then add guard the input in torch with (!stdenv.isAarch64).
Or maybe (!stdenv.buildPlatform.isaarch64). I can never remember if it's hostPlatform or buildPlatform that we want.

@Madouura
Copy link
Contributor Author

I think I understand why that guard is there now.
It's from when openai-triton was only in torch if it was rocm or cuda.
Basically it's saying if we're not cuda, don't allow aarch64 since we're rocm.
That isn't the case anymore. I'm not even entirely sure we can't build amdgpu with aarch64 on this version of LLVM anyway.

@wegank
Copy link
Member

wegank commented Nov 10, 2023

I'd normally like to test it on ofborg, but the aarch64-linux builder is down, unfortunately...

@Madouura
Copy link
Contributor Author

Here's a patch that I haven't tested at all.
This isn't the ROCm fork so theoretically aarch64 with AMDGPU should work just fine, but I don't know.
Too sick to go too in-depth with this right now.
openai-triton-llvm.patch.txt

@SomeoneSerge
Copy link
Contributor

SomeoneSerge commented Nov 10, 2023

Pytorch and openai-triton is definitely on the list for aarch64-linux, because #256324 is specifically about supporting jetsons

@SomeoneSerge
Copy link
Contributor

For the time being it makes sense to make triton optional for other platforms. I also imagine that even in future there may be users that only need the eager execution part of pytorch, and they would benefit from excluding triton from the runtime closure (it is quite heavy because of llvm). For this reason I'd suggest that we add the enableTriton argument to the torch recipe/expression, and that for now we default it to rocmSupport || cudaSupport. Maybe not enableTriton, but torchCompileSupport even?

@ConnorBaker
Copy link
Contributor

From what I remember when I tried to use the latest LLVM/Triton, ROCm doesn’t support aarch64 upstream.

3071319

ignore the work on an updater.

@Madouura
Copy link
Contributor Author

Does this break torch on x86_64-darwin/aarch64-darwin/aarch64-linux?

https://hydra.nixos.org/job/nixpkgs/trunk/python311Packages.torch.x86_64-darwin https://hydra.nixos.org/job/nixpkgs/trunk/python311Packages.torch.aarch64-darwin https://hydra.nixos.org/job/nixpkgs/trunk/python311Packages.torch.aarch64-linux

It shouldn't break x86_64-darwin definitely?
I'm looking into enabling aarch64 for openai-triton-llvm.

@Madouura
Copy link
Contributor Author

platforms = platforms.linux;
Ah. I'll try removing that, and crossbuilding it with darwin.

@Madouura
Copy link
Contributor Author

Madouura commented Nov 13, 2023

@azuwis see #267209

Copy link
Contributor

@doronbehar doronbehar left a comment

Choose a reason for hiding this comment

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

Please fix these issues 🙏.


disabled = pythonOlder "3.8";
pyproject = true;
disabled = pythonOlder "3.7";
Copy link
Contributor

Choose a reason for hiding this comment

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

Just out of curiosity, why is this needed? When we don't recurseIntoAttrs python37.pkgs since a long time now.

@@ -18,8 +19,7 @@ buildPythonPackage rec {
pname = "mayavi";
version = "4.8.1";
format = "setuptools";

disabled = pythonOlder "3.8";
disabled = pythonOlder "3.8" || pythonAtLeast "3.11";
Copy link
Contributor

Choose a reason for hiding this comment

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

The PR, nor the commit message, nor the nix file itself includes a comment explaining why is this disabled. Note also f409f15 which perhaps was merged in parallel without you knowing. I also wonder how is this relevant to the PR :)

@@ -6660,8 +6662,7 @@ self: super: with self; {
maya = callPackage ../development/python-modules/maya { };

mayavi = pkgs.libsForQt5.callPackage ../development/python-modules/mayavi {
inherit buildPythonPackage pythonOlder;
inherit (self) pyface pygments numpy packaging vtk traitsui envisage apptools pyqt5;
inherit (self) buildPythonPackage pythonOlder pythonAtLeast pyface pygments numpy packaging vtk traitsui envisage apptools pyqt5;
Copy link
Contributor

Choose a reason for hiding this comment

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

Also don't forget to revert the change for mayavi from here.

@doronbehar
Copy link
Contributor

Reverting mayavi changes in #310111 . The author of this PR should have taken responsibility for their rashness and inattentiveness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

python3Packages.torchmetrics: tests.check fails due to duplicate packages