Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "1f2350156ca95ae0ed398f20d94458135d6c9ac1fd4985419e1ea6873576e718",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "1bc8a0f417323c67420e71cf16b71e562c7db5842b50d4c5cd60efea8106141b",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "061447538dfdd7d170cb548e3eb982182a043ceae99c4c66427456dc06dc9bc5",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "47da54f9a2a6ce59233efb3762828f4434f47a61055751344d29711a3e297782",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "d067332de0de11f6b0f6f25b024bdc2a8c5f65e05b549dc275a450d5a269fc42",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "d97eba00131e49046d362c3f9569d160cec2ea7ee115f9a18cc6c136650e935c",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "10452672afe0787b16f22684f42ac29392f53d8c5ecdadd67f30f8db7f774eaa",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "e8fce68efb124f1c2926b788436c9ad3b254c5142a8535b4a8d327b38439ac35",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "1f2350156ca95ae0ed398f20d94458135d6c9ac1fd4985419e1ea6873576e718",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "326af35075dac1d4598257f9b485ec0710888909d09683b35fcd2afffabcf2bb",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"unsafe-best-match"
],
"inputs": {
"requirements_sha256": "943a74a3f4565e0b7b3bab2f87080526604d1e3923a39ed287d444630d33b94c",
"requirements_sha256": "f9474ed3192929caef755606cd3abca88363375c69f630e582ccc52bd745795e",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "5f21c280484dc4f886c19cd01cc727342f6fe8347082447c19b1dcd8a35d9935",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"lock_sha256": "190d0f37f69ab8e3baaa7c2d08bae52afde22eda1ff9d42dd72feb37138fe908",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
"source_pins_sha256": "4042e4637edf1c70def38d3f0ccccb56d13aa9f64e6d7a7e3efeec6dc32c5727",
"target": {
"architecture": "amd64",
"bundle": "sglang",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ version = "0.6.7.post3"
marker = "sys_platform == 'linux'"
wheels = [{ url = "https://files.pythonhosted.org/packages/91/64/f516081e983a35e3f52b7e525e2e62f1d6148c175eb24df32c8786776ba5/flashinfer_cubin-0.6.7.post3-py3-none-any.whl", upload-time = 2026-04-06T01:43:16Z, size = 294635743, hashes = { sha256 = "724cbce52f917dd06ebcb61fff2146c30b69cfdb341891d7c293249e414d6e35" } }]

[[packages]]
name = "flashinfer-jit-cache"
version = "0.6.7.post3+cu129"
marker = "sys_platform == 'linux'"
archive = { url = "https://github.com/flashinfer-ai/flashinfer/releases/download/v0.6.7.post3/flashinfer_jit_cache-0.6.7.post3+cu129-cp39-abi3-manylinux_2_28_x86_64.whl", hashes = { sha256 = "68458beb750a604935959bb1dba597da8fa4fcae15cb44c3b75354ee149fedba" } }

[[packages]]
name = "flashinfer-python"
version = "0.6.7.post3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"unsafe-best-match"
],
"inputs": {
"requirements_sha256": "378dabe9b77bc2c593a05e1113534e8f50093ca205d3344a7ba2e20fe660e38a",
"requirements_sha256": "0db0ae5aea7cb739be3c1711b6fd219fe5e654283a3b0b7043e29733a8edb6d7",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "176e49681671029c1ad5d91cca3635a979fe9d38241397c9d31aaf259062e8f1",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"lock_sha256": "c792a5ec633f306dbca60e3cd53379282aae84ef021960e5aaf101b856503719",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
"source_pins_sha256": "4042e4637edf1c70def38d3f0ccccb56d13aa9f64e6d7a7e3efeec6dc32c5727",
"target": {
"architecture": "amd64",
"bundle": "sglang-embedding",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ name = "flashinfer-cubin"
version = "0.6.7.post3"
wheels = [{ url = "https://files.pythonhosted.org/packages/91/64/f516081e983a35e3f52b7e525e2e62f1d6148c175eb24df32c8786776ba5/flashinfer_cubin-0.6.7.post3-py3-none-any.whl", upload-time = 2026-04-06T01:43:16Z, size = 294635743, hashes = { sha256 = "724cbce52f917dd06ebcb61fff2146c30b69cfdb341891d7c293249e414d6e35" } }]

[[packages]]
name = "flashinfer-jit-cache"
version = "0.6.7.post3+cu129"
archive = { url = "https://github.com/flashinfer-ai/flashinfer/releases/download/v0.6.7.post3/flashinfer_jit_cache-0.6.7.post3+cu129-cp39-abi3-manylinux_2_28_x86_64.whl", hashes = { sha256 = "68458beb750a604935959bb1dba597da8fa4fcae15cb44c3b75354ee149fedba" } }

[[packages]]
name = "flashinfer-python"
version = "0.6.7.post3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
"unsafe-best-match"
],
"inputs": {
"requirements_sha256": "378dabe9b77bc2c593a05e1113534e8f50093ca205d3344a7ba2e20fe660e38a",
"requirements_sha256": "0db0ae5aea7cb739be3c1711b6fd219fe5e654283a3b0b7043e29733a8edb6d7",
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "176e49681671029c1ad5d91cca3635a979fe9d38241397c9d31aaf259062e8f1",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"lock_sha256": "c792a5ec633f306dbca60e3cd53379282aae84ef021960e5aaf101b856503719",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
"source_pins_sha256": "4042e4637edf1c70def38d3f0ccccb56d13aa9f64e6d7a7e3efeec6dc32c5727",
"target": {
"architecture": "amd64",
"bundle": "sglang-vision-extract",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ name = "flashinfer-cubin"
version = "0.6.7.post3"
wheels = [{ url = "https://files.pythonhosted.org/packages/91/64/f516081e983a35e3f52b7e525e2e62f1d6148c175eb24df32c8786776ba5/flashinfer_cubin-0.6.7.post3-py3-none-any.whl", upload-time = 2026-04-06T01:43:16Z, size = 294635743, hashes = { sha256 = "724cbce52f917dd06ebcb61fff2146c30b69cfdb341891d7c293249e414d6e35" } }]

[[packages]]
name = "flashinfer-jit-cache"
version = "0.6.7.post3+cu129"
archive = { url = "https://github.com/flashinfer-ai/flashinfer/releases/download/v0.6.7.post3/flashinfer_jit_cache-0.6.7.post3+cu129-cp39-abi3-manylinux_2_28_x86_64.whl", hashes = { sha256 = "68458beb750a604935959bb1dba597da8fa4fcae15cb44c3b75354ee149fedba" } }

[[packages]]
name = "flashinfer-python"
version = "0.6.7.post3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "5b2d53892ce0814a0719f063f84a8ccfb9b7ca727d4aa053845b02d7c6f99270",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "2e66cf20cf5acf02935a069d2c06796a1e4789414b15e1f3a8758e0c0e2ca67c",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "f5cadfe1391c1d1e7feef6df532e25d9c1402832497ef81faa121a4946fb9b2e",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"root_versions_sha256": "baaee3f4ed167d22897e99edc787077a74b2ce56dbbf986ebc4e1a80bdde6f24"
},
"lock_sha256": "6836c8086be926421d7ef2dd49e0b8293ac7a807f442ee7536225a35101811b7",
"policy_sha256": "d64e8e1cf9c2341810e07b556520974b73f5ccd3d09721efb3b6b107d2473d0f",
"policy_sha256": "63f7cb65d9bcfc5ce9d06397da86a90d8d50e05db0eb367824d599eba0459590",
"root_exclude_newer": "2026-11-06T20:00:00Z",
"schema_version": 1,
"source_pins_sha256": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
Expand Down
24 changes: 24 additions & 0 deletions packages/sie_server/bundle-locks/exceptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@
"schema_version": 1,
"scope": "Exact version and artifact-source departures for the bundle-libs overlay only. Root-compatible overlaps remain pinned.",
"source_pins": {
"cuda12-sglang-amd64": {
"flashinfer-jit-cache": {
"reason": "FlashInfer's prebuilt JIT modules for the bundle's flashinfer-python 0.6.7.post3 on CUDA 12.9, the runtime toolkit of the SGLang images. FlashInfer publishes this wheel on its own cu129 index, which omits upload timestamps, so uv0.9.28 excludes it under the global cutoff. This exact public wheel and SHA256 are an explicit source exception; the cutoff still applies to index-resolved candidates.",
"sha256": "68458beb750a604935959bb1dba597da8fa4fcae15cb44c3b75354ee149fedba",
"url": "https://github.com/flashinfer-ai/flashinfer/releases/download/v0.6.7.post3/flashinfer_jit_cache-0.6.7.post3+cu129-cp39-abi3-manylinux_2_28_x86_64.whl",
"version": "0.6.7.post3+cu129"
}
},
"cuda12-sglang-embedding-amd64": {
"flashinfer-jit-cache": {
"reason": "FlashInfer's prebuilt JIT modules for the bundle's flashinfer-python 0.6.7.post3 on CUDA 12.9, the runtime toolkit of the SGLang images. FlashInfer publishes this wheel on its own cu129 index, which omits upload timestamps, so uv0.9.28 excludes it under the global cutoff. This exact public wheel and SHA256 are an explicit source exception; the cutoff still applies to index-resolved candidates.",
"sha256": "68458beb750a604935959bb1dba597da8fa4fcae15cb44c3b75354ee149fedba",
"url": "https://github.com/flashinfer-ai/flashinfer/releases/download/v0.6.7.post3/flashinfer_jit_cache-0.6.7.post3+cu129-cp39-abi3-manylinux_2_28_x86_64.whl",
"version": "0.6.7.post3+cu129"
}
},
"cuda12-sglang-vision-extract-amd64": {
"flashinfer-jit-cache": {
"reason": "FlashInfer's prebuilt JIT modules for the bundle's flashinfer-python 0.6.7.post3 on CUDA 12.9, the runtime toolkit of the SGLang images. FlashInfer publishes this wheel on its own cu129 index, which omits upload timestamps, so uv0.9.28 excludes it under the global cutoff. This exact public wheel and SHA256 are an explicit source exception; the cutoff still applies to index-resolved candidates.",
"sha256": "68458beb750a604935959bb1dba597da8fa4fcae15cb44c3b75354ee149fedba",
"url": "https://github.com/flashinfer-ai/flashinfer/releases/download/v0.6.7.post3/flashinfer_jit_cache-0.6.7.post3+cu129-cp39-abi3-manylinux_2_28_x86_64.whl",
"version": "0.6.7.post3+cu129"
}
},
"cuda13-sglang-cu130-amd64": {
"flashinfer-jit-cache": {
"reason": "FlashInfer's prebuilt JIT modules for the bundle's flashinfer-python 0.6.18 on CUDA 13.0. FlashInfer publishes this wheel on its own cu130 index, which omits upload timestamps, so uv0.9.28 excludes it under the global cutoff. This exact public wheel and SHA256 are an explicit source exception; the cutoff still applies to index-resolved candidates.",
Expand Down
2 changes: 2 additions & 0 deletions packages/sie_server/bundles/sglang-embedding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ deps:
# Runtime-inert for us: sglang's default attention backend is flashinfer;
# fa4 only needs to be importable to satisfy the dependency.
flash-attn-4: '==4.0.0b19'
# Prebuilt FlashInfer JIT modules, pinned with ``bundles/sglang.yaml``.
flashinfer-jit-cache: '==0.6.7.post3'
2 changes: 2 additions & 0 deletions packages/sie_server/bundles/sglang-vision-extract.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ deps:
# SGLang requires a flash-attn-4 pre-release. The explicit pin prevents
# PyPI's stable 0.0.1 placeholder from disabling pre-release resolution.
flash-attn-4: '==4.0.0b19'
# Prebuilt FlashInfer JIT modules, pinned with ``bundles/sglang.yaml``.
flashinfer-jit-cache: '==0.6.7.post3'
8 changes: 8 additions & 0 deletions packages/sie_server/bundles/sglang.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ deps:
flash-attn-4:
version: '==4.0.0b19'
marker: sys_platform == 'linux'
# FlashInfer's prebuilt JIT modules for the flashinfer-python that sglang
# resolves, built for CUDA 12.9 like this bundle's runtime toolkit. Without
# them a new container compiles the sampling, prefill and decode modules
# with nvcc on first use. FlashInfer refuses a jit-cache whose version
# differs from flashinfer-python, so this pin moves with SGLang's pin.
flashinfer-jit-cache:
version: '==0.6.7.post3'
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
marker: sys_platform == 'linux'
# Apple Silicon (Metal) generation. SGLang is CUDA-only, so on macOS the
# SGLangGenerationAdapter.create_for_device swap serves generation via Apple's
# MLX (mlx_lm.server) instead — this makes the same bundle resolve correctly on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from packaging.requirements import Requirement
from packaging.version import InvalidVersion, Version

_CUDA_ONLY_PACKAGES = frozenset({"fla-core", "flash-attn", "xformers"})
_CUDA_ONLY_PACKAGES = frozenset({"fla-core", "flash-attn", "flashinfer-jit-cache", "xformers"})
_EXACT_OPERATORS = frozenset({"==", "==="})
_DOWNGRADE_EXAMPLES = ("sentence-transformers", "gliner")

Expand Down
35 changes: 34 additions & 1 deletion packages/sie_server/tests/core/test_bundle_requirements.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import tomllib
from pathlib import Path

import pytest
Expand All @@ -18,6 +19,7 @@

_REPO_ROOT = Path(__file__).resolve().parents[4]
_BUNDLES = _REPO_ROOT / "packages" / "sie_server" / "bundles"
_LOCKS = _REPO_ROOT / "packages" / "sie_server" / "bundle-locks"


def test_resolve_bundle_requirements_preserves_cli_semantics() -> None:
Expand All @@ -38,7 +40,13 @@ def test_resolve_bundle_requirements_preserves_cli_semantics() -> None:

def test_resolve_bundle_requirements_can_exclude_normalized_cuda_packages() -> None:
assert resolve_bundle_requirements(
{"Flash_Attn": "==1", "xformers": "==2", "FLA_core": {"version": "==3"}, "portable": "==4"},
{
"Flash_Attn": "==1",
"xformers": "==2",
"FLA_core": {"version": "==3"},
"FlashInfer_JIT_Cache": {"version": "==5", "marker": "sys_platform == 'linux'"},
"portable": "==4",
},
exclude_cuda=True,
) == ["portable==4"]

Expand Down Expand Up @@ -544,3 +552,28 @@ def test_untrusted_paths_through_ambiguous_dependencies_still_unpin_shared_neigh
assert "independent==1.0.0" in constraints
for pin in ("old-only==3.0.0", "optional-only==5.0.0", "leaf==4.0.0"):
assert pin not in constraints


def _locked_versions(target: str) -> dict[str, str]:
lock = tomllib.loads((_LOCKS / target / "pylock.toml").read_text())
return {package["name"]: package["version"] for package in lock["packages"]}


@pytest.mark.parametrize(
"target",
[
"cuda12-sglang-amd64",
"cuda12-sglang-embedding-amd64",
"cuda12-sglang-vision-extract-amd64",
"cuda13-sglang-cu130-amd64",
],
)
def test_sglang_images_ship_the_flashinfer_jit_cache_of_their_flashinfer(target: str) -> None:
locked = _locked_versions(target)

assert locked["flashinfer-jit-cache"].split("+")[0] == locked["flashinfer-python"]


@pytest.mark.parametrize("target", sorted(path.name for path in _LOCKS.glob("cpu-*") if path.is_dir()))
def test_cpu_images_never_ship_gpu_kernel_caches(target: str) -> None:
assert "flashinfer-jit-cache" not in _locked_versions(target)
Loading
Loading