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

Flash Attention and native PyTorch weights #5

Open
shaltielshmid opened this issue Feb 10, 2024 · 1 comment
Open

Flash Attention and native PyTorch weights #5

shaltielshmid opened this issue Feb 10, 2024 · 1 comment

Comments

@shaltielshmid
Copy link

I saw on the TODO list Flash Attention, so I wanted to bring to your attention the announcement here.

Two packages were announced there:

1] Loading model weights saved using the PyTorch format / safetensors format (including handling for HuggingFace's sharding)

2] Flash Attention - self explanatory :)

@shaltielshmid
Copy link
Author

Also, I saw in one of the python scripts that you rename some of the weights to match the naming scheme between HuggingFace and llm-sharp. There is a useful attribute that you can add on any field to specify the name you want torch to store it as:

[ComponentName("some_name")]
private Module _someOtherName;

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

No branches or pull requests

1 participant