Spaces:
hysts
/
Running on Zero

hysts HF Staff commited on
Commit
2c957d3
·
1 Parent(s): 418a326

Bump bitsandbytes for triton 3.6 compatibility

Browse files

The torch 2.11 bump pulled triton 3.6, which removed triton.ops.
bitsandbytes 0.45.0 still imported triton.ops.matmul_perf_model and
crashed at 8-bit model load (RUNTIME_ERROR). Bump bitsandbytes to
0.49.2, which works with triton 3.6.

Files changed (3) hide show
  1. pyproject.toml +1 -1
  2. requirements.txt +3 -3
  3. uv.lock +7 -5
pyproject.toml CHANGED
@@ -6,7 +6,7 @@ readme = "README.md"
6
  requires-python = ">=3.12"
7
  dependencies = [
8
  "accelerate>=1.2.1",
9
- "bitsandbytes>=0.45.0",
10
  "gradio[mcp,oauth]>=6.14.0",
11
  "spaces>=0.48.3",
12
  "torch==2.11.0",
 
6
  requires-python = ">=3.12"
7
  dependencies = [
8
  "accelerate>=1.2.1",
9
+ "bitsandbytes>=0.49.2",
10
  "gradio[mcp,oauth]>=6.14.0",
11
  "spaces>=0.48.3",
12
  "torch==2.11.0",
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  # This file was autogenerated by uv via the following command:
2
- # uv export --no-hashes --no-dev --no-emit-package typer-slim --no-emit-package spaces -o requirements.txt
3
  accelerate==1.2.1
4
  # via blip2
5
  annotated-types==0.7.0
@@ -19,7 +19,7 @@ audioop-lts==0.2.1 ; python_full_version >= '3.13'
19
  # via gradio
20
  authlib==1.7.0
21
  # via gradio
22
- bitsandbytes==0.45.0
23
  # via blip2
24
  brotli==1.2.0
25
  # via gradio
@@ -182,6 +182,7 @@ orjson==3.10.14
182
  packaging==24.2
183
  # via
184
  # accelerate
 
185
  # gradio
186
  # gradio-client
187
  # huggingface-hub
@@ -305,7 +306,6 @@ typer==0.15.1
305
  typing-extensions==4.15.0
306
  # via
307
  # anyio
308
- # bitsandbytes
309
  # fastapi
310
  # gradio
311
  # gradio-client
 
1
  # This file was autogenerated by uv via the following command:
2
+ # uv export --project /home/ubuntu/ghq/hf.co/spaces/hysts/BLIP2 --no-hashes --no-dev --no-emit-package typer-slim --no-emit-package spaces -o /home/ubuntu/ghq/hf.co/spaces/hysts/BLIP2/requirements.txt
3
  accelerate==1.2.1
4
  # via blip2
5
  annotated-types==0.7.0
 
19
  # via gradio
20
  authlib==1.7.0
21
  # via gradio
22
+ bitsandbytes==0.49.2
23
  # via blip2
24
  brotli==1.2.0
25
  # via gradio
 
182
  packaging==24.2
183
  # via
184
  # accelerate
185
+ # bitsandbytes
186
  # gradio
187
  # gradio-client
188
  # huggingface-hub
 
306
  typing-extensions==4.15.0
307
  # via
308
  # anyio
 
309
  # fastapi
310
  # gradio
311
  # gradio-client
uv.lock CHANGED
@@ -218,16 +218,18 @@ wheels = [
218
 
219
  [[package]]
220
  name = "bitsandbytes"
221
- version = "0.45.0"
222
  source = { registry = "https://pypi.org/simple" }
223
  dependencies = [
224
  { name = "numpy" },
 
225
  { name = "torch" },
226
- { name = "typing-extensions" },
227
  ]
228
  wheels = [
229
- { url = "https://files.pythonhosted.org/packages/99/9a/f41d252bf8b0bc5969b4dce1274cd04b7ddc541de1060dd27eca680bc1b2/bitsandbytes-0.45.0-py3-none-manylinux_2_24_x86_64.whl", hash = "sha256:0f0323de1ff1fdf8383e79bdad1283516a4c05a6fd2b44a363bf4e059422305b", size = 69084267, upload-time = "2024-12-05T16:05:19.724Z" },
230
- { url = "https://files.pythonhosted.org/packages/1e/90/a2bbb9b5f997b9c9aa9c15ee4adf553ee71053bb942f89fd48d920a1aa9d/bitsandbytes-0.45.0-py3-none-win_amd64.whl", hash = "sha256:ebbf96e0ecb466716a65ecdeaef3fa1983575447b9ab66b74e5211892507c6ff", size = 68520043, upload-time = "2024-12-05T16:05:25.805Z" },
 
 
231
  ]
232
 
233
  [[package]]
@@ -255,7 +257,7 @@ hf-spaces = [
255
  [package.metadata]
256
  requires-dist = [
257
  { name = "accelerate", specifier = ">=1.2.1" },
258
- { name = "bitsandbytes", specifier = ">=0.45.0" },
259
  { name = "gradio", extras = ["mcp", "oauth"], specifier = ">=6.14.0" },
260
  { name = "spaces", specifier = ">=0.48.3" },
261
  { name = "torch", specifier = "==2.11.0" },
 
218
 
219
  [[package]]
220
  name = "bitsandbytes"
221
+ version = "0.49.2"
222
  source = { registry = "https://pypi.org/simple" }
223
  dependencies = [
224
  { name = "numpy" },
225
+ { name = "packaging" },
226
  { name = "torch" },
 
227
  ]
228
  wheels = [
229
+ { url = "https://files.pythonhosted.org/packages/d8/7d/f1fe0992334b18cd8494f89aeec1dcc674635584fcd9f115784fea3a1d05/bitsandbytes-0.49.2-py3-none-macosx_14_0_arm64.whl", hash = "sha256:87be5975edeac5396d699ecbc39dfc47cf2c026daaf2d5852a94368611a6823f", size = 131940, upload-time = "2026-02-16T21:26:04.572Z" },
230
+ { url = "https://files.pythonhosted.org/packages/29/71/acff7af06c818664aa87ff73e17a52c7788ad746b72aea09d3cb8e424348/bitsandbytes-0.49.2-py3-none-manylinux_2_24_aarch64.whl", hash = "sha256:2fc0830c5f7169be36e60e11f2be067c8f812dfcb829801a8703735842450750", size = 31442815, upload-time = "2026-02-16T21:26:06.783Z" },
231
+ { url = "https://files.pythonhosted.org/packages/19/57/3443d6f183436fbdaf5000aac332c4d5ddb056665d459244a5608e98ae92/bitsandbytes-0.49.2-py3-none-manylinux_2_24_x86_64.whl", hash = "sha256:54b771f06e1a3c73af5c7f16ccf0fc23a846052813d4b008d10cb6e017dd1c8c", size = 60651714, upload-time = "2026-02-16T21:26:11.579Z" },
232
+ { url = "https://files.pythonhosted.org/packages/b6/d4/501655842ad6771fb077f576d78cbedb5445d15b1c3c91343ed58ca46f0e/bitsandbytes-0.49.2-py3-none-win_amd64.whl", hash = "sha256:2e0ddd09cd778155388023cbe81f00afbb7c000c214caef3ce83386e7144df7d", size = 55372289, upload-time = "2026-02-16T21:26:16.267Z" },
233
  ]
234
 
235
  [[package]]
 
257
  [package.metadata]
258
  requires-dist = [
259
  { name = "accelerate", specifier = ">=1.2.1" },
260
+ { name = "bitsandbytes", specifier = ">=0.49.2" },
261
  { name = "gradio", extras = ["mcp", "oauth"], specifier = ">=6.14.0" },
262
  { name = "spaces", specifier = ">=0.48.3" },
263
  { name = "torch", specifier = "==2.11.0" },