2025-01-17 11:32:00 +00:00
|
|
|
[project]
|
2023-03-07 17:52:22 +00:00
|
|
|
name = "text-generation-server"
|
2024-05-24 13:36:13 +00:00
|
|
|
version = "2.0.5-dev0"
|
2023-02-03 11:43:37 +00:00
|
|
|
description = "Text Generation Inference Python gRPC Server"
|
2025-01-17 11:32:00 +00:00
|
|
|
readme = "README.md"
|
|
|
|
requires-python = ">=3.9"
|
|
|
|
authors = [
|
|
|
|
{name = "Olivier Dehaene", email = "olivier@huggingface.co"},
|
|
|
|
{name = "Nicolas Patry", email = "nicolas@huggingface.co"},
|
|
|
|
]
|
|
|
|
dependencies = [
|
|
|
|
"einops>=0.8.0",
|
|
|
|
"grpc-interceptor>=0.15.4",
|
|
|
|
"grpcio>=1.67.0",
|
|
|
|
"grpcio-reflection>=1.67.0",
|
|
|
|
"grpcio-status>=1.67.0",
|
2025-03-13 09:36:29 +00:00
|
|
|
"kernels>=0.2.1",
|
2025-01-17 11:32:00 +00:00
|
|
|
"hf-transfer>=0.1.8",
|
|
|
|
"loguru>=0.7.3",
|
|
|
|
"numpy>=1.26,<3",
|
|
|
|
"opentelemetry-api>=1.27.0",
|
|
|
|
"opentelemetry-exporter-otlp>=1.27.0",
|
|
|
|
"opentelemetry-instrumentation-grpc>=0.50b0",
|
|
|
|
"pillow>=11.1.0",
|
|
|
|
"prometheus-client>=0.21.0",
|
|
|
|
"protobuf>=5.28.3",
|
|
|
|
"py-cpuinfo>=9.0.0",
|
|
|
|
"rich>=13.8.1",
|
|
|
|
"safetensors>=0.4.5",
|
|
|
|
"scipy>=1.13.1",
|
|
|
|
"sentencepiece>=0.2.0",
|
|
|
|
"tokenizers>=0.20.3",
|
|
|
|
"typer>=0.15.1",
|
2025-03-05 11:17:09 +00:00
|
|
|
"transformers>=4.49.0",
|
2025-03-04 15:43:50 +00:00
|
|
|
"huggingface-hub>=0.29.0",
|
2025-01-17 11:32:00 +00:00
|
|
|
]
|
2022-10-08 10:30:12 +00:00
|
|
|
|
2025-02-10 18:19:25 +00:00
|
|
|
[build-system]
|
2025-03-13 09:36:29 +00:00
|
|
|
requires = ["kernels>=0.1.7", "setuptools"]
|
2025-02-10 18:19:25 +00:00
|
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
|
|
|
[tool.kernels.dependencies]
|
|
|
|
"kernels-community/paged-attention" = ">=0.0.2"
|
|
|
|
"kernels-community/moe" = ">=0.1.1"
|
|
|
|
"kernels-community/quantization" = ">=0.0.3"
|
2025-02-18 09:03:53 +00:00
|
|
|
"kernels-community/quantization-eetq" = ">=0.0.1"
|
2025-02-21 12:55:31 +00:00
|
|
|
"kernels-community/rotary" = ">=0.0.1"
|
2025-02-10 18:19:25 +00:00
|
|
|
|
2025-01-17 11:32:00 +00:00
|
|
|
[project.scripts]
|
|
|
|
text-generation-server = "text_generation_server.cli:app"
|
2022-10-17 12:59:00 +00:00
|
|
|
|
2025-01-17 11:32:00 +00:00
|
|
|
[project.optional-dependencies]
|
|
|
|
accelerate = [
|
|
|
|
"accelerate>=1.2.1,<2",
|
|
|
|
]
|
|
|
|
bnb = [
|
|
|
|
"bitsandbytes>=0.45.0",
|
|
|
|
]
|
|
|
|
compressed-tensors = [
|
|
|
|
"compressed-tensors>=0.9.0",
|
|
|
|
]
|
|
|
|
peft = [
|
|
|
|
"peft>=0.14.0",
|
|
|
|
]
|
|
|
|
outlines = [
|
|
|
|
"outlines>=0.1.13",
|
|
|
|
]
|
|
|
|
dev = [
|
|
|
|
"grpcio-tools>=1.51.1,<2.0",
|
|
|
|
"pytest>=7.3.0,<8"
|
|
|
|
]
|
|
|
|
quantize = [
|
|
|
|
"texttable>=1.6.7,<2",
|
|
|
|
"datasets>=2.21,<3",
|
|
|
|
]
|
|
|
|
gen = [
|
|
|
|
"grpcio-tools>=1.69.0",
|
|
|
|
"mypy-protobuf>=3.6.0",
|
|
|
|
]
|
2022-10-08 10:30:12 +00:00
|
|
|
|
2023-05-22 13:05:32 +00:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
markers = ["private: marks tests as requiring an admin hf token (deselect with '-m \"not private\"')"]
|
|
|
|
|
2024-10-09 09:08:02 +00:00
|
|
|
[tool.isort]
|
|
|
|
profile = "black"
|
2025-01-17 11:32:00 +00:00
|
|
|
|
2025-02-06 11:28:24 +00:00
|
|
|
[tool.uv]
|
|
|
|
package = true
|
|
|
|
|
2025-01-17 11:32:00 +00:00
|
|
|
[tool.setuptools.packages.find]
|
|
|
|
include = ["text_generation_server*"]
|