Skip to content

Add device and dtype parameters to StableEmbedding#87

Merged
TimDettmers merged 1 commit intobitsandbytes-foundation:mainfrom
lostmsu:main
Jan 2, 2023
Merged

Add device and dtype parameters to StableEmbedding#87
TimDettmers merged 1 commit intobitsandbytes-foundation:mainfrom
lostmsu:main

Conversation

@lostmsu
Copy link
Copy Markdown
Contributor

@lostmsu lostmsu commented Nov 4, 2022

This allows using StableEmbedding anywhere where torch.nn.Embeding could be used

@TimDettmers
Copy link
Copy Markdown
Collaborator

Thank you! Also, the layer norm cast to default precision is a great addition!

@TimDettmers TimDettmers merged commit 9d353ca into bitsandbytes-foundation:main Jan 2, 2023
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