pyproject.toml 1.86 KB
Newer Older
Olivier Dehaene's avatar
Init  
Olivier Dehaene committed
1
[tool.poetry]
2
name = "text-generation-server"
Nicolas Patry's avatar
Nicolas Patry committed
3
version = "2.0.2"
4
description = "Text Generation Inference Python gRPC Server"
Olivier Dehaene's avatar
Init  
Olivier Dehaene committed
5
6
authors = ["Olivier Dehaene <olivier@huggingface.co>"]

Olivier Dehaene's avatar
Olivier Dehaene committed
7
[tool.poetry.scripts]
8
text-generation-server = 'text_generation_server.cli:app'
Olivier Dehaene's avatar
Olivier Dehaene committed
9

Olivier Dehaene's avatar
Init  
Olivier Dehaene committed
10
[tool.poetry.dependencies]
Nicolas Patry's avatar
Nicolas Patry committed
11
python = ">=3.9,<3.13"
Olivier Dehaene's avatar
Init  
Olivier Dehaene committed
12
protobuf = "^4.21.7"
13
14
15
16
grpcio = "^1.51.1"
grpcio-status = "^1.51.1"
grpcio-reflection = "^1.51.1"
grpc-interceptor = "^0.15.0"
Olivier Dehaene's avatar
Init  
Olivier Dehaene committed
17
typer = "^0.6.1"
abhishek thakur's avatar
abhishek thakur committed
18
accelerate = { version = "^0.29.1", optional = true }
19
bitsandbytes = { version = "^0.43.0", optional = true }
OlivierDehaene's avatar
OlivierDehaene committed
20
safetensors = "^0.4"
21
loguru = "^0.6.0"
22
23
24
opentelemetry-api = "^1.15.0"
opentelemetry-exporter-otlp = "^1.15.0"
opentelemetry-instrumentation-grpc = "^0.36b0"
25
hf-transfer = "^0.1.2"
26
sentencepiece = "^0.1.97"
27
tokenizers = "^0.19.1"
drbh's avatar
drbh committed
28
29
30
huggingface-hub = "^0.23"
# transformers = "^4.40"
transformers = { git = "https://github.com/huggingface/transformers.git", rev="b8aee2e" }
31
einops = "^0.6.1"
32
33
texttable = { version = "^1.6.7", optional = true }
datasets = { version = "^2.14.0", optional = true }
abhishek thakur's avatar
abhishek thakur committed
34
peft = { version = "^0.10", optional = true }
Nicolas Patry's avatar
Nicolas Patry committed
35
torch = { version = "^2.3.0", optional = true }
Nicolas Patry's avatar
Nicolas Patry committed
36
scipy = "^1.11.1"
37
pillow = "^10.0.0"
38
outlines= { version = "^0.0.36", optional = true }
Nicolas Patry's avatar
Nicolas Patry committed
39
40
prometheus-client = "^0.20.0"
py-cpuinfo = "^9.0.0"
Olivier Dehaene's avatar
Init  
Olivier Dehaene committed
41

42
[tool.poetry.extras]
43
torch = ["torch"]
44
accelerate = ["accelerate"]
45
bnb = ["bitsandbytes"]
46
peft = ["peft"]
47
quantize = ["texttable", "datasets", "accelerate"]
OlivierDehaene's avatar
OlivierDehaene committed
48
outlines = ["outlines"]
49

Olivier Dehaene's avatar
Init  
Olivier Dehaene committed
50
[tool.poetry.group.dev.dependencies]
51
grpcio-tools = "^1.51.1"
52
pytest = "^7.3.0"
Olivier Dehaene's avatar
Init  
Olivier Dehaene committed
53

54
55
56

[[tool.poetry.source]]
name = "pytorch-gpu-src"
57
url = "https://download.pytorch.org/whl/cu121"
58
59
priority = "explicit"

60
61
62
[tool.pytest.ini_options]
markers = ["private: marks tests as requiring an admin hf token (deselect with '-m \"not private\"')"]

Olivier Dehaene's avatar
Init  
Olivier Dehaene committed
63
[build-system]
64
65
66
requires = [
    "poetry-core>=1.0.0",
]
Olivier Dehaene's avatar
Init  
Olivier Dehaene committed
67
build-backend = "poetry.core.masonry.api"