Skip to content

[Ascend] Native Integration of MegatronAdaptor (FlagScale Module) on FlagOS#1226

Open
ltllt1 wants to merge 11 commits into
flagos-ai:mainfrom
ltllt1:main
Open

[Ascend] Native Integration of MegatronAdaptor (FlagScale Module) on FlagOS#1226
ltllt1 wants to merge 11 commits into
flagos-ai:mainfrom
ltllt1:main

Conversation

@ltllt1

@ltllt1 ltllt1 commented Jun 17, 2026

Copy link
Copy Markdown

PR Category

Others

PR Types

New Features

PR Description

This PR optimizes the training entry of FlagScale, enabling native NPU training capability without introducing MegatronAdaptor dependencies.
1、Retain complete distributed training ability on NPU
2、No breaking changes to existing FlagScale training workflows

@CLAassistant

CLAassistant commented Jun 17, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

logger = logging.getLogger(__name__)


def get_device(local_rank=None):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this function be overridden?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, I rewrote it separately and did not overwrite the original get_device implementation.

@@ -0,0 +1,16 @@
import time

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend creating a unified .py file under plugin_flagscale that contains all the Huawei-NPU specific function overrides, making them easier to manage centrally.

@@ -0,0 +1,2 @@
def get_device_arch_version():

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend creating a unified .py file under plugin_flagscale that contains all the Huawei-NPU specific function overrides, making them easier to manage centrally.

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.

4 participants