-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (87 loc) · 2.47 KB
/
pyproject.toml
File metadata and controls
93 lines (87 loc) · 2.47 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[build-system]
requires = [
"setuptools>=78.1.0",
] # Or another build backend like hatchling, flit
build-backend = "setuptools.build_meta"
[project]
name = "polysome" # Choose a name for your installable package
version = "0.1.1"
authors = [{ name = "Sander Moonemans", email = "sander.moonemans@radboudumc.nl" }]
description = "A domain-agnostic framework for orchestrating LLM-based data generation workflows"
readme = "README.md" # Optional: Path to your README file
requires-python = ">=3.10" # Specify compatible Python versions
license = { text = "MIT" }
keywords = ["llm", "data-generation", "machine-learning", "workflow", "instruction-tuning"]
classifiers = [ # Optional: PyPI classifiers
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"python-dotenv",
"pandas==2.2.3",
"pandas-stubs==2.2.3.250308",
"openpyxl==3.1.5",
"transformers==4.51.3",
"torch>=2.0.0",
"accelerate>=0.26.0",
"jinja2>=3.0.0",
"tqdm>=4.65.0",
]
[project.urls]
Homepage = "https://github.com/computationalpathologygroup/Polysome"
Repository = "https://github.com/computationalpathologygroup/Polysome"
Issues = "https://github.com/computationalpathologygroup/Polysome/issues"
[project.scripts]
polysome = "polysome.cli:main"
polysome-gui = "polysome.cli:run_gui"
[project.optional-dependencies]
dev = [
"pytest==8.3.5",
"pytest-mock==3.14.0",
"pytest-cov>=4.0.0",
"pytest-xdist>=3.0.0",
]
ui = [
"streamlit",
]
vllm = [
"vllm>=0.8.0; platform_system == 'Linux'",
]
llama-cpp = [
"llama-cpp-python>=0.2.0",
]
# 'gpu' is a convenience alias for the fastest inference stack on Linux
gpu = [
"polysome[vllm]",
]
# 'cpu' is a convenience alias for quantized local inference
cpu = [
"polysome[llama-cpp]",
]
gpu-dev = [
"polysome[gpu,dev]",
]
cpu-dev = [
"polysome[cpu,dev]",
]
# 'all' installs everything for dev/testing
all = [
"polysome[vllm,llama-cpp,ui,dev]",
]
[tool.setuptools.packages.find]
where = [
"src",
] # Tells setuptools to look for packages inside the 'src' directory
[tool.setuptools.package-data]
polysome = [
"templates/workflows/*.json",
"templates/prompts/*/*.txt",
"templates/prompts/*/*.jsonl",
]