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

Modernbert install from git #508

Merged
merged 3 commits into from
Jan 3, 2025
Merged

Modernbert install from git #508

merged 3 commits into from
Jan 3, 2025

Conversation

michaelfeil
Copy link
Owner

Related Issue

Checklist

  • I have read the CONTRIBUTING guidelines.
  • I have added tests to cover my changes.
  • I have updated the documentation (docs folder) accordingly.

Additional Notes

Add any other context about the PR here.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR adds support for nomic-ai/nomic-embed-text-v1.5 model by updating dependencies and installing transformers from a specific git commit across multiple Dockerfiles.

  • Adds temporary direct installation of transformers from GitHub commit 42865860ec in all Dockerfiles, bypassing Poetry's dependency management
  • Adds einops as optional dependency in pyproject.toml for nomic-ai/nomic-embed-text-v1.5 support
  • Adds new build-nvidia target in Makefile but doesn't include it in build-all-docker target
  • Version bump from 0.0.73 to 0.0.74 across infinity_client and infinity_emb packages
  • Inefficient Docker layer caching due to git installation and cache cleanup in same layer

9 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +56 to +57
# TODO: remove this line
RUN apt-get install --no-install-recommends -y git && poetry run python -m pip install git+https://github.com/huggingface/transformers.git@42865860ec6dc135972d9555753cb7ee17f51fb4 && rm -rf ~/.cache/ /tmp/*
Copy link
Contributor

Choose a reason for hiding this comment

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

logic: Installing transformers directly from git with a specific commit hash bypasses poetry dependency management and could cause version conflicts. Consider adding this as a proper dependency in pyproject.toml instead.

libs/infinity_emb/Dockerfile.cpu_auto Show resolved Hide resolved
libs/infinity_emb/Dockerfile.amd_auto Show resolved Hide resolved
libs/infinity_emb/Dockerfile.nvidia_auto Show resolved Hide resolved
libs/infinity_emb/Dockerfile.nvidia_auto Show resolved Hide resolved
libs/infinity_emb/Dockerfile.jinja2 Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.00%. Comparing base (2ed3884) to head (27cacc4).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #508   +/-   ##
=======================================
  Coverage   80.00%   80.00%           
=======================================
  Files          43       43           
  Lines        3471     3471           
=======================================
  Hits         2777     2777           
  Misses        694      694           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@michaelfeil michaelfeil merged commit c69f927 into main Jan 3, 2025
36 checks passed
@michaelfeil michaelfeil deleted the modernbert-main-branch branch January 3, 2025 11:22
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.

2 participants