-
Notifications
You must be signed in to change notification settings - Fork 43
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: add Gemini-pro-1.5 to GeminiTextGenerator Tuning and Support score() method in Gemini-pro-1.5 #1208
Merged
Merged
feat: add Gemini-pro-1.5 to GeminiTextGenerator Tuning and Support score() method in Gemini-pro-1.5 #1208
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
97d9259
docs(bigquery): update minor parts in base.py
c9318d0
docs(bigquery): update minor changes for bigframes/ml/base.py
4f9370c
Merge branch 'shuowei-doc-update'
8d5e0ed
Merge branch 'shuowei-doc-update'
e5413a1
Merge branch 'shuowei-update-textembedding005'
7b65227
Merge branch 'shuowei-doc-update'
9d6376b
Merge branch 'shuowei-update-textembedding005'
f315f54
Merge branch 'shuowei-text-generator-tuning'
e9f28f4
feat: Update lUpdate GeminiTextGenerator Tuning and Support score() m…
5d2a807
feat: Update lUpdate GeminiTextGenerator Tuning and Support score() m…
dc765ec
Merge branch 'main' into shuowei-text-generator-tuning
shuoweil 7a40315
Merge branch 'main' into shuowei-text-generator-tuning
shuoweil 8be16d3
update testcase and docs for better clarification
8a39a02
update endpoint to corresponding endpoint for fine tuning.
361a734
Merge branch 'main' into shuowei-text-generator-tuning
shuoweil b213753
Merge branch 'main' into shuowei-text-generator-tuning
shuoweil 9de2c0e
docs(bigquery): update minor parts in base.py
ed001b8
fix syntax issue
9928f10
Revert "docs(bigquery): update minor parts in base.py"
ba80d10
Merge branch 'main' into shuowei-text-generator-tuning
shuoweil 241ae73
merge gemini_fine_tune_endpoints and gemini_score_endpoints together,…
205e173
merge genimi_fine_tune_endpoints and genimi_score_endpoints, since th…
6a44e7b
Revert "merge genimi_fine_tune_endpoints and genimi_score_endpoints, …
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -417,9 +417,16 @@ def test_llm_palm_score_params(llm_fine_tune_df_default_index): | |
) | ||
|
||
|
||
@pytest.mark.flaky(retries=2) | ||
def test_llm_gemini_pro_score(llm_fine_tune_df_default_index): | ||
model = llm.GeminiTextGenerator(model_name="gemini-pro") | ||
@pytest.mark.parametrize( | ||
"model_name", | ||
( | ||
"gemini-pro", | ||
"gemini-1.5-pro-002", | ||
"gemini-1.5-flash-002", | ||
), | ||
) | ||
def test_llm_gemini_score(llm_fine_tune_df_default_index, model_name): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add for next test "test_llm_gemini_pro_score_params" as well There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
model = llm.GeminiTextGenerator(model_name=model_name) | ||
|
||
# Check score to ensure the model was fitted | ||
score_result = model.score( | ||
|
@@ -439,9 +446,16 @@ def test_llm_gemini_pro_score(llm_fine_tune_df_default_index): | |
) | ||
|
||
|
||
@pytest.mark.flaky(retries=2) | ||
def test_llm_gemini_pro_score_params(llm_fine_tune_df_default_index): | ||
model = llm.GeminiTextGenerator(model_name="gemini-pro") | ||
@pytest.mark.parametrize( | ||
"model_name", | ||
( | ||
"gemini-pro", | ||
"gemini-1.5-pro-002", | ||
"gemini-1.5-flash-002", | ||
), | ||
) | ||
def test_llm_gemini_pro_score_params(llm_fine_tune_df_default_index, model_name): | ||
model = llm.GeminiTextGenerator(model_name=model_name) | ||
|
||
# Check score to ensure the model was fitted | ||
score_result = model.score( | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I couldn't leave a comment at unchanged lines. Need to update line 905 to each endpoint respectively. (still use gemini-1.0-pro-002 for gemini-pro, but issuing a warning for that case maybe more appropriate)
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.
done