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

Fix image import handling and update MlxLLM initialisation #1102

Merged
merged 8 commits into from
Jan 17, 2025

Conversation

davidberenstein1957
Copy link
Member

No description provided.

gabrielmbmb and others added 2 commits January 17, 2025 09:07
- Updated image handling in `utils.py` and `image.py` to use forward references for the `Image` type, improving compatibility with type checkers.
- Changed the initialization parameter in `MlxLLM` from `model` to `path_or_hf_repo` for clarity and consistency.
- Removed unnecessary imports of `Image` in `text_generation_with_image.py` and `outlines.py`, and added conditional import for `pkg_resources` in `outlines.py`.

These changes enhance type safety and code clarity across the image processing and LLM components.
@davidberenstein1957 davidberenstein1957 changed the title Fix image import handling and update MlxLLM initialization Fix image import handling and update MlxLLM initialisation Jan 17, 2025
Copy link

Documentation for this PR has been built. You can view it at: https://distilabel.argilla.io/pr-1102/

… improve code clarity and maintainability.
@davidberenstein1957 davidberenstein1957 marked this pull request as ready for review January 17, 2025 09:03
Copy link

codspeed-hq bot commented Jan 17, 2025

CodSpeed Performance Report

Merging #1102 will not alter performance

Comparing fix/pillow-import (35999b3) with develop (d04f069)

Summary

✅ 1 untouched benchmarks

davidberenstein1957 and others added 3 commits January 17, 2025 10:25
…emove it from the `vllm` section for improved clarity and consistency in dependency management.
…in `image.py` by cleaning up the code. This change enhances maintainability and prepares for future refactoring.
@gabrielmbmb gabrielmbmb merged commit e6c9d9e into develop Jan 17, 2025
8 checks passed
@gabrielmbmb gabrielmbmb deleted the fix/pillow-import branch January 17, 2025 12:13
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.

3 participants