-
Notifications
You must be signed in to change notification settings - Fork 31.9k
BLOOM Flax #18022
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
Closed
Closed
BLOOM Flax #18022
Changes from all commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
cd19981
First commit
younesbelkada 23c0f74
step 1 working
younesbelkada 9d33197
add alibi
younesbelkada 1d3cf96
placeholder for `scan`
bcb1eeb
add matrix mult alibi
younesbelkada e969410
beta scaling factor for bmm
ad537e7
working v1 - simple forward pass
younesbelkada b89c268
move layer_number from attribute to arg in call
a14566f
partial functioning scan
086e013
add more modifs
younesbelkada 846c658
add test
younesbelkada ed8d023
hacky working scan
2aeac52
Merge remote-tracking branch 'younesbelkada/add_bloom_flax' into add_…
768784c
update scan for new kwarg order
0998f31
Merge branch 'main' of https://github.com/huggingface/transformers in…
patrickvonplaten 8f0a509
fix position_ids problem
patrickvonplaten f96979f
fix bug in attention layer
patrickvonplaten af86c28
small fix
younesbelkada 2b4f22e
alibi shifting
younesbelkada b682321
prelim refactor
3444985
finish refactor
807aae5
Merge remote-tracking branch 'younesbelkada/add_bloom_flax' into add_…
afd4776
incorporate dropout_add to attention module
b6bb401
make style
patrickvonplaten d4f39d3
make padding work again
patrickvonplaten 4bcfc1b
update
patrickvonplaten e9ad307
remove bogus file
patrickvonplaten 0067b06
up
patrickvonplaten 7de2e96
get generation to work
patrickvonplaten fc9c4d5
clean code a bit
patrickvonplaten fbd229f
added small tests
younesbelkada 67c8325
adding albii test
younesbelkada 9e282c2
make CI tests pass:
younesbelkada 9043bdd
fix few nits
younesbelkada f77a6fe
fix nit onnx
younesbelkada 564b400
fix onnx nit
younesbelkada d16ec40
add missing dtype args to nn.Modules
0571fa1
remove debugging statements
ccd35c3
fix scan generate
400987b
Merge branch 'main' into add_bloom_flax
younesbelkada f78e659
Update modeling_flax_bloom.py
younesbelkada d0b6e2b
Update test_modeling_flax_bloom.py
younesbelkada 266abe8
Update test_modeling_flax_bloom.py
younesbelkada 6f01ad9
Update test_modeling_flax_bloom.py
younesbelkada 0ab14b4
fix small test issue + make style
younesbelkada 91a7511
clean up
d2b1cd0
Update tests/models/bloom/test_modeling_flax_bloom.py
younesbelkada d59baf7
fix function name
younesbelkada 07a1b4f
small fix test
younesbelkada 0b7168d
forward contrib credits from PR17761
haileyschoelkopf cecfcb1
Fix failing test
younesbelkada 74f5b07
fix small typo documentation
younesbelkada 513cbc7
Merge branch 'main' into add_bloom_flax
younesbelkada c7e9574
fix non passing test
younesbelkada dda4a08
refactor call
younesbelkada 822486d
Merge remote-tracking branch 'upstream2/main' into add_bloom_flax
younesbelkada ecfaf81
make style
younesbelkada c685442
upcast to fp32
younesbelkada 48e7dac
cleaner way to upcast
younesbelkada 1999df7
remove unused args
younesbelkada fc37126
remove layer number
younesbelkada 21b68e1
fix scan test
younesbelkada 3ecbae1
make style
younesbelkada 05c0521
fix i4 casting
younesbelkada e18a2c0
Merge remote-tracking branch 'upstream2/main' into add_bloom_flax
younesbelkada ea7dc48
Update src/transformers/models/bloom/modeling_flax_bloom.py
younesbelkada 0ba8cdd
fix slow test
younesbelkada 2c51c27
Merge branch 'add_bloom_flax' of https://github.com/younesbelkada/tra…
younesbelkada 0349f8c
Merge remote-tracking branch 'upstream/main' into add_bloom_flax
younesbelkada 0b70bf2
remove `layer_past`
younesbelkada b002f64
refactor a bit
younesbelkada 42faf0e
fix `scan` slow test
younesbelkada 453bdc1
remove useless import
younesbelkada 7f9d74e
major changes
younesbelkada 38c5946
major refactoring
younesbelkada dcdd563
Merge remote-tracking branch 'upstream/main' into add_bloom_flax
younesbelkada 41ab72e
Merge remote-tracking branch 'upstream/main' into add_bloom_flax
younesbelkada 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
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.