-
Notifications
You must be signed in to change notification settings - Fork 241
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 cp/ edge to supported libs. #864
Conversation
from transformers import AutoTokenizer | ||
|
||
model = ReneLMHeadModel.from_pretrained("${model.id}").half().cuda() | ||
tokenizer = AutoTokenizer.from_pretrained("allenai/OLMo-1B-hf") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest pushing the tokenizer to the new repo. Usually tokenizers also come in the model repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with the comments discussed
repoUrl: "https://github.com/cartesia-ai/cartesia_pytorch", | ||
snippets: snippets.cartesia_pytorch, | ||
}, | ||
cartesia_mlx: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unsure if this is the correct library_name
- I will wait for confirmation before the merge.
import cartesia_mlx as cmx | ||
|
||
model = cmx.from_pretrained("${model.id}") | ||
model.set_dtype(mx.float32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this necessary? (just curious)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to their official snippet, yes! but I haven't been able to test it till now.
Co-authored-by: Pedro Cuenca <[email protected]>
Merging for now, will make follow-up updates as it comes! |
No description provided.