From fa834accf9676c98cc96aa5a136949164ddc1dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Sat, 18 Oct 2025 08:21:11 +0000 Subject: [PATCH 1/4] Update to final Torch 2.9.0 --- flake.lock | 7 ++++--- flake.nix | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 9660e076..338830d4 100644 --- a/flake.lock +++ b/flake.lock @@ -73,15 +73,16 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1760640803, - "narHash": "sha256-3LCK4LbxI92XRVf9Lsc7IOJ4dtBYvDICYIC9Da12cUg=", + "lastModified": 1760712426, + "narHash": "sha256-i5uuhnJPxOrd0dC8+btp31WMfzPDL8Uwz0TPG2n6nHE=", "owner": "huggingface", "repo": "hf-nix", - "rev": "657385c0b02121caead3a2bc018bbbcbaeb6b2ee", + "rev": "e63946fb160757b0cbd834107d3d7f5f6702cbc9", "type": "github" }, "original": { "owner": "huggingface", + "ref": "torch-2.9.0-final", "repo": "hf-nix", "type": "github" } diff --git a/flake.nix b/flake.nix index 1d1f4e66..a98bdda1 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-2.9.0-final"; }; outputs = From 37f7c73d39dba71b966aa9f0c15ebef7be88ef21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Sun, 19 Oct 2025 11:07:59 +0200 Subject: [PATCH 2/4] Temporarily re-enable macOS source builds --- versions.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/versions.nix b/versions.nix index af4fe91c..59352cca 100644 --- a/versions.nix +++ b/versions.nix @@ -60,6 +60,7 @@ metal = true; systems = [ "aarch64-darwin" ]; bundleBuild = true; + sourceBuild = true; } { torchVersion = "2.9"; @@ -124,6 +125,7 @@ metal = true; systems = [ "aarch64-darwin" ]; bundleBuild = true; + sourceBuild = true; } # Non-standard versions; not included in bundle builds. From 60110a1f872dbeab8f07a9e4bba1bde8d268e59c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Sun, 19 Oct 2025 11:09:15 +0200 Subject: [PATCH 3/4] Back to hf-nix main --- examples/relu/flake.lock | 164 +++++++++++++++++++++++++++++++++++++++ flake.lock | 5 +- flake.nix | 2 +- 3 files changed, 167 insertions(+), 4 deletions(-) create mode 100644 examples/relu/flake.lock diff --git a/examples/relu/flake.lock b/examples/relu/flake.lock new file mode 100644 index 00000000..c64c9b07 --- /dev/null +++ b/examples/relu/flake.lock @@ -0,0 +1,164 @@ +{ + "nodes": { + "flake-compat": { + "locked": { + "lastModified": 1747046372, + "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-compat_2": { + "locked": { + "lastModified": 1747046372, + "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_2": { + "inputs": { + "systems": "systems_2" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "hf-nix": { + "inputs": { + "flake-compat": "flake-compat_2", + "flake-utils": "flake-utils_2", + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1760814603, + "narHash": "sha256-i5uuhnJPxOrd0dC8+btp31WMfzPDL8Uwz0TPG2n6nHE=", + "owner": "huggingface", + "repo": "hf-nix", + "rev": "c0b62ec3d0abb11dd2d960e3dfee3a46fc46d111", + "type": "github" + }, + "original": { + "owner": "huggingface", + "repo": "hf-nix", + "type": "github" + } + }, + "kernel-builder": { + "inputs": { + "flake-compat": "flake-compat", + "flake-utils": "flake-utils", + "hf-nix": "hf-nix", + "nixpkgs": [ + "kernel-builder", + "hf-nix", + "nixpkgs" + ] + }, + "locked": { + "path": "../..", + "type": "path" + }, + "original": { + "path": "../..", + "type": "path" + }, + "parent": [] + }, + "nixpkgs": { + "locked": { + "lastModified": 1755963616, + "narHash": "sha256-6yD0ww/S8n+U2uPYcJZ3DRURP8Kx036GRpR2uPNZroE=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "73e96df7cff5783f45e21342a75a1540c4eddce4", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable-small", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "kernel-builder": "kernel-builder" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.lock b/flake.lock index 338830d4..3a4a185b 100644 --- a/flake.lock +++ b/flake.lock @@ -73,16 +73,15 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1760712426, + "lastModified": 1760814603, "narHash": "sha256-i5uuhnJPxOrd0dC8+btp31WMfzPDL8Uwz0TPG2n6nHE=", "owner": "huggingface", "repo": "hf-nix", - "rev": "e63946fb160757b0cbd834107d3d7f5f6702cbc9", + "rev": "c0b62ec3d0abb11dd2d960e3dfee3a46fc46d111", "type": "github" }, "original": { "owner": "huggingface", - "ref": "torch-2.9.0-final", "repo": "hf-nix", "type": "github" } diff --git a/flake.nix b/flake.nix index a98bdda1..1d1f4e66 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-2.9.0-final"; + hf-nix.url = "github:huggingface/hf-nix"; }; outputs = From 5e92e052bee935075dcef49af615c4e955092f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Sun, 19 Oct 2025 09:11:03 +0000 Subject: [PATCH 4/4] Remove accidentally-added example flake.lock --- examples/relu/flake.lock | 164 --------------------------------------- 1 file changed, 164 deletions(-) delete mode 100644 examples/relu/flake.lock diff --git a/examples/relu/flake.lock b/examples/relu/flake.lock deleted file mode 100644 index c64c9b07..00000000 --- a/examples/relu/flake.lock +++ /dev/null @@ -1,164 +0,0 @@ -{ - "nodes": { - "flake-compat": { - "locked": { - "lastModified": 1747046372, - "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, - "flake-compat_2": { - "locked": { - "lastModified": 1747046372, - "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=", - "owner": "edolstra", - "repo": "flake-compat", - "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885", - "type": "github" - }, - "original": { - "owner": "edolstra", - "repo": "flake-compat", - "type": "github" - } - }, - "flake-utils": { - "inputs": { - "systems": "systems" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "flake-utils_2": { - "inputs": { - "systems": "systems_2" - }, - "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", - "owner": "numtide", - "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", - "type": "github" - }, - "original": { - "owner": "numtide", - "repo": "flake-utils", - "type": "github" - } - }, - "hf-nix": { - "inputs": { - "flake-compat": "flake-compat_2", - "flake-utils": "flake-utils_2", - "nixpkgs": "nixpkgs" - }, - "locked": { - "lastModified": 1760814603, - "narHash": "sha256-i5uuhnJPxOrd0dC8+btp31WMfzPDL8Uwz0TPG2n6nHE=", - "owner": "huggingface", - "repo": "hf-nix", - "rev": "c0b62ec3d0abb11dd2d960e3dfee3a46fc46d111", - "type": "github" - }, - "original": { - "owner": "huggingface", - "repo": "hf-nix", - "type": "github" - } - }, - "kernel-builder": { - "inputs": { - "flake-compat": "flake-compat", - "flake-utils": "flake-utils", - "hf-nix": "hf-nix", - "nixpkgs": [ - "kernel-builder", - "hf-nix", - "nixpkgs" - ] - }, - "locked": { - "path": "../..", - "type": "path" - }, - "original": { - "path": "../..", - "type": "path" - }, - "parent": [] - }, - "nixpkgs": { - "locked": { - "lastModified": 1755963616, - "narHash": "sha256-6yD0ww/S8n+U2uPYcJZ3DRURP8Kx036GRpR2uPNZroE=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "73e96df7cff5783f45e21342a75a1540c4eddce4", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixos-unstable-small", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "kernel-builder": "kernel-builder" - } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - }, - "systems_2": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } - } - }, - "root": "root", - "version": 7 -}