Skip to content

feat: Add Llama 4 - #3302

Merged
mikeiovine merged 2 commits into
NVIDIA:mainfrom
mikeiovine:llama4
Apr 8, 2025
Merged

mikeiovine merged 2 commits into
NVIDIA:mainfrom
mikeiovine:llama4

Conversation

@mikeiovine

@mikeiovine mikeiovine commented Apr 5, 2025 •

Copy link
Copy Markdown
Collaborator

Add LLaMA4. Support BF16 Maverick (128e) and Scout (16e) currently; FP8 support to be added in followups.

This MR squashes our work from the internal branch and rebases onto the latest main. A few important notes:

  • I've commented out all topk/softmax fusion op stuff for now. These needs to be merged into internal_cutlass_kernels before it can be used in the external GitHub.
  • Vision support is not included. We should figure out a better way to structure things for multimodality in a followup.
  • I have updated transformers to avoid the previous hacks to detect the model architecture type.
  • For testing: I'm adding one end to end sanity test for both Scout and Maverick. It cannot be enabled yet because these models have not been added to llm-models. We need to enable these ASAP, the only reason I'm not waiting is because this PR needs to land to unblock others.

@mikeiovine mikeiovine self-assigned this Apr 5, 2025
@juney-nvidia juney-nvidia changed the title Add LLaMA4 feat: Add LLaMA4 Apr 6, 2025
@mikeiovine
mikeiovine force-pushed the llama4 branch 12 times, most recently from 0d33527 to f733b43 Compare April 7, 2025 00:16
@mikeiovine
mikeiovine marked this pull request as ready for review April 7, 2025 00:42
@mikeiovine

Copy link
Copy Markdown
Collaborator Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1245 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1245 [ run ] completed with state FAILURE
/LLM/main/L0_MergeRequest_PR pipeline #938 completed with status: 'FAILURE'

@QiJune
QiJune requested a review from yuxianq April 7, 2025 01:34
@yechank-nvidia

Copy link
Copy Markdown
Collaborator

Can you add llama4 on supported-models on examples/pytorch/REAME.md?

@mikeiovine mikeiovine changed the title feat: Add LLaMA4 feat: Add Llama4 Apr 7, 2025
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1407 [ run ] completed with state ABORTED

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1412 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #1060 completed with status: 'FAILURE'

@mikeiovine
mikeiovine force-pushed the llama4 branch 2 times, most recently from 9b2318e to ac01d05 Compare April 8, 2025 12:54
@mikeiovine

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1462 [ run ] triggered by Bot

@mikeiovine

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1472 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1462 [ run ] completed with state ABORTED

Signed-off-by: Mike Iovine <[email protected]>
@mikeiovine

Copy link
Copy Markdown
Collaborator Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1487 [ run ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1472 [ run ] completed with state ABORTED

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1487 [ run ] completed with state SUCCESS
/LLM/main/L0_MergeRequest_PR pipeline #1109 completed with status: 'FAILURE'

@mikeiovine

Copy link
Copy Markdown
Collaborator Author

/bot skip --comment "Manually confirmed that the one test failure is happening on main as well"

@mikeiovine
mikeiovine enabled auto-merge (squash) April 8, 2025 19:23
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1497 [ skip ] triggered by Bot

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #1497 [ skip ] completed with state SUCCESS
Skipping testing for commit e9b9830

@mikeiovine
mikeiovine merged commit 5bdf997 into NVIDIA:main Apr 8, 2025
@mikeiovine
mikeiovine deleted the llama4 branch April 8, 2025 19:41
sarattha pushed a commit to sarattha/TensorRT-LLM that referenced this pull request Apr 9, 2025
Signed-off-by: Mike Iovine <[email protected]>
Signed-off-by: sarattha <[email protected]>
wu1du2 pushed a commit to wu1du2/TensorRT-LLM that referenced this pull request May 11, 2025
Signed-off-by: Mike Iovine <[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.

10 participants