-
Notifications
You must be signed in to change notification settings - Fork 22.5k
model: GraniteSWAForCausalLM / GraniteMoeSWAForCausalLM #25505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
4bbf9ab
feat(convert): Add conversion for GraniteSWAForCausalLM
gabe-l-hart c74049a
feat(llama): Add granite_swa support
gabe-l-hart 1f3741a
feat(conversion): Add conversion infra for rope_pattern array
gabe-l-hart f7d057b
fix(conversion): Fix SWA pattern logic and support for non-rope layers
gabe-l-hart 44215bb
feat(conversion): Add support for GraniteMoeSWA
gabe-l-hart cf31517
feat: Add llama_hparams::has_rope and arch constants
gabe-l-hart f5d4e9f
feat: Add support for per-layer rope determination
gabe-l-hart 9d75ea8
style: Fix failing flake8 for extra newlines
gabe-l-hart ef14e1c
test: Write out SLIDING_WINDOW_PATTERN in llama-model-saver
gabe-l-hart c32fe0b
fix(convert): Fix missing registration for GraniteMoeSWAForCausalLM
gabe-l-hart 36aa2e0
fix: Load MoE params as optional
gabe-l-hart 94d2643
feat: Handle MoE params in conversion
gabe-l-hart dc7f155
Merge remote-tracking branch 'origin/master' into GraniteSWAForCausalLM
gabe-l-hart 90c3d64
style: Remove unnecessary newline
gabe-l-hart 0b1df4c
fix: Remove unnecessary tensor additions to GRANITE architecture
gabe-l-hart 8865f1b
fix: Correctly handle naming for ffn gate inp
gabe-l-hart 8e5bcad
fix: Always default hparams.rope_pattern to 1s
gabe-l-hart 977437b
feat: Move to has_rope for all granite model architectures
gabe-l-hart e400df6
feat: No hacky rope_finetuned fallback in has_rope
gabe-l-hart e7695cf
fix: Fully remove rope hparam filling in granitemoe
gabe-l-hart 0306704
fix: Save out rope_pattern in model-saver
gabe-l-hart 93f6cb8
fix: Set hparams.rope_finetuned for round trip
gabe-l-hart 600615d
fix: Code review cleanup
gabe-l-hart 94fc69f
refactor: Keep gate/up fused for MoE path
gabe-l-hart 283c4ec
Merge remote-tracking branch 'origin/master' into GraniteSWAForCausalLM
gabe-l-hart c94d5ac
fix: Skip GRANITE_SWA in model saver
gabe-l-hart b5b7d1d
add sliding window pattern for model in test
CISC f7b1311
style: Fix indentation
gabe-l-hart eeb83f3
fix: Fix \r\n
gabe-l-hart d7a74f1
feat: Keep shared expert fused
gabe-l-hart de5f6fd
style: More indentation fixes
gabe-l-hart File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.