Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (130 loc) · 6.2 KB
/
Copy pathpyproject.toml
File metadata and controls
142 lines (130 loc) · 6.2 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
[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "atom"
authors = [{ name = "ValarLip" }]
license = "MIT"
readme = "README.md"
description = "a lightweight vLLM implementation built from scratch"
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = ["pybind11", "transformers==5.16.1", "zmq", "msgspec", "xxhash", "fastapi>=0.115,<0.137", "psutil", "prometheus_client>=0.25,<0.26", "protobuf", "uvicorn", "uvloop", "aiohttp", "datasets", "einops>=0.7", "openpyxl", "tqdm", "setproctitle", "jsonschema>=4.25,<5", "llguidance==1.9.1", "google-re2>=1.1"]
[project.optional-dependencies]
tracing = ["opentelemetry-api>=1.40,<2", "opentelemetry-sdk>=1.40,<2", "opentelemetry-exporter-otlp-proto-http>=1.40,<2"]
# atom/diffusion only. Kept out of the base install because none of it is
# reachable from the LLM engine: PyAV muxes the H.264 + AAC MP4, Pillow does
# canvas preparation for image conditioning, and torchaudio resamples reference
# audio to the audio VAE's 32 kHz.
diffusion = ["av", "pillow", "torchaudio"]
# Qwen3.8-Flash-Next TP serving with ATOM_QWEN4_EXP_SP_SDMA only (SGLang
# plugin, gfx942): mori CCO SDMA with the MI308X engine balancing
# (ROCm/mori#921, #944). Not needed otherwise; the ATOM images ship it.
qwen38-tp-sdma = ["amd-mori-nightly>=1.2.6.dev20261116"]
[project.urls]
Homepage = "https://github.com/ROCm/ATOM"
Repository = "https://github.com/ROCm/ATOM"
Issues = "https://github.com/ROCm/ATOM/issues"
[tool.setuptools_scm]
write_to = "atom/_version.py"
write_to_template = "__version__ = '{version}'\n"
fallback_version = "0.1.0"
[tool.setuptools.packages.find]
where = ["."]
include = ["atom", "atom.*"]
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
atom = [
"mesh/target/release/libmesh.so",
"benchmarks/results/schemas/*.json",
]
[project.entry-points."vllm.platform_plugins"]
# by default the entry-points will be installed anyway
# but the plugin mode for platforms can be disabled by
# ATOM_DISABLE_VLLM_PLUGIN=1
atom = "atom.plugin.vllm.register:register_platform"
[project.entry-points."vllm.general_plugins"]
atom_model_registry = "atom.plugin.vllm.register:register_model"
[project.entry-points."sglang.srt.plugins"]
atom_sglang = "atom.plugin.sglang.register:register_plugin"
[tool.ruff.lint.per-file-ignores]
# FlyDSL consumes these nested functions with its AST rewriter; closure and
# framework-default lint rewrites change kernel semantics. The exemption
# follows the FILES, not the directory they used to sit in.
"atom/models/glm52/mono/kernels/*.py" = ["ALL"]
"atom/models/glm52/mono/kernels/**/*.py" = ["ALL"]
# The benches that compare ATOM's vendored copy against FlyDSL's own tree are
# vendored the same way and carry the same exemption -- black already excludes
# this directory below, for the same reason.
"tests/models/glm52/kernels/*.py" = ["ALL"]
# review-pr's gate infrastructure is vendored from ROCm/aiter at pinned commit
# c1c482e00 and kept close to upstream so the port stays diffable against
# `git -C aiter show c1c482e00:<path>` -- that diff is what let reviewers
# confirm vendored logic was changed only where intended, across ten
# deliberate ATOM couplings. Reformatting these files destroys that
# comparison permanently. The exemption follows the FILES, not the directory
# they happen to sit in: ATOM's own additions stay linted -- check_citations.py,
# _publish_test.py and the two shell-region tests -- and so does _notify.py,
# whose owner map was rewritten for ATOM against a different set of failure
# classes rather than carried over with renames. Drop this exemption once
# review-pr re-vendors against a newer aiter commit and the delta is re-
# audited, or once a file here is deliberately rewritten past recognition.
".claude/skills/review-pr/triage.py" = ["ALL"]
".claude/skills/review-pr/_lib.py" = ["ALL"]
".claude/skills/review-pr/_gates.py" = ["ALL"]
".claude/skills/review-pr/_collect.py" = ["ALL"]
".claude/skills/review-pr/_apply_refutation.py" = ["ALL"]
".claude/skills/review-pr/_publish.py" = ["ALL"]
".claude/skills/review-pr/queue_gate.py" = ["ALL"]
".claude/skills/review-pr/queue_gate_test.py" = ["ALL"]
".claude/skills/review-pr/watchdog.py" = ["ALL"]
".claude/skills/review-pr/watchdog_test.py" = ["ALL"]
".claude/skills/review-pr/lost_review.py" = ["ALL"]
".claude/skills/review-pr/lost_review_test.py" = ["ALL"]
".claude/skills/review-pr/check_prompts.py" = ["ALL"]
".claude/skills/review-pr/scan_index_width.py" = ["ALL"]
[tool.black]
# The same exemption, for the same reason: the ruff ignores above do not bind
# black, and these trees are vendored from FlyDSL and kept byte-identical to
# upstream apart from import rewrites, so that the delta stays reviewable and
# can be offered back. Reformatting them both breaks that alignment and, per
# the note above, can change what FlyDSL's rewriter generates.
#
# `force-exclude`, not `extend-exclude`: extend-exclude is ignored for paths
# passed explicitly, which is exactly how both CI and the PostToolUse
# `auto_lint.py` hook invoke black (`black <file>` on the file just edited).
#
# review-pr's gate infrastructure carries the same exemption, for the same
# reason: these files are vendored from ROCm/aiter at pinned commit
# c1c482e00 and kept byte-identical to upstream apart from import/name
# rewrites (ROCm/aiter -> ROCm/ATOM, aiter-bot -> rocm-atom-bot, and similar),
# so the port stays diffable against `git -C aiter show c1c482e00:<path>` and
# can be offered back upstream. Reformatting them breaks that comparison
# permanently. The exemption follows the FILES, not the directory: it does
# not cover review-pr/tests/ (written for ATOM on this branch) or _notify.py
# (its owner-resolution was substantially rewritten for ATOM, not just
# renamed, so it is linted normally). Drop this once review-pr re-vendors
# against a newer aiter commit and the delta is re-audited.
force-exclude = '''
/(
atom/models/glm52/mono/kernels
| tests/models/glm52/kernels
)/
| \.claude/skills/review-pr/(
triage
| _lib
| _gates
| _collect
| _apply_refutation
| _publish
| queue_gate
| queue_gate_test
| watchdog
| watchdog_test
| lost_review
| lost_review_test
| check_prompts
| scan_index_width
)\.py$
'''