| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
refactor(tests): move tests from areal/tests to top-level tests directory (#944) * refactor(tests): move tests from areal/tests to top-level tests directory Move the test directory from areal/tests/ to a top-level tests/ directory to follow Python best practices and improve project structure. Key changes: - Move all test files from areal/tests/ to tests/ - Create __init__.py files for tests package and subdirectories - Create areal/utils/testing_utils.py with shared utilities: - get_model_path, get_dataset_path (model/dataset path resolution) - MODEL_PATHS, DENSE_MODEL_PATHS, MOE_MODEL_PATHS (test model configs) - load_archon_model (Archon model loading for tests) - Update areal/tools/profiling_utils to re-export from testing_utils - Update test utilities to import from areal/utils/testing_utils, keeping test-specific behavior (pytest.skip) as wrappers - Update all imports from 'areal.tests.' to 'tests.' - Update hardcoded torchrun script paths - Update workflow string references for dynamic class loading - Update CI workflow paths in .github/workflows/test-areal.yml - Update documentation references in CLAUDE.md, AGENTS.md, CONTRIBUTING.md, and all .claude/ and .opencode/ skill/agent files * minor fix * remove import side effect * fix(tests): add tests/utils.py module for test imports Re-export get_model_path and get_dataset_path from areal.utils.testing_utils to fix ModuleNotFoundError in tests that import from tests.utils. | 6 个月前 | |
chore: migrate repo references from InclusionAI to areal-project (#1325) Update all internal URLs and org references after migrating the repository from InclusionAI/AReaL to areal-project/AReaL. Key changes: - Update GitHub repo URLs (github.com/inclusionAI/AReaL -> areal-project/AReaL) - Update GitHub Pages docs URLs (inclusionai.github.io -> areal-project.github.io) - Update GHCR Docker image refs (ghcr.io/inclusionai/ -> areal-project/) - Update CI workflow usernames and GitHub API org references - Update DeepWiki and gitcgr badge URLs - Update issue references in code comments HuggingFace model/dataset URLs intentionally left unchanged. Vendored directories (sglang-src, Megatron-LM, Megatron-Bridge) skipped. | 3 个月前 | |
refactor: move 5 experimental modules into areal/v2 for 2.0 release (#1448) * refactor: move 5 experimental modules into areal/v2 for 2.0 release Move agent_service, inference_service, training_service, weight_update, and cli from areal/experimental/ to areal/v2/, and rewrite every reference (Python imports, `python -m` invocations, console-script entry points, CODEOWNERS, docs, review-pr signals) to the new path. - 5 directories migrated via `git mv` (history preserved) - 70 files modified across areal/, tests/, examples/, pyproject{,vllm}.toml, .github/CODEOWNERS, ROADMAP.md, and tooling docs - `areal/v2/__init__.py` added so v2 is an importable package - Build config (tool.uv.build-backend with module-root="") auto-discovers the new package — no pyproject changes beyond the entry point Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * style: apply pre-commit auto-fixes after areal/v2 move CI pre-commit job reformatted 54 files automatically: - .github/CODEOWNERS: realign owner columns (32-col) after shorter /areal/v2/ paths broke the previous 40-col alignment - areal/**, tests/**, examples/**, docs/**: ruff isort reorders `areal.v2.*` imports into their new alphabetical slot (between `areal.engine` and `areal.infra`) - markdown/yaml whitespace normalized by mdformat / ruff-format Pure formatting; no logic change. `pre-commit run --all-files` is now green locally. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * fix(tests): point py<3.12 conftest stubs at areal/v2/ Two test conftest.py stubs (Python 3.10/3.11 compat) still had the `areal/experimental/{inference_service,weight_update}` path as the namespace package's __path__, broken by the v2 move. The sed pass missed them because the paths were comma-separated `os.path.join` args (`"areal", "experimental", "X"`), not slash-form path strings. Additionally insert an `areal.v2` stub between `areal` and the leaf package so the parent→child attribute wiring loop (which uses `name.rsplit(".", 1)`) can find a parent module in sys.modules. Without it `setattr(parent, child, ...)` silently no-ops and `unittest.mock.patch` traversal breaks on the new path. Spotted by gemini-code-assist on PR #1448. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> * refactor(tests): mirror areal/v2 move under tests/v2 Move agent_service, inference_service, training_service, and weight_update test directories from tests/experimental/ to tests/v2/ to mirror the source-tree layout. tests/experimental/ retains archon/ and openai/ (still-experimental modules). - 50 files migrated via `git mv` (history preserved) - tests/v2/__init__.py added - 9 files rewritten for the new dotted/slashed test paths: `tests.experimental.{4 modules}` → `tests.v2.{4 modules}` `tests/experimental/{4 modules}` → `tests/v2/{4 modules}` (covers integration_utils imports, fake_train_engine engine_class, pytest invocation strings in docstrings, and the tests/v2/weight_update/torchrun/run_nccl_weight_transfer.py path) conftest stubs (Python <3.12 namespace shims) keep working because _REPO_ROOT is computed via "..", "..", ".." from the conftest file — same depth under tests/v2/X/ as under tests/experimental/X/. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> | 2 个月前 | |
refactor(utils): reorganize domain-specific utils into natural homes (#925) Move ~28 domain-specific files out of areal/utils/ into their natural domains, continuing the pattern set by recent infra refactors. Key changes: - Move FSDP utils (6 files) to areal/engine/fsdp_utils/ - Move Megatron/FP8 utils (13 files) to areal/engine/megatron_utils/ - Move infra utils (7 files) to areal/infra/utils/ - Move distributed.py, model.py to areal/engine/core/ - Fix determinisitc.py typo → deterministic.py - Refactor PYTHONPATH in launcher.py to marker-based repo root lookup - Update all imports (~75 files) and documentation | 6 个月前 | |
refactor(utils): reorganize domain-specific utils into natural homes (#925) Move ~28 domain-specific files out of areal/utils/ into their natural domains, continuing the pattern set by recent infra refactors. Key changes: - Move FSDP utils (6 files) to areal/engine/fsdp_utils/ - Move Megatron/FP8 utils (13 files) to areal/engine/megatron_utils/ - Move infra utils (7 files) to areal/infra/utils/ - Move distributed.py, model.py to areal/engine/core/ - Fix determinisitc.py typo → deterministic.py - Refactor PYTHONPATH in launcher.py to marker-based repo root lookup - Update all imports (~75 files) and documentation | 6 个月前 | |
gov: add maintainer (#1227) | 4 个月前 | |
chore: add Claude Code configuration for AReaL (#866) Set up comprehensive Claude Code integration with domain-specific agents, commands, rules, and skills for the codebase. Key changes: - Add 7 specialized agents (algorithm, FSDP, Megatron, Archon experts) - Add /pr-review and /gen-commit-msg commands - Add rules for code style, API config, distributed, and testing - Add skills for adding datasets, rewards, workflows, and debugging - Update CLAUDE.md with project overview and guidelines - Configure settings.json with project-specific permissions | 7 个月前 |