Repository navigation
fix(kimi-k3): lazy-import the Triton MLA builder; fix(atomesh-ci): raise the Mesh build open-file limit #2664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,7 +33,10 @@ if [[ ! -x "${artifact_dir}/atomesh" || ! -f "${artifact_dir}/mesh-build.json" ] | |
| source_dirty=true | ||
| fi | ||
| echo "[setup] Building Mesh before launching services" >&2 | ||
| # A cold build runs one rustc per CPU (192 on MI350 nodes), which exhausts | ||
| # Docker's default soft limit of 1024 open files. | ||
| docker run --rm --user "$(id -u):$(id -g)" \ | ||
| --ulimit nofile=65536:524288 \ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. two unrelated changes in one pr.. please split. |
||
| --env-file "${env_file}" \ | ||
| -e ATOMESH_MESH_SOURCE_COMMIT="${source_commit}" \ | ||
| -e ATOMESH_MESH_SOURCE_DIRTY="${source_dirty}" \ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,6 @@ | |
| from .gdn_attn import LINEAR_STATE_ROWS, GDNStateMixin | ||
| from .pool_layout.page_unit_geometry import PageUnitGeometryMixin | ||
| from .pool_layout.sub_pool_spec import SubPoolSpec, page_pool, state_pool | ||
| from .triton_mla import TritonMLAMetadataBuilder | ||
|
|
||
|
|
||
| class KimiMLAGDNBackend(AttentionBackend): | ||
|
|
@@ -38,6 +37,8 @@ def get_name() -> str: | |
| @staticmethod | ||
| def get_builder_cls() -> type["_KimiMLAGDNCommon"]: | ||
| if envs.ATOM_USE_TRITON_MLA: | ||
| from .kimi_triton_mla_gdn_attn import KimiTritonMLAGDNMetadataBuilder | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this un-skips the test and it fails 7 cases, ci will be red.. fix block_regions -> pages or keep it skipped? |
||
|
|
||
| return KimiTritonMLAGDNMetadataBuilder | ||
| return KimiAiterMLAGDNMetadataBuilder | ||
|
|
||
|
|
@@ -540,7 +541,3 @@ def build_for_cudagraph_capture(self, bs: int): | |
| class KimiAiterMLAGDNMetadataBuilder(_KimiMLAGDNCommon, AiterMLAMetadataBuilder): | ||
| def _supports_dcp_index_staging(self) -> bool: | ||
| return False | ||
|
|
||
|
|
||
| class KimiTritonMLAGDNMetadataBuilder(_KimiMLAGDNCommon, TritonMLAMetadataBuilder): | ||
| pass | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # SPDX-License-Identifier: MIT | ||
| # Copyright (C) 2026, Advanced Micro Devices, Inc. All rights reserved. | ||
|
|
||
| """Kimi's Triton MLA builder, kept apart from `kimi_mla_gdn_attn`. | ||
|
|
||
| `triton_mla` imports aiter's Triton MLA decode, which the default aiter MLA path | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #2669 already fixed the root cause on main, so this is a no-op refactor.. drop it? |
||
| does not need, so only `KimiMLAGDNBackend.get_builder_cls` imports this module, | ||
| and only when `ATOM_USE_TRITON_MLA` is set. | ||
| """ | ||
|
|
||
| from .kimi_mla_gdn_attn import _KimiMLAGDNCommon | ||
| from .triton_mla import TritonMLAMetadataBuilder | ||
|
|
||
|
|
||
| class KimiTritonMLAGDNMetadataBuilder(_KimiMLAGDNCommon, TritonMLAMetadataBuilder): | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any other importer of KimiTritonMLAGDNMetadataBuilder? grep it or re-export for compat. |
||
| pass | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hard limit 524288 only tested on MI350X? other node types may have lower host nofile and docker run will fail..