Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

@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.

3 participants