File size: 1,007 Bytes
109a0c8
 
 
 
 
 
 
 
 
 
ff3952a
109a0c8
 
 
 
9b9e15b
b76f7cc
ff3952a
109a0c8
b76f7cc
 
109a0c8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4350c55
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[project]
name = "rwkv-hf-space"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
    "fastapi[standard]>=0.115.11",
    "huggingface-hub>=0.29.1",
    "loguru>=0.7.3",
    "ninja>=1.11.1.3",
    "numpy>=2.2.3",
    "pydantic>=2.10.6",
    "pydantic-settings>=2.8.1",
    "pynvml>=12.0.0",
    "rich>=13.9.4",
    "rwkv>=0.8.28",
    "setuptools>=75.8.2",
    "snowflake-id>=1.0.2",
    "modelscope>=1.23.0",
    "transformers",
]

[project.optional-dependencies]
cpu = ["torch>=2.6.0"]
cu124 = ["torch>=2.6.0"]

[tool.uv]
conflicts = [[{ extra = "cpu" }, { extra = "cu124" }, { extra = "cu113" }]]

[tool.uv.sources]
torch = [
    { index = "pytorch-cpu", extra = "cpu" },
    { index = "pytorch-cu124", extra = "cu124" },
]

[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true

[[tool.uv.index]]
name = "pytorch-cu124"
url = "https://download.pytorch.org/whl/cu124"
explicit = true