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

Move all LLMs to distilabel.models #1045

Merged
merged 17 commits into from
Oct 25, 2024
Merged

Move all LLMs to distilabel.models #1045

merged 17 commits into from
Oct 25, 2024

Conversation

plaguss
Copy link
Contributor

@plaguss plaguss commented Oct 24, 2024

Description

Refactor of distilabel.llms and distilabel.embeddings to distialbel.models, where all modelling related functionalities will live now, to accomodate future different models, say vision llms. Also distilabel.llms.mixins are now at distilabel.models.mixins.

Closes #1040

@plaguss plaguss self-assigned this Oct 24, 2024
@plaguss plaguss added this to the 1.5.0 milestone Oct 24, 2024
Copy link

codspeed-hq bot commented Oct 24, 2024

CodSpeed Performance Report

Merging #1045 will not alter performance

Comparing llms-module-refactor (5909d78) with develop (1f75593)

Summary

✅ 1 untouched benchmarks

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

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

Copy link
Member

@gabrielmbmb gabrielmbmb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! In order to not break anything, we should allow importing from distilabel.llms and distilabel.embeddings at least for a few releases. Let's create a src/distilabel/llms.py and src/distilabel/embeddings.py re-importing classes from distilabel.models.llms and distilabel.models.embeddings respectively.

@plaguss plaguss merged commit 7c8976b into develop Oct 25, 2024
8 checks passed
@plaguss plaguss deleted the llms-module-refactor branch October 25, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Refactor llms and embeddings subpackages into models subpackage
2 participants