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

Add a client for Gazelle #3

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Add a client for Gazelle #3

wants to merge 6 commits into from

Conversation

handrew
Copy link

@handrew handrew commented May 10, 2024

Created an abstraction over some of the code in the example notebooks (infer, infer-quantized) so that the user can simply:

from gazelle import GazelleClient
client = GazelleClient(quantization="8-bit")
resp = client.infer(audio, prompt="What does the following audio say? \n <|audio|>")
print(resp)

Because of limited resources, I have not yet been able to extensively test it. It seems to work regularly with quantization, but I occasionally get some errors w/ the conv layer without quantization.

Would be happy to take feedback!

@stillmatic
Copy link
Member

LGTM! want to also add an example NB or link to colab?

@handrew
Copy link
Author

handrew commented May 13, 2024

LGTM! want to also add an example NB or link to colab?

Sounds good—where should I? In the readme?

If you want it under your own Google account btw, you can copy it from here. https://colab.research.google.com/drive/1T45iMBWKuhdrXI9gvnR9h6l2IgZovXj7#scrollTo=wBdQsjgKdHgd

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