From f403545e26a9b61d804ae4d8029e4b9000233793 Mon Sep 17 00:00:00 2001 From: Shai Shmuel Date: Sun, 8 Nov 2026 15:46:54 +0200 Subject: [PATCH] build(server): serve the flash-attn wheel from our Hugging Face copy `uv lock --check` fetches the direct-URL flash-attn wheel on every run, so every Python job and image build depended on GitHub's release download path, which timed out for hours on 2026-11-05 and 2026-11-08. The wheel is now an unmodified copy in the superlinked/sie-wheels repository, pinned to a revision; the sha256 in uv.lock and in the CUDA 12 bundle locks is the upstream file's and does not change. The two bundle locks are recompiled with their previous cutoffs, so only the URL and the manifest hashes move. Co-Authored-By: Claude Fable 5.1 --- .../bundle-locks/cuda12-default-amd64/manifest.json | 4 ++-- .../bundle-locks/cuda12-default-amd64/pylock.toml | 2 +- .../bundle-locks/cuda12-transformers5-amd64/manifest.json | 4 ++-- .../bundle-locks/cuda12-transformers5-amd64/pylock.toml | 2 +- packages/sie_server/bundles/default.yaml | 2 +- packages/sie_server/bundles/transformers5.yaml | 2 +- packages/sie_server/pyproject.toml | 7 +++++-- uv.lock | 6 +++--- 8 files changed, 16 insertions(+), 13 deletions(-) diff --git a/packages/sie_server/bundle-locks/cuda12-default-amd64/manifest.json b/packages/sie_server/bundle-locks/cuda12-default-amd64/manifest.json index cad60dfff..ab55a6112 100644 --- a/packages/sie_server/bundle-locks/cuda12-default-amd64/manifest.json +++ b/packages/sie_server/bundle-locks/cuda12-default-amd64/manifest.json @@ -7,10 +7,10 @@ "https://pypi.org/simple" ], "inputs": { - "requirements_sha256": "1da4cc3c38305188df3a38287ca48a750637d2b316f6c7eb933e07e1ae665ee0", + "requirements_sha256": "e0fa717e278923313f4d0dcc72ffdd1e0d5d30116fdd0da9da631bb2f19e02ab", "root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24" }, - "lock_sha256": "d153383d41b9c1dbbc37abac085f8c3b58ca91b546e62f602d53b0caf467372d", + "lock_sha256": "326af35075dac1d4598257f9b485ec0710888909d09683b35fcd2afffabcf2bb", "policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f", "root_exclude_newer": "2026-11-06T20:00:00Z", "schema_version": 1, diff --git a/packages/sie_server/bundle-locks/cuda12-default-amd64/pylock.toml b/packages/sie_server/bundle-locks/cuda12-default-amd64/pylock.toml index 6a2cc11ff..4cb9e3f11 100644 --- a/packages/sie_server/bundle-locks/cuda12-default-amd64/pylock.toml +++ b/packages/sie_server/bundle-locks/cuda12-default-amd64/pylock.toml @@ -184,7 +184,7 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/73/70/3593ccb1299f844 name = "flash-attn" version = "2.7.4+cu129torch2.9" marker = "sys_platform == 'linux'" -archive = { url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.11/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hashes = { sha256 = "0a8f6219e61f8ff923cfd2cdad105d95a66106a6c9e754486d778c3a25e7707f" } } +archive = { url = "https://huggingface.co/superlinked/sie-wheels/resolve/43a7ce6286d60d5b8feaad1417e20a412b4b761e/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hashes = { sha256 = "0a8f6219e61f8ff923cfd2cdad105d95a66106a6c9e754486d778c3a25e7707f" } } [[packages]] name = "flatbuffers" diff --git a/packages/sie_server/bundle-locks/cuda12-transformers5-amd64/manifest.json b/packages/sie_server/bundle-locks/cuda12-transformers5-amd64/manifest.json index 1fd7723b1..3906d0c0b 100644 --- a/packages/sie_server/bundle-locks/cuda12-transformers5-amd64/manifest.json +++ b/packages/sie_server/bundle-locks/cuda12-transformers5-amd64/manifest.json @@ -7,10 +7,10 @@ "https://pypi.org/simple" ], "inputs": { - "requirements_sha256": "5a97f31f45bddf41d827566173ad0200797fecd4a0037f70db40885e0ab5dbb3", + "requirements_sha256": "687af01a6fcb60cac60310c97162355e981781188602840f7cb7f01789222b50", "root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24" }, - "lock_sha256": "e6bf0d56c8f02f880ca06a9f3066ee38bd70d3ec1317b36da4c72cc13267a5a8", + "lock_sha256": "5b2d53892ce0814a0719f063f84a8ccfb9b7ca727d4aa053845b02d7c6f99270", "policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f", "root_exclude_newer": "2026-11-06T20:00:00Z", "schema_version": 1, diff --git a/packages/sie_server/bundle-locks/cuda12-transformers5-amd64/pylock.toml b/packages/sie_server/bundle-locks/cuda12-transformers5-amd64/pylock.toml index fcd4ca784..c6cd666c8 100644 --- a/packages/sie_server/bundle-locks/cuda12-transformers5-amd64/pylock.toml +++ b/packages/sie_server/bundle-locks/cuda12-transformers5-amd64/pylock.toml @@ -77,7 +77,7 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/2d/ed/dfe19c4da779957 name = "flash-attn" version = "2.7.4+cu129torch2.9" marker = "sys_platform == 'linux'" -archive = { url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.11/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hashes = { sha256 = "0a8f6219e61f8ff923cfd2cdad105d95a66106a6c9e754486d778c3a25e7707f" } } +archive = { url = "https://huggingface.co/superlinked/sie-wheels/resolve/43a7ce6286d60d5b8feaad1417e20a412b4b761e/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hashes = { sha256 = "0a8f6219e61f8ff923cfd2cdad105d95a66106a6c9e754486d778c3a25e7707f" } } [[packages]] name = "fsspec" diff --git a/packages/sie_server/bundles/default.yaml b/packages/sie_server/bundles/default.yaml index 98d27b4ab..8fb6de52e 100644 --- a/packages/sie_server/bundles/default.yaml +++ b/packages/sie_server/bundles/default.yaml @@ -109,5 +109,5 @@ deps: docling: '>=2.99,<2.100' # Flash Attention 2 — CUDA only, prebuilt wheel flash-attn: - url: https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.11/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl + url: https://huggingface.co/superlinked/sie-wheels/resolve/43a7ce6286d60d5b8feaad1417e20a412b4b761e/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl marker: sys_platform == 'linux' diff --git a/packages/sie_server/bundles/transformers5.yaml b/packages/sie_server/bundles/transformers5.yaml index f38e6dd7d..3d1f4af0d 100644 --- a/packages/sie_server/bundles/transformers5.yaml +++ b/packages/sie_server/bundles/transformers5.yaml @@ -77,5 +77,5 @@ deps: marker: sys_platform == 'linux' # The prebuilt wheel the default bundle uses (torch 2.9, CUDA 12.9, cp312). flash-attn: - url: https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.11/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl + url: https://huggingface.co/superlinked/sie-wheels/resolve/43a7ce6286d60d5b8feaad1417e20a412b4b761e/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl marker: sys_platform == 'linux' diff --git a/packages/sie_server/pyproject.toml b/packages/sie_server/pyproject.toml index 918173acb..6093813d7 100644 --- a/packages/sie_server/pyproject.toml +++ b/packages/sie_server/pyproject.toml @@ -161,8 +161,11 @@ packages = ["src/sie_server"] [tool.uv.sources] # Prebuilt flash-attn wheel for torch 2.9 + cu129 (official wheels only go up to torch 2.8). # Platform-specific: Linux x86_64 only. Non-Linux users should not install the flash-attn extra. -# Source: mjun0812/flash-attention-prebuild-wheels v0.7.11 (first release with cu129torch2.9 cp312 manylinux). -flash-attn = { url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.11/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", marker = "sys_platform == 'linux'" } +# Built by mjun0812/flash-attention-prebuild-wheels v0.7.11 (first release with cu129torch2.9 cp312 +# manylinux); served from our Hugging Face copy, pinned to a repository revision, because every +# `uv lock --check` fetches this URL and GitHub release downloads have timed out for hours at a time. +# The sha256 recorded in uv.lock is the upstream file's hash. +flash-attn = { url = "https://huggingface.co/superlinked/sie-wheels/resolve/43a7ce6286d60d5b8feaad1417e20a412b4b761e/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", marker = "sys_platform == 'linux'" } [dependency-groups] dev = [] diff --git a/uv.lock b/uv.lock index 7553a6e41..6303edf47 100644 --- a/uv.lock +++ b/uv.lock @@ -1615,13 +1615,13 @@ wheels = [ [[package]] name = "flash-attn" version = "2.7.4+cu129torch2.9" -source = { url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.11/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl" } +source = { url = "https://huggingface.co/superlinked/sie-wheels/resolve/43a7ce6286d60d5b8feaad1417e20a412b4b761e/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl" } dependencies = [ { name = "einops", marker = "sys_platform == 'linux'" }, { name = "torch", version = "2.9.1+cu129", source = { registry = "https://download.pytorch.org/whl/cu129" }, marker = "sys_platform == 'linux'" }, ] wheels = [ - { url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.11/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0a8f6219e61f8ff923cfd2cdad105d95a66106a6c9e754486d778c3a25e7707f" }, + { url = "https://huggingface.co/superlinked/sie-wheels/resolve/43a7ce6286d60d5b8feaad1417e20a412b4b761e/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0a8f6219e61f8ff923cfd2cdad105d95a66106a6c9e754486d778c3a25e7707f" }, ] [package.metadata] @@ -5800,7 +5800,7 @@ requires-dist = [ { name = "einops", specifier = ">=0.8,<1" }, { name = "fastapi", specifier = ">=0.115,<1" }, { name = "flagembedding", specifier = ">=1.3,<2" }, - { name = "flash-attn", marker = "sys_platform == 'linux' and extra == 'flash-attn'", url = "https://github.com/mjun0812/flash-attention-prebuild-wheels/releases/download/v0.7.11/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl" }, + { name = "flash-attn", marker = "sys_platform == 'linux' and extra == 'flash-attn'", url = "https://huggingface.co/superlinked/sie-wheels/resolve/43a7ce6286d60d5b8feaad1417e20a412b4b761e/flash_attn-2.7.4+cu129torch2.9-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl" }, { name = "gliclass", specifier = ">=0.1.17,<1" }, { name = "gliformer", specifier = "==0.1.2" }, { name = "gliner", specifier = ">=0.2.26,<1" },