Kernels
danieldk HF Staff commited on
Commit
7cf630c
·
1 Parent(s): 5c7b1c3

Update flake

Browse files
Files changed (2) hide show
  1. flake.lock +13 -14
  2. flake.nix +6 -6
flake.lock CHANGED
@@ -17,11 +17,11 @@
17
  },
18
  "flake-compat_2": {
19
  "locked": {
20
- "lastModified": 1733328505,
21
- "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
22
  "owner": "edolstra",
23
  "repo": "flake-compat",
24
- "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
25
  "type": "github"
26
  },
27
  "original": {
@@ -73,11 +73,11 @@
73
  "nixpkgs": "nixpkgs"
74
  },
75
  "locked": {
76
- "lastModified": 1753354560,
77
- "narHash": "sha256-vmOfRmr0Qm/IbZTWB2sBn+UFrABSTTA/cTg+m27Yt/E=",
78
  "owner": "huggingface",
79
  "repo": "hf-nix",
80
- "rev": "7f2aceda2a2e72cd573bdb25e5c0667fd75f89d3",
81
  "type": "github"
82
  },
83
  "original": {
@@ -98,33 +98,32 @@
98
  ]
99
  },
100
  "locked": {
101
- "lastModified": 1753602110,
102
- "narHash": "sha256-AEt6rSqYqSTgsKZ+2BuGezurpVC2gm+Jpjqg2D54n7E=",
103
  "owner": "huggingface",
104
  "repo": "kernel-builder",
105
- "rev": "2021ea0f8d9e63ada986f189d077fc301cc1c3c9",
106
  "type": "github"
107
  },
108
  "original": {
109
  "owner": "huggingface",
110
- "ref": "torch-2.8",
111
  "repo": "kernel-builder",
112
  "type": "github"
113
  }
114
  },
115
  "nixpkgs": {
116
  "locked": {
117
- "lastModified": 1752785354,
118
- "narHash": "sha256-Y33ryUz7MPqKrZwlbQcsYCUz2jAJCacRf8jbs0tYUlA=",
119
  "owner": "nixos",
120
  "repo": "nixpkgs",
121
- "rev": "d38025438a6ee456758dc03188ca6873a415463b",
122
  "type": "github"
123
  },
124
  "original": {
125
  "owner": "nixos",
 
126
  "repo": "nixpkgs",
127
- "rev": "d38025438a6ee456758dc03188ca6873a415463b",
128
  "type": "github"
129
  }
130
  },
 
17
  },
18
  "flake-compat_2": {
19
  "locked": {
20
+ "lastModified": 1747046372,
21
+ "narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
22
  "owner": "edolstra",
23
  "repo": "flake-compat",
24
+ "rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
25
  "type": "github"
26
  },
27
  "original": {
 
73
  "nixpkgs": "nixpkgs"
74
  },
75
  "locked": {
76
+ "lastModified": 1759493343,
77
+ "narHash": "sha256-8fhl0gwMAnOkQbogPIVq+Fha+Yeq52FaRXfwF+F9Q+k=",
78
  "owner": "huggingface",
79
  "repo": "hf-nix",
80
+ "rev": "b1fc3a18b52447a0f24bc6884418edc5e66082b9",
81
  "type": "github"
82
  },
83
  "original": {
 
98
  ]
99
  },
100
  "locked": {
101
+ "lastModified": 1759516823,
102
+ "narHash": "sha256-UJVvZHtS9c64Dm4iZRaOKWB+VHI7jzcazGH57KXWeg8=",
103
  "owner": "huggingface",
104
  "repo": "kernel-builder",
105
+ "rev": "e13610a05f67b7296be9ead89ad172a0a088a1c3",
106
  "type": "github"
107
  },
108
  "original": {
109
  "owner": "huggingface",
 
110
  "repo": "kernel-builder",
111
  "type": "github"
112
  }
113
  },
114
  "nixpkgs": {
115
  "locked": {
116
+ "lastModified": 1755963616,
117
+ "narHash": "sha256-6yD0ww/S8n+U2uPYcJZ3DRURP8Kx036GRpR2uPNZroE=",
118
  "owner": "nixos",
119
  "repo": "nixpkgs",
120
+ "rev": "73e96df7cff5783f45e21342a75a1540c4eddce4",
121
  "type": "github"
122
  },
123
  "original": {
124
  "owner": "nixos",
125
+ "ref": "nixos-unstable-small",
126
  "repo": "nixpkgs",
 
127
  "type": "github"
128
  }
129
  },
flake.nix CHANGED
@@ -2,7 +2,7 @@
2
  description = "Flake for Hopper Flash Attention kernel";
3
 
4
  inputs = {
5
- kernel-builder.url = "github:huggingface/kernel-builder/torch-2.8";
6
  };
7
 
8
  outputs =
@@ -11,24 +11,24 @@
11
  kernel-builder,
12
  }:
13
  kernel-builder.lib.genFlakeOutputs {
 
14
  path = ./.;
15
- rev = self.shortRev or self.dirtyShortRev or self.lastModifiedDate;
16
- # Building with CDUA later than 12.4 fails with:
17
  #
18
  # error: 'ptxas' died due to signal 11 (Invalid memory reference)
19
  #
20
  # So, build for 12.4 only and copy to all the other build variants
21
  # by hand (which works fine thanks to backward compat).
22
- torchVersions = [
23
  {
24
- torchVersion = "2.8";
25
  cudaVersion = "12.4";
26
  cxx11Abi = true;
27
  systems = [
28
  "x86_64-linux"
29
  "aarch64-linux"
30
  ];
31
- upstreamVariant = true;
32
  }
33
  ];
34
  };
 
2
  description = "Flake for Hopper Flash Attention kernel";
3
 
4
  inputs = {
5
+ kernel-builder.url = "github:huggingface/kernel-builder";
6
  };
7
 
8
  outputs =
 
11
  kernel-builder,
12
  }:
13
  kernel-builder.lib.genFlakeOutputs {
14
+ inherit self;
15
  path = ./.;
16
+ # Building with CUDA later than 12.4 fails with:
 
17
  #
18
  # error: 'ptxas' died due to signal 11 (Invalid memory reference)
19
  #
20
  # So, build for 12.4 only and copy to all the other build variants
21
  # by hand (which works fine thanks to backward compat).
22
+ torchVersions = _: [
23
  {
24
+ torchVersion = "2.9";
25
  cudaVersion = "12.4";
26
  cxx11Abi = true;
27
  systems = [
28
  "x86_64-linux"
29
  "aarch64-linux"
30
  ];
31
+ bundleBuild = true;
32
  }
33
  ];
34
  };