From fb709baf95b4d590035e8cfbfd0910b021cd164e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Tue, 4 Nov 2025 08:24:44 +0000 Subject: [PATCH 1/3] Switch to binary Torch wheels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hopefully the second time is more lucky 🤞. --- versions.nix | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/versions.nix b/versions.nix index deb295dd..5be81bef 100644 --- a/versions.nix +++ b/versions.nix @@ -5,7 +5,6 @@ cxx11Abi = true; systems = [ "x86_64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.8"; @@ -15,7 +14,6 @@ "x86_64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.8"; @@ -25,7 +23,6 @@ "x86_64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.8"; @@ -36,7 +33,6 @@ "aarch64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.8"; @@ -44,7 +40,6 @@ cxx11Abi = true; systems = [ "x86_64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.8"; @@ -52,7 +47,6 @@ cxx11Abi = true; systems = [ "x86_64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.8"; @@ -60,7 +54,6 @@ metal = true; systems = [ "aarch64-darwin" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.8"; @@ -79,7 +72,6 @@ cxx11Abi = true; systems = [ "x86_64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.9"; @@ -90,7 +82,6 @@ "aarch64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.9"; @@ -101,7 +92,6 @@ "aarch64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.9"; @@ -112,7 +102,6 @@ "aarch64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.9"; @@ -120,7 +109,6 @@ cxx11Abi = true; systems = [ "x86_64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.9"; @@ -128,7 +116,6 @@ cxx11Abi = true; systems = [ "x86_64-linux" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.9"; @@ -136,7 +123,6 @@ metal = true; systems = [ "aarch64-darwin" ]; bundleBuild = true; - sourceBuild = true; } { torchVersion = "2.9"; From f599901f1c993a0d08a12c55c6fb8d950648df59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Tue, 4 Nov 2025 11:56:43 +0000 Subject: [PATCH 2/3] Try torch-bin glibc fix --- flake.lock | 7 ++++--- flake.nix | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index f1af9f5a..a4c2f769 100644 --- a/flake.lock +++ b/flake.lock @@ -73,15 +73,16 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1761756835, - "narHash": "sha256-Vjrv8ZIhkQRgQ3MHGVFaj/fUcE4yuGr+vnoKYRwWmYw=", + "lastModified": 1762255629, + "narHash": "sha256-gf3TJcaiHdw3dvLL7RF6hc/5BLzQDQj5oakFrKZkOZo=", "owner": "huggingface", "repo": "hf-nix", - "rev": "6839b6998be18679992978c2f3abddc902276280", + "rev": "0226417af2deca3d7896217b24562f78a8b49ea0", "type": "github" }, "original": { "owner": "huggingface", + "ref": "torch-bin-glibc-path", "repo": "hf-nix", "type": "github" } diff --git a/flake.nix b/flake.nix index 081180f2..bcc77931 100644 --- a/flake.nix +++ b/flake.nix @@ -5,7 +5,7 @@ flake-utils.url = "github:numtide/flake-utils"; nixpkgs.follows = "hf-nix/nixpkgs"; flake-compat.url = "github:edolstra/flake-compat"; - hf-nix.url = "github:huggingface/hf-nix"; + hf-nix.url = "github:huggingface/hf-nix/torch-bin-glibc-path"; }; outputs = From f8ad045b1c871b0412a0b6ab25455d784050bc56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Tue, 4 Nov 2025 15:00:35 +0000 Subject: [PATCH 3/3] Update hf-nix --- flake.lock | 5 ++--- flake.nix | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index a4c2f769..e7602650 100644 --- a/flake.lock +++ b/flake.lock @@ -73,16 +73,15 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1762255629, + "lastModified": 1762268370, "narHash": "sha256-gf3TJcaiHdw3dvLL7RF6hc/5BLzQDQj5oakFrKZkOZo=", "owner": "huggingface", "repo": "hf-nix", - "rev": "0226417af2deca3d7896217b24562f78a8b49ea0", + "rev": "25c23c765a907d1a5528c5ce65c58a73e974603f", "type": "github" }, "original": { "owner": "huggingface", - "ref": "torch-bin-glibc-path", "repo": "hf-nix", "type": "github" } diff --git a/flake.nix b/flake.nix index bcc77931..081180f2 100644 --- a/flake.nix +++ b/flake.nix @@ -5,7 +5,7 @@ flake-utils.url = "github:numtide/flake-utils"; nixpkgs.follows = "hf-nix/nixpkgs"; flake-compat.url = "github:edolstra/flake-compat"; - hf-nix.url = "github:huggingface/hf-nix/torch-bin-glibc-path"; + hf-nix.url = "github:huggingface/hf-nix"; }; outputs =