Skip to content

fix: llm palm score tests #643

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

Merged
merged 2 commits into from
Apr 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions tests/system/load/test_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_llm_palm_configure_fit(llm_fine_tune_df_default_index, llm_remote_text_
model_name="text-bison", max_iterations=1
)

df = llm_fine_tune_df_default_index.dropna()
df = llm_fine_tune_df_default_index.dropna().sample(n=100)
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add retry for experimental features.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

Choose a reason for hiding this comment

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

curious how much run time reduction with sampling.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It didn't improve much. It still takes the same amount of time around 30-40 mins, and the durations has some variations.

X_train = df[["prompt"]]
y_train = df[["label"]]
model.fit(X_train, y_train)
Expand Down Expand Up @@ -102,12 +102,10 @@ def test_llm_palm_score_params(llm_fine_tune_df_default_index):
).to_pandas()
score_result_col = score_result.columns.to_list()
expected_col = [
"trial_id",
"precision",
"recall",
"accuracy",
"f1_score",
"log_loss",
"roc_auc",
"label",
"evaluation_status",
]
assert all(col in score_result_col for col in expected_col)