-
Notifications
You must be signed in to change notification settings - Fork 4
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
Hr/add idefics 2 deployment #149
Conversation
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.
Looks good
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.
Some changes are required. Don't forget to run Ruff. Also, merge the main into the branch.
Idefics 2 model card says that it doesn't work with some versions of transformers library.
See https://huggingface.co/HuggingFaceM4/idefics2-8b I suggest we bump the version of transformers library in pyproject. |
Bumped to 4.41.2 |
@@ -35,11 +36,15 @@ def json_serializer_default(obj: object) -> object: | |||
return obj.model_dump() | |||
if isinstance(obj, Path): | |||
return str(obj) | |||
if isinstance(obj, type): | |||
return str(type) | |||
if isinstance(obj, np.ndarray): |
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.
ndarray should be handled by OPT_SERIALIZE_NUMPY in orjson. But if you use jsonify then it will not handle numpy. Can you check and see if we can unify jsonify
and orjson_serializer
and use orjson for everything?
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.
Added in PR
Co-authored-by: Aleksandr Movchan <aleksandr@mobius.ml>
Summary:
This update added Idefics2 deployment into the available deployments
Related issues: #145