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

How to use FusedBitLinear layers for my own models for fast inference? #45

Open
pranav-asthana opened this issue Oct 26, 2024 · 2 comments

Comments

@pranav-asthana
Copy link

Hi,

I want to make my own models but use the ternary BitLinear layers instead of standard nn.Linear layers. I see there is still a F.linear or torch.bmm operation in your BitLinear code and due to the overhead of quantization in each step, it is slower. Where can I find the inference code for just the simple BitLinear operation that is matmul free?

Thanks

@ridgerchu
Copy link
Owner

Hi,

Thank you for your question. If you would like to use BitLinear for fast inference, as mentioned in our paper, we use BitBLAS for acceleration in GPUs. You can also refer to our branch to use our BitBLAS version when you install the BitBLAS.

@pranav-asthana
Copy link
Author

Hi, Thanks for your reply. Can you provide more details on what you mean by your version of BitBLAS? Where can I find your code that uses BitBLAS for inference?

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

2 participants