| 7 Sep 2025 |
| adrian-gierakowski joined the room. | 12:08:58 |
adrian-gierakowski | Hi all | 12:09:16 |
| 8 Sep 2025 |
| Gregor Burger joined the room. | 15:27:10 |
Gaétan Lepage | It was great meeting (some of) you guys at NixCon!
Have you had a chance to look at the nix-community hydra situation connor (he/him) (UTC+2)? | 22:29:30 |
connor (he/him) | I have not :( | 23:59:17 |
| 9 Sep 2025 |
zowoq |
the nix-community hydra situation
Is there a problem with it?
| 01:12:32 |
connor (he/him) | Gaétan had mentioned something about (I think, sorry brain is fuzzy from travel) no recent version of PyTorch, either from being outdated or from the build failing | 02:10:08 |
Gaétan Lepage | Yes, I was talking about the nvidia (cudaSupport = true) jobset. I have the impression that I didn't get any cache-hits on these packages recently. | 08:28:11 |
Gaétan Lepage | Maybe there is nothing wrong and we simply need to wait for nix-community's hydra to catch up. | 08:28:39 |
Hugo | Hello!
I am trying to launch tests that rely on CUDA, following help from Gaétan Lepage yesterday, but I do not succeed. My host is running nixpkgs 25.05, with a clone of nixpkgs/master in the current directory.
Any idea how to get this to run?
| 09:36:10 |
Hugo | nix-build -I nixpkgs=. --arg config '{ allowUnfree = true; cudaSupport = true;}' -A python313Packages.triton.tests.axpy-cuda.gpuCheck
this derivation will be built:
/nix/store/2m1zkm221qr6ziw2qkbds3r37r57f7xj-test-cuda.drv
building '/nix/store/2m1zkm221qr6ziw2qkbds3r37r57f7xj-test-cuda.drv'...
Traceback (most recent call last):
File "/nix/store/biwmrywsnh5nvfxg13d319cx65956rvc-tester-cuda/bin/tester-cuda", line 38, in <module>
x = torch.rand(size, device='cuda')
File "/nix/store/419qp86g5l617y4pv5m0fgj04rhfnxrp-python3-3.13.6-env/lib/python3.13/site-packages/torch/cuda/__init__.py", line 412, in _lazy_init
torch._C._cuda_init()
~~~~~~~~~~~~~~~~~~~^^
RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx
error: builder for '/nix/store/2m1zkm221qr6ziw2qkbds3r37r57f7xj-test-cuda.drv' failed with exit code 1;
last 7 log lines:
> Traceback (most recent call last):
> File "/nix/store/biwmrywsnh5nvfxg13d319cx65956rvc-tester-cuda/bin/tester-cuda", line 38, in <module>
> x = torch.rand(size, device='cuda')
> File "/nix/store/419qp86g5l617y4pv5m0fgj04rhfnxrp-python3-3.13.6-env/lib/python3.13/site-packages/torch/cuda/__init__.py", line 412, in _lazy_init
> torch._C._cuda_init()
> ~~~~~~~~~~~~~~~~~~~^^
> RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx
For full logs, run:
nix log /nix/store/2m1zkm221qr6ziw2qkbds3r37r57f7xj-test-cuda.drv
python
Python 3.12.11 (main, Jun 3 2025, 15:41:47) [GCC 14.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.cuda.is_available()
True
nix-shell -I nixpkgs=. --arg config '{ allowUnfree = true; cudaSupport = true;}' -p python312Packages.torch
[nix-shell:~/Repos/hoh/nixpkgs]$ python
Python 3.12.11 (main, Jun 3 2025, 15:41:47) [GCC 14.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.cuda.is_available()
True
| 09:36:11 |
| Albert Larsan joined the room. | 13:31:04 |
Albert Larsan | Hello! I am packaging the cuda plugin for xmrig. It supports all the way down to cuda 8, so it is made to use the cuda toolkit. I am able to make it build with the split packages, but it involves ugly hacks with env vars, as the file /nix/store/vg32acb8vlqyhkhabbgvmralfw0kwhi3-cuda_cudart-12.8.90-dev/include/cuda_runtime.h can't find the crt/host_config.h file. | 13:56:49 |
| aciceri changed their display name from zrsk to aciceri. | 15:01:30 |
Albert Larsan | Fixed it by using the "root" packages instead of using specific outputs | 15:33:48 |
| PhiliPdB joined the room. | 18:44:33 |
connor (he/him) | You're trying to run tests which require a GPU in the sandbox. Make sure you've enabled the nix-required-mounts NixOS module option (https://search.nixos.org/options?channel=25.05&show=programs.nix-required-mounts.presets.nvidia-gpu.enable&query=nix-required-mounts) and try again. | 23:29:21 |
connor (he/him) | Do you have an example of what you were trying to do previously which wasn't working? | 23:31:08 |
| 10 Sep 2025 |
| SomeoneSerge (back on matrix) changed their display name from SomeoneSerge (@nixcon & back on matrix) to SomeoneSerge (back on matrix). | 00:35:23 |
SomeoneSerge (back on matrix) | softdep issues again? | 00:43:26 |
zowoq | It only ever takes a couple of hours for our hydra to catch up. After the latest staging-next merge and subsequent nixos-unstable-small channel bump it took less than five hours for the full rebuild of the cuda jobset. | 04:06:52 |
Albert Larsan | Here is my first version, before I went ahead and created a PR to add it to upstream nixpkgs: https://git.sr.ht/~albertlarsan68/nur/tree/8fcbc4612bcd097065c5691ca18cbc8f0e0825a0/item/pkgs/xmrig-cuda-mo/default.nix
And here is the pr: https://github.com/NixOS/nixpkgs/pull/441494 | 05:59:05 |
Hugo | Thanks connor (he/him) (UTC+2) .
I can now launch the triton test.
However, when attempting to launch tests on the unstloth library, nix builds Torch for Python313 instead of Python 312. Torch is not supported on Python 3.13 yet - it still attempts to build however which confuses me.
diff --git a/pkgs/development/python-modules/unsloth/default.nix b/pkgs/development/python-modules/unsloth/default.nix
index 73f94721b5e0..e6473c3bfa1d 100644
--- a/pkgs/development/python-modules/unsloth/default.nix
+++ b/pkgs/development/python-modules/unsloth/default.nix
@@ -27,6 +27,9 @@
hf-transfer,
diffusers,
torchvision,
+
+ # tests
+ cudaPackages,
}:
buildPythonPackage rec {
@@ -85,6 +88,19 @@ buildPythonPackage rec {
# NotImplementedError: Unsloth: No NVIDIA GPU found? Unsloth currently only supports GPUs!
dontUsePythonImportsCheck = true;
+ passthru.tests = {
+ import-cuda = cudaPackages.writeGpuTestPython
+ {
+ libraries = ps: [
+ ps.torch
+ ];
+ }
+ ''
+ import unsloth
+ unsloth.test()
+ '';
+ };
+
meta = {
description = "Finetune Llama 3.3, DeepSeek-R1 & Reasoning LLMs 2x faster with 70% less memory";
homepage = "https://github.com/unslothai/unsloth";
nix-build -I nixpkgs=. --arg config '{ allowUnfree = true; cudaSupport = true;}' -A python312Packages.unsloth.tests.import-cuda
| 07:12:50 |
Gaétan Lepage | Why shouldn't torch support 3.13? | 07:15:31 |
Hugo | Sorry, tensorflow does not support Python 3.13 | 07:16:41 |
Hugo | How can I get the passthru tests use the Python interpreter specified ? | 07:20:59 |
SomeoneSerge (back on matrix) | connor (he/him) (UTC+2): are 7AM (2PM UTC) meetings still OK for you? Would you like to reschedule to a different time? We could have Kevin Mittman join us the next time or other | 07:48:33 |
SomeoneSerge (back on matrix) | Oh cool, I wonder if this is the 1st project consuming cuda or torch via meson i nixpkgs | 07:52:33 |
SomeoneSerge (back on matrix) | AFAIK NVIDIA has never had any objections to ZLUDA, only AMD did | 07:55:35 |
Hugo | I managed to launch a test on my package with CUDA enabled, but I get an issue from triton not finding a C compiler. Does that ring a bell to someone ?
RuntimeError: Failed to find C compiler. Please specify via CC environment variable or set triton.knobs.build.impl.
I share my work in progress in a draft PR here: https://github.com/NixOS/nixpkgs/pull/441728
| 09:59:29 |