Skip to content

Playground chat: Gemma 3 1B Instruct replaces Llama 3.2 1B (#24014) - #24014

Merged
psiddh merged 1 commit into
pytorch:mainfrom
psiddh:export-D126233262
Oct 20, 2026
Merged

psiddh merged 1 commit into
pytorch:mainfrom
psiddh:export-D126233262

Conversation

@psiddh

@psiddh psiddh commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

On GPUs with shader-f16 (Apple GPUs, most others), Llama 3.2 1B in the playground's On-device Chat fails on its first reply with "linear_q4gsw_bk64_qkv(resize): separate projection dispatch was not restored before the QKV resize hook ran". That is a WebGPU runtime bug in the fused Q/K/V path, which only Llama's shapes take; D126153972 fixes it upstream. Until the fixed runtime ships, the chat offers Qwen 3 0.6B and Gemma 3 1B Instruct.

  • Gemma 3 1B Instruct is loaded from executorch-community/Gemma-3-1B-IT-ExecuTorch-WebGPU on Hugging Face, pinned to commit 91864e51, with a sha256 check per file. Export: 4-bit groupwise weights, exact sliding-window and global attention, 8,960-token context. Its repo carries the Gemma Terms of Use, the Prohibited Use Policy and the required NOTICE. Legal approved publishing it.
  • The chat shows Gemma's required notice ("Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms") when Gemma is selected. Llama leaves the chat and the Models page; its Hugging Face repo stays.
  • llm.js: when a model's chat template can't render the conversation, the chat reports it instead of silently falling back to ChatML, which only Qwen understands.
  • Model cards lay out in one row.

fbcode/executorch/website and xplat/executorch/website stay byte-identical.

Differential Revision: D126233262

Copilot AI balanced review requested due to automatic review settings October 20, 2026 06:21
@pytorch-bot

pytorch-bot Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24014

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 20, 2026

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@meta-codesync

meta-codesync Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

@psiddh has exported this pull request. If you are a Meta employee, you can view the originating Diff in D126233262.

@github-actions

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

…4014)

Summary:

On GPUs with `shader-f16` (Apple GPUs, most others), Llama 3.2 1B in the playground's On-device Chat fails on its first reply with "linear_q4gsw_bk64_qkv(resize): separate projection dispatch was not restored before the QKV resize hook ran". That is a WebGPU runtime bug in the fused Q/K/V path, which only Llama's shapes take; D126153972 fixes it upstream. Until the fixed runtime ships, the chat offers Qwen 3 0.6B and Gemma 3 1B Instruct.

- Gemma 3 1B Instruct is loaded from `executorch-community/Gemma-3-1B-IT-ExecuTorch-WebGPU` on Hugging Face, pinned to commit `91864e51`, with a sha256 check per file. Export: 4-bit groupwise weights, exact sliding-window and global attention, 8,960-token context. Its repo carries the Gemma Terms of Use, the Prohibited Use Policy and the required NOTICE. Legal approved publishing it.
- The chat shows Gemma's required notice ("Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms") when Gemma is selected. Llama leaves the chat and the Models page; its Hugging Face repo stays.
- `llm.js`: when a model's chat template can't render the conversation, the chat reports it instead of silently falling back to ChatML, which only Qwen understands.
- Model cards lay out in one row.

`fbcode/executorch/website` and `xplat/executorch/website` stay byte-identical.

Differential Revision: D126233262
@meta-codesync meta-codesync Bot changed the title Playground chat: Gemma 3 1B Instruct replaces Llama 3.2 1B Playground chat: Gemma 3 1B Instruct replaces Llama 3.2 1B (#24014) Oct 20, 2026
Copilot AI balanced review requested due to automatic review settings October 20, 2026 07:01
@psiddh
psiddh force-pushed the export-D126233262 branch from 4075b7c to f8374ed Compare October 20, 2026 07:01

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@psiddh
psiddh requested a review from Gasoonjia October 20, 2026 07:05
@psiddh
psiddh merged commit cf8d91e into pytorch:main Oct 20, 2026
198 of 202 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants