-
Notifications
You must be signed in to change notification settings - Fork 513
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
Enable tie_word_embeddings
config setting to enable / disable weight tied embeddings
#728
Merged
Conversation
This file contains 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
1fe7e55
to
83993bf
Compare
tie_word_embeddings
config to enable / disable weight tied embeddings
tie_word_embeddings
config to enable / disable weight tied embeddingstie_word_embeddings
config setting to enable / disable weight tied embeddings
sashaDoubov
reviewed
Nov 10, 2023
Co-authored-by: Sasha Doubov <sasha.doubov@databricks.com>
dakinggg
reviewed
Nov 11, 2023
dakinggg
previously approved these changes
Nov 13, 2023
dakinggg
reviewed
Nov 13, 2023
dakinggg
approved these changes
Nov 13, 2023
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.
Enable disabling embedding weight tying
(Using huggingface
PretrainedConfig
'stie_word_embeddings
kwarg)Same seed, same config (except
![Screenshot 2023-11-09 at 5 04 05 PM](https://private-user-images.githubusercontent.com/6439018/281922519-367c0529-0b8d-4d50-b866-9e99b99f1456.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF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ZTFNBNTNQUUs0WkElMkYyMDI0MDgwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MDdUMjI0MTM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NWI1NTQ1ZTBkY2IxMWE5MGFkMWQ3YjIwNDkzYWQxMzU5M2VlYWUzNGVhOTEyMjk2OTdkODg5MmFkYmE4OTIzOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.H9eM1iJ1vqyoCJCPaeZCvKfUIsYO2dZUu3bt8vAZeN4)
tie_word_embeddings: {true, false}
), produces slightly different convergence curvesand the resulting param count is different: