Skip to content

[rl][ez] Fix import errors. - #2324

Merged
zhxchen17 merged 1 commit into
gh/zhxchen17/5/basefrom
gh/zhxchen17/5/head
Feb 5, 2026
Merged

zhxchen17 merged 1 commit into
gh/zhxchen17/5/basefrom
gh/zhxchen17/5/head

Conversation

@zhxchen17

@zhxchen17 zhxchen17 commented Feb 4, 2026 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

Summary:

I'm seeing some import errors while rebasing on the latest vllm and torchtitan. Fixing these.

Test Plan:
python torchtitan/experiments/rl/unified/infer.py

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:

I'm seeing some import errors while rebasing on the latest vllm and torchtitan. Fixing these.

Test Plan:
python torchtitan/experiments/rl/unified/infer.py

Reviewers:

Subscribers:

Tasks:

Tags:

[ghstack-poisoned]
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 4, 2026
zhxchen17 added a commit that referenced this pull request Feb 4, 2026
Summary:

I'm seeing some import errors while rebasing on the latest vllm and torchtitan. Fixing these.

Test Plan:
python torchtitan/experiments/rl/unified/infer.py

Reviewers:

Subscribers:

Tasks:

Tags:

ghstack-source-id: 04f049f
Pull Request resolved: #2324
@zhxchen17
zhxchen17 requested review from tianyu-l and wwwjn and removed request for tianyu-l February 4, 2026 19:58
Comment on lines +9 to +12
try:
from vllm.attention.layer import Attention
except ModuleNotFoundError:
from vllm.model_executor.layers.attention import Attention

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why both? let's use the latest one

zhxchen17 added a commit that referenced this pull request Feb 5, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at
bottom):
* __->__ #2325
* #2324

Summary:

Ignoring example_checkpoint/ dir since it clobbers git status rn.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
@zhxchen17
zhxchen17 merged commit 1a23ef2 into gh/zhxchen17/5/base Feb 5, 2026
21 of 22 checks passed
wwwjn pushed a commit that referenced this pull request Feb 6, 2026
Sorry for the previous 2 PRs I was tring out ghstack and made a mistake
to merge them directly into /base branches. Re-landing them into main
instead.

Squashed message:

#2324: I'm seeing some import
errors while rebasing on the latest vllm and torchtitan. Fixing these.

#2325: Ignoring
example_checkpoint/ dir since it clobbers git status rn.

Test Plan:
python torchtitan/experiments/rl/unified/infer.py
TXacs pushed a commit to McmillanTAC/torchtitan that referenced this pull request Apr 13, 2026
…rch#2325 (pytorch#2331)

Sorry for the previous 2 PRs I was tring out ghstack and made a mistake
to merge them directly into /base branches. Re-landing them into main
instead.

Squashed message:

pytorch#2324: I'm seeing some import
errors while rebasing on the latest vllm and torchtitan. Fixing these.

pytorch#2325: Ignoring
example_checkpoint/ dir since it clobbers git status rn.

Test Plan:
python torchtitan/experiments/rl/unified/infer.py
ACharacterInASimulation pushed a commit to ACharacterInASimulation/torchtitan that referenced this pull request Apr 21, 2026
…rch#2325 (pytorch#2331)

Sorry for the previous 2 PRs I was tring out ghstack and made a mistake
to merge them directly into /base branches. Re-landing them into main
instead.

Squashed message:

pytorch#2324: I'm seeing some import
errors while rebasing on the latest vllm and torchtitan. Fixing these.

pytorch#2325: Ignoring
example_checkpoint/ dir since it clobbers git status rn.

Test Plan:
python torchtitan/experiments/rl/unified/infer.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants