-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Add bloom flax #25094
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
sanchit-gandhi
merged 81 commits into
huggingface:main
from
younesbelkada:add_bloom_flax
Jul 27, 2023
Merged
Add bloom flax #25094
Changes from all commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
09e9221
First commit
younesbelkada 5c21527
step 1 working
younesbelkada 794a508
add alibi
younesbelkada 8416c37
placeholder for `scan`
2eaa092
add matrix mult alibi
younesbelkada 274767e
beta scaling factor for bmm
f923d51
working v1 - simple forward pass
younesbelkada 2425e28
move layer_number from attribute to arg in call
8caac99
partial functioning scan
91b7f75
hacky working scan
2530051
add more modifs
younesbelkada 448c1e9
add test
younesbelkada 3aed702
update scan for new kwarg order
9ad912c
fix position_ids problem
patrickvonplaten fc83079
fix bug in attention layer
patrickvonplaten 541429a
small fix
younesbelkada 40ff6df
prelim refactor
8d1f137
finish refactor
22796ae
alibi shifting
younesbelkada 2917cac
incorporate dropout_add to attention module
a6669b4
make style
patrickvonplaten 312a2f1
make padding work again
patrickvonplaten 143a135
update
patrickvonplaten e2b67aa
remove bogus file
patrickvonplaten c499433
up
patrickvonplaten 01e01a3
get generation to work
patrickvonplaten d1329c9
clean code a bit
patrickvonplaten 27b4bdb
added small tests
younesbelkada b61bbad
adding albii test
younesbelkada 734884b
make CI tests pass:
younesbelkada b717b39
fix few nits
younesbelkada fdf4392
fix nit onnx
younesbelkada 7dd7e64
fix onnx nit
younesbelkada 46a685d
add missing dtype args to nn.Modules
f34c854
remove debugging statements
b83009e
fix scan generate
362ff03
Update modeling_flax_bloom.py
younesbelkada 5652b05
Update test_modeling_flax_bloom.py
younesbelkada 9e95e31
Update test_modeling_flax_bloom.py
younesbelkada 627e8e4
Update test_modeling_flax_bloom.py
younesbelkada 77dfc0a
fix small test issue + make style
younesbelkada 70b57ef
clean up
e101263
Update tests/models/bloom/test_modeling_flax_bloom.py
younesbelkada 223c062
fix function name
younesbelkada a359fc6
small fix test
younesbelkada e838fca
forward contrib credits from PR17761
haileyschoelkopf 49bf9e0
Fix failing test
younesbelkada 5b54e4c
fix small typo documentation
younesbelkada bb2e0e4
fix non passing test
younesbelkada 78c3121
refactor call
younesbelkada c23221e
make style
younesbelkada a2c0e98
upcast to fp32
younesbelkada bdda3fa
cleaner way to upcast
younesbelkada d8ddc11
remove unused args
younesbelkada c4866ec
remove layer number
younesbelkada 12ba14b
fix scan test
younesbelkada dfe1697
make style
younesbelkada f587045
fix i4 casting
younesbelkada 0a7fdc4
fix slow test
younesbelkada b49957f
Update src/transformers/models/bloom/modeling_flax_bloom.py
younesbelkada eb023eb
remove `layer_past`
younesbelkada b5a1c3f
refactor a bit
younesbelkada 961b047
fix `scan` slow test
younesbelkada 0951eac
remove useless import
younesbelkada 1db2649
major changes
younesbelkada c223094
major refactoring
younesbelkada 3ce584b
remove scan
acda19b
fix tests
933f93f
make style
cae64fa
clean-up alibi
7171a77
add integration tests
dbc363f
up
2fe409e
fix batch norm conversion
f64960e
style
06fcc06
style
8586292
update pt-fx cross tests
b0dd5eb
update copyright
e9b85e5
Update src/transformers/modeling_flax_pytorch_utils.py
sanchit-gandhi acfc883
per-weight check
27d212c
style
b6d8dc6
line formats
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
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.