model: GraniteSWAForCausalLM / GraniteMoeSWAForCausalLM#25505
Draft
gabe-l-hart wants to merge 12 commits into
Draft
model: GraniteSWAForCausalLM / GraniteMoeSWAForCausalLM#25505gabe-l-hart wants to merge 12 commits into
gabe-l-hart wants to merge 12 commits into
Conversation
Member
|
@gabe-l-hart and here I was about to ask you about https://huggingface.co/ibm-granite/granite-swash-2b/tree/main :) seems like at least one model from the new family made it through :) |
Collaborator
Author
|
@pwilkin I didn't even catch that one, so it was even stealth within the house. I'll make sure everything is lined up for that model too (and get red tests green) |
Collaborator
Author
|
The saga of Alex and Max is alive and well with |
Branch: GraniteSWAForCausalLM AI-usage: full (Bob, OpenCode + Qwen3.6-35b) Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
Branch: GraniteSWAForCausalLM AI-usage: full (Bob, OpenCode + Qwen3.6-35b) Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
NOTE: There is other work also targeting this, so this may be removed depending on merge order. Branch: GraniteSWAForCausalLM AI-usage: full (Bob) Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
Branch: GraniteSWAForCausalLM AI-usage: full (Bob) Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
Branch: GraniteSWAForCausalLM AI-usage: full (Bob) Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
NOTE: This shadows the work done for Granite Speech ggml-org#25107 Branch: GraniteSWAForCausalLM AI-usage: full (Bob) Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
Branch: GraniteSWAForCausalLM AI-usage: full (Bob) Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
Branch: GraniteSWAForCausalLM AI-usage: none Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
Branch: GraniteSWAForCausalLM AI-usage: full (OpenCode + Qwen3.6-35b) Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
Branch: GraniteSWAForCausalLM AI-usage: none Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
Branch: GraniteSWAForCausalLM AI-usage: draft (OpenCode + Qwen3.6-35b) Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
branch: GraniteSWAForCausalLM AI-usage: full (OpenCode + Qwen3.6-35b) Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
gabe-l-hart
force-pushed
the
GraniteSWAForCausalLM
branch
from
July 14, 2026 19:00
7be415a to
94d2643
Compare
Collaborator
Author
|
We also have an MoE variant up now: https://huggingface.co/ibm-granite/granite-swash-3b-a600m. Needed a few changes, but this is also supported now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This Pull Request mirrors huggingface/transformers#47179 to support forthcoming Granite models that will incorporate interleaved Sliding Window Attention with Attention Sinks.
Additional information
Model weights are not available just yet, but they exist internally and will eventually appear here
Some of the models in this family will have per-layer RoPE / NoPE. There is adjacent work to support this in the Granite Switch PR (Granite-Switch Architecture #25107). For the sake of keeping this encapsulated, I replicated the function signature for
llama_hparams.has_rope. The logic behind the answer is different than the Granite Switch logic, so this will need to be rectified depending on merge order.This has been verified on internal checkpoints.
Requirements
AI Disclosure
AI was used to create this PR. I manually reviewed all outputs and authored all commits myself. See stats below:
git-ai-stats