Skip to content

Conversation

@Xiaoming-AMD
Copy link
Collaborator

Description
This PR introduces the following changes:

  1. Refactor CLI to Support Auto-Discovery
    Moved CLI subcommands to a dedicated subcommands directory.
    Implemented a CommandRegistry to automatically discover and register subcommands.
    Updated train and benchmark commands to align with the new structure.
    Simplified the CLI entry point in main.py.
  2. Update Runner Scripts
    Added new scripts under the runner directory to support training workflows.
    Improved script organization and added necessary configurations.
  3. Add Unit Tests for CLI
    Created test_cli.py to test the CLI's auto-discovery mechanism and subcommand execution.
    Test cases include:
    Command discovery to ensure all subcommands are registered.
    Execution of train and benchmark commands with valid arguments.
    Handling of unknown commands with appropriate error messages.
    Ensured compatibility with the refactored CLI structure.

@Xiaoming-AMD Xiaoming-AMD changed the title Refactor CLI and Add Unit Tests for Auto-Discovery [WIP] Refactor CLI and Add Unit Tests for Auto-Discovery Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants