Skip to content
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

Change/bert encoder public #2658

Merged
merged 7 commits into from
Dec 4, 2024

Conversation

singjc
Copy link
Contributor

@singjc singjc commented Dec 4, 2024

Hello,

I've slightly modified some of the bert components, specifically making the BertEncoder public, so that it can be used on it's own as part of other models. I have implemented a pytorch model in candle, which the pytorch model imports the BertEncoder from the equivalent transformers module. So to implement the candle version, I needed to make the BertEncoder public.

@LaurentMazare LaurentMazare merged commit 1807be8 into huggingface:main Dec 4, 2024
10 checks passed
@LaurentMazare
Copy link
Collaborator

Thanks!

super-fun-surf pushed a commit to aifx-art/candle that referenced this pull request Dec 23, 2024
* change: BertEncoder struct to public

* change: make certain fields in Config struct public

* change: all fields in bert config struct to be public

* change: add clone to bert encoder and others

* Clippy fix.

---------

Co-authored-by: Laurent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants