Skip to content

Update the position id to int64 - #18

Closed
nvchenghaoz wants to merge 1 commit into
feat/ad_coverage_week1from
dev-chenghaoz-bugfix-0520
Closed

nvchenghaoz wants to merge 1 commit into
feat/ad_coverage_week1from
dev-chenghaoz-bugfix-0520

Conversation

@nvchenghaoz

Copy link
Copy Markdown

Error from the pipeline: RuntimeError: gather(): Expected dtype int64 for index, but got torch.int32

The Gather operator requires int64 dype for the index input (position id), update the position id to use dtype int64 instead of int32.

PR title

Please write the PR title by following template:

[JIRA ticket link/nvbug link/github issue link][fix/feat/doc/infra/...] <summary of this PR>

For example, assume I have a PR hope to support a new feature about cache manager of Jira TRTLLM-1000 ticket, it would be like

[TRTLLM-1000][feat] Support a new feature about cache manager

Description

Please explain the issue and the solution in short.

Test Coverage

GitHub Bot Help

/bot [-h] ['run', 'kill', 'skip', 'reuse-pipeline'] ...

Provide a user friendly way for developers to interact with a Jenkins server.

Run /bot [-h|--help] to print this help message.

See details below for each supported subcommand.

Details

run [--disable-fail-fast --skip-test --stage-list "A10-1, xxx" --gpu-type "A30, H100_PCIe" --add-multi-gpu-test --only-multi-gpu-test --disable-multi-gpu-test --post-merge --extra-stage "H100_PCIe-[Post-Merge]-1, xxx"]

Launch build/test pipelines. All previously running jobs will be killed.

--disable-fail-fast (OPTIONAL) : Disable fail fast on build/tests/infra failures.

--skip-test (OPTIONAL) : Skip all test stages, but still run build stages, package stages and sanity check stages. Note: Does NOT update GitHub check status.

--stage-list "A10-1, xxx" (OPTIONAL) : Only run the specified test stages. Examples: "A10-1, xxx". Note: Does NOT update GitHub check status.

--gpu-type "A30, H100_PCIe" (OPTIONAL) : Only run the test stages on the specified GPU types. Examples: "A30, H100_PCIe". Note: Does NOT update GitHub check status.

--only-multi-gpu-test (OPTIONAL) : Only run the multi-GPU tests. Note: Does NOT update GitHub check status.

--disable-multi-gpu-test (OPTIONAL) : Disable the multi-GPU tests. Note: Does NOT update GitHub check status.

--add-multi-gpu-test (OPTIONAL) : Force run the multi-GPU tests. Will also run L0 pre-merge pipeline.

--post-merge (OPTIONAL) : Run the L0 post-merge pipeline instead of the ordinary L0 pre-merge pipeline.

--extra-stage "H100_PCIe-[Post-Merge]-1, xxx" (OPTIONAL) : Run the ordinary L0 pre-merge pipeline and specified test stages. Examples: --extra-stage "H100_PCIe-[Post-Merge]-1, xxx".

kill

kill

Kill all running builds associated with pull request.

skip

skip --comment COMMENT

Skip testing for latest commit on pull request. --comment "Reason for skipping build/test" is required. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

reuse-pipeline

reuse-pipeline

Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break.

Signed-off-by: Chenghao Zhang <[email protected]>
@Fridah-nv

Copy link
Copy Markdown

May I know what model reports this issue?

@nvchenghaoz

nvchenghaoz commented May 21, 2025 •

Copy link
Copy Markdown
Author

@suyoggupta suyoggupta mentioned this pull request May 22, 2025
lucaslie added a commit that referenced this pull request May 22, 2025
Includes #17 , #18, #21 , #23

* move Phi PR for sprint

Signed-off-by: Ubuntu <[email protected]>

* remove Phi3 patch and unfuse_weight transformation

Signed-off-by: Ubuntu <[email protected]>

* update Phi3/4 patches

Signed-off-by: Ubuntu <[email protected]>

