-
Notifications
You must be signed in to change notification settings - Fork 0
Switch to Qwen3-Embedding-4B and setup sklearn.model_selection.GroupKFold to sold character mapping, overfitting problem #7
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR switches the model from multilingual-e5-base to Qwen3-Embedding-4B for embedding generation and addresses overfitting issues by implementing GroupKFold for character mapping. The changes include adding required dependencies and updating training configuration.
- Switch embedding model to Qwen3-Embedding-4B
- Add flash-attn dependency installation for the new model
- Increase batch size from 32 to 128 to leverage the new model's capabilities
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pyproject.toml | Adds packaging and ninja dependencies required for Qwen3-Embedding-4B |
| README.md | Updates model reference, adds flash-attn installation instructions, and increases batch size |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Summary of ChangesHello @rjurney, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on enhancing the project's embedding capabilities by migrating from the "intfloat/multilingual-e5-base" model to the more advanced "Qwen3-Embedding-4B". This transition involves updating installation instructions to include "flash-attn" and adding "ninja" as a core dependency, alongside an adjustment to the training batch size for improved efficiency. The overarching aim, as suggested by the PR title, is to tackle character mapping and overfitting challenges, although the specific "GroupKFold" implementation mentioned is not part of the current patch. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request switches the model to Qwen/Qwen3-Embedding-4B and updates dependencies accordingly. The changes in README.md and pyproject.toml seem appropriate for this switch. However, the pull request appears to be incomplete. The title mentions setting up sklearn.model_selection.GroupKFold to solve an overfitting problem (I assume 'sold' was a typo for 'solve'), but there are no code changes in this pull request that implement this functionality. Please either update the pull request title to only reflect the model switch, or add the missing commits that implement the GroupKFold logic before this can be merged.
No description provided.