-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (146 loc) · 4.07 KB
/
pyproject.toml
File metadata and controls
154 lines (146 loc) · 4.07 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "unified-memory-agent"
version = "0.1.0"
description = "A comprehensive evaluation framework for memory-based conversational AI agents"
readme = "README.md"
license = {text = "Apache-2.0"}
authors = [
{name = "Zhang Kehao", email = "zhangkehao22z@ict.ac.cn"},
]
maintainers = [
{name = "Zhang Kehao", email = "zhangkehao22z@ict.ac.cn"},
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.10"
dependencies = [
# Core PyTorch (training version as baseline - REQUIRED for verl compatibility)
"torch==2.7.1",
"triton==3.3.1",
# Training dependencies (from verl/requirements.txt)
"verl",
"hydra-core>=1.3.0",
"accelerate>=1.2.1",
"datasets>=3.2.0",
"wandb>=0.19.1",
"tensorboard>=2.18.0",
# flash-attn requires manual install on CUDA 13.0 (see README for instructions)
# "flash-attn>=2.7.4",
"transformers",
"peft",
"tensordict>=0.8.0,<=0.10.0,!=0.9.0",
"torchdata",
"dill",
"liger-kernel",
"codetiming",
"pyarrow>=19.0.0",
"pybind11",
"pylatexenc",
"packaging>=20.0",
"uvicorn",
"fastapi",
"latex2sympy2_extended",
"math_verify",
# Inference dependencies (verl-compatible versions for PyTorch 2.7.1)
"openai>=1.0.0",
"sglang[srt,openai]==0.4.10.post2", # verl-specified version, compatible with torch 2.7.1
# Note: set VLLM_USE_FLASHINFER_SAMPLER=0 before running vllm serve
"vllm==0.10.1.1",
# Evaluation dependencies
"sentence-transformers",
"numpy>=1.26,<2.0.0", # Constrained by verl requirement
"pandas",
"rouge-score",
"bert-score",
"rank-bm25>=0.2.2",
"python-dotenv",
"uvloop",
"prettytable",
"regex",
"nltk",
"backoff",
"pydantic",
"scipy",
"tqdm",
"json-repair>=0.57.1",
"gpustat>=1.1.1",
"opencv-python-headless>=4.10.0,<4.13.0", # Keep numpy<2.0.0 compatible for verl
"torch-memory-saver==0.0.9rc1",
"swanlab>=0.7.8",
]
[project.optional-dependencies]
all = [
"matplotlib",
"scikit-learn",
]
dev = [
"pytest>=7.0",
"pytest-asyncio",
"black",
"isort",
"flake8",
"mypy",
"pre-commit",
]
jupyter = [
"jupyter",
"ipywidgets",
]
[[tool.uv.index]]
url = "https://mirrors.aliyun.com/pypi/simple"
default = true
[project.urls]
"Homepage" = "https://github.com/deadpool66"
"Bug Reports" = "https://github.com/ictnlp/unified-memory-agent/issues"
"Source" = "https://github.com/ictnlp/unified-memory-agent"
[tool.setuptools.packages.find]
include = [
"agents*",
"data*",
]
exclude = [
"external*",
"tests*",
]
[tool.setuptools.dynamic]
version = {attr = "config.VERSION"}
[tool.uv.sources]
verl = { path = "external/verl", editable = true }
[tool.uv]
environments = ["sys_platform == 'linux'"]
prerelease = "allow" # Allow pre-release packages (needed for flashinfer-python)
# Force versions to match working env (sglang/vllm have conflicting pinned deps; vllm versions win)
override-dependencies = [
"xgrammar==0.1.21",
"transformers==4.57.3",
"outlines-core==0.2.10",
"tokenizers==0.22.2",
"huggingface-hub==0.36.2",
"mistral-common==1.9.1",
"compressed-tensors==0.10.2",
"openai==2.24.0",
"pydantic==2.11.9",
"fastapi==0.117.1",
"starlette==0.48.0",
"uvicorn==0.37.0",
"msgspec==0.19.0",
"pillow==11.3.0",
"prometheus-client==0.23.1",
"prometheus-fastapi-instrumentator==7.1.0",
]