* minor

Signed-off-by: Ubuntu <[email protected]>

* minor

Signed-off-by: Ubuntu <[email protected]>

* Update the position id to int64

Signed-off-by: Chenghao Zhang <[email protected]>

* Add support for handling aliased parameters

Signed-off-by: Suyog Gupta <[email protected]>

* update tests

Signed-off-by: Suyog Gupta <[email protected]>

* lint

Signed-off-by: Suyog Gupta <[email protected]>

* lint

Signed-off-by: Suyog Gupta <[email protected]>

* removed load state dict with assign context manager

Signed-off-by: Suguna Velury <[email protected]>

* formatting fix

Signed-off-by: Suguna Velury <[email protected]>

* Removed related unit tests

Signed-off-by: Suguna Velury <[email protected]>

* [AutoDeploy] correctly identifying how to load HF checkpoint weights

Signed-off-by: Lucas Liebenwein <[email protected]>

* [AutoDeploy] correctly load sharded weights

Signed-off-by: Lucas Liebenwein <[email protected]>

* skip sharding if num_users>1

Signed-off-by: Suyog Gupta <[email protected]>

---------

Signed-off-by: Ubuntu <[email protected]>
Signed-off-by: Chenghao Zhang <[email protected]>
Signed-off-by: Suyog Gupta <[email protected]>
Signed-off-by: Suguna Velury <[email protected]>
Signed-off-by: Lucas Liebenwein <[email protected]>
Co-authored-by: Ubuntu <[email protected]>
Co-authored-by: Chenghao Zhang <[email protected]>
Co-authored-by: Suguna Velury <[email protected]>
Co-authored-by: Lucas Liebenwein <[email protected]>
@lucaslie

Copy link
Copy Markdown

merged in #25

@lucaslie lucaslie closed this May 22, 2025
lucaslie added a commit that referenced this pull request May 27, 2025
Includes #17 , #18, #21 , #23

* move Phi PR for sprint

Signed-off-by: Ubuntu <[email protected]>

* remove Phi3 patch and unfuse_weight transformation

Signed-off-by: Ubuntu <[email protected]>

* update Phi3/4 patches

Signed-off-by: Ubuntu <[email protected]>

* minor

Signed-off-by: Ubuntu <[email protected]>

* minor

Signed-off-by: Ubuntu <[email protected]>

* Update the position id to int64

Signed-off-by: Chenghao Zhang <[email protected]>

* Add support for handling aliased parameters

Signed-off-by: Suyog Gupta <[email protected]>

* update tests

Signed-off-by: Suyog Gupta <[email protected]>

* lint

Signed-off-by: Suyog Gupta <[email protected]>

* lint

Signed-off-by: Suyog Gupta <[email protected]>

* removed load state dict with assign context manager

Signed-off-by: Suguna Velury <[email protected]>

* formatting fix

Signed-off-by: Suguna Velury <[email protected]>

* Removed related unit tests

Signed-off-by: Suguna Velury <[email protected]>

* [AutoDeploy] correctly identifying how to load HF checkpoint weights

Signed-off-by: Lucas Liebenwein <[email protected]>

* [AutoDeploy] correctly load sharded weights

Signed-off-by: Lucas Liebenwein <[email protected]>

* skip sharding if num_users>1

Signed-off-by: Suyog Gupta <[email protected]>

---------

Signed-off-by: Ubuntu <[email protected]>
Signed-off-by: Chenghao Zhang <[email protected]>
Signed-off-by: Suyog Gupta <[email protected]>
Signed-off-by: Suguna Velury <[email protected]>
Signed-off-by: Lucas Liebenwein <[email protected]>
Co-authored-by: Ubuntu <[email protected]>
Co-authored-by: Chenghao Zhang <[email protected]>
Co-authored-by: Suguna Velury <[email protected]>
Co-authored-by: Lucas Liebenwein <[email protected]>
Signed-off-by: Lucas Liebenwein <[email protected]>
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.

3 participants