forked from mlcommons/storage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
executable file
·87 lines (75 loc) · 2.33 KB
/
pyproject.toml
File metadata and controls
executable file
·87 lines (75 loc) · 2.33 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
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "mlpstorage"
version = "2.0.0b1"
description = "MLPerf Storage Benchmark Suite"
readme = "README.md"
authors = [
{name = "MLCommons Storage Working Group"}
]
requires-python = ">=3.10.0"
dependencies = [
"psutil>=5.9",
"pyarrow",
"pyyaml>=6.0",
"packaging>=21.0", # For PEP 440 version parsing in lockfile validation
"rich>=13.0", # Progress indication (UX-04)
]
[project.optional-dependencies]
dlio = [
"dlio-benchmark @ git+https://github.com/wvaske/dlio_benchmark.git@parquet-support",
]
test = [
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-mock>=3.0",
]
# Full installation with DLIO for running benchmarks.
# Note: DLIO depends on PyTorch. The [tool.uv] configuration ensures
# CPU-only PyTorch wheels are used to avoid GPU dependencies.
full = [
"dlio-benchmark @ git+https://github.com/wvaske/dlio_benchmark.git@parquet-support",
]
[project.urls]
"Homepage" = "https://github.com/mlcommons/storage"
"Bug Tracker" = "https://github.com/mlcommons/storage/issues"
[tool.setuptools]
packages = {find = {}}
[tool.setuptools.package-data]
"mlpstorage" = ["../configs/dlio/workload/*.yaml"]
[project.scripts]
mlpstorage = 'mlpstorage.main:main'
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short --setup-show"
filterwarnings = [
"ignore::DeprecationWarning",
]
[tool.coverage.run]
source = ["mlpstorage"]
omit = ["*/tests/*", "*/__pycache__/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
# =============================================================================
# UV Configuration for CPU-only builds
# =============================================================================
# MLPerf Storage is a storage benchmark and does not require GPU support.
# These settings ensure CPU-only PyTorch wheels are used, avoiding large
# CUDA downloads and nvidia-* package dependencies.
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.uv.sources]
torch = [{ index = "pytorch-cpu" }]
torchvision = [{ index = "pytorch-cpu" }]
torchaudio = [{ index = "pytorch-cpu" }]