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

feat: make importing faster #86

Merged
merged 1 commit into from
Feb 12, 2025
Merged

feat: make importing faster #86

merged 1 commit into from
Feb 12, 2025

Conversation

lsorber
Copy link
Member

@lsorber lsorber commented Jan 7, 2025

Main offenders that make import raglite slow:

  1. import litellm takes ~1s ([Feature]: Improve import speed BerriAI/litellm#7605).
  2. Loading a BaseSettings takes ~1s.

This PR changes the exports so that BaseSettings are only loaded when actually using the CLI. After this PR, import raglite should be reduced to about ~1.9s.

@lsorber lsorber self-assigned this Jan 7, 2025
@lsorber lsorber merged commit b9a6a28 into main Feb 12, 2025
3 checks passed
@lsorber lsorber deleted the ls-faster-import branch February 12, 2025 13:46
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.

1 participant