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

Fix unittests settings for explanation #356

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Changes from all commits
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
7 changes: 6 additions & 1 deletion tests/tlm/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
_VALID_TLM_QUALITY_PRESETS,
TLM_SIMILARITY_MEASURES,
TLM_REASONING_EFFORT_VALUES,
TLM_MODELS_NOT_SUPPORTING_EXPLANATION,
)
from cleanlab_studio.internal.tlm.concurrency import TlmRateHandler
from cleanlab_studio.studio.trustworthy_language_model import TLM
Expand Down Expand Up @@ -89,7 +90,11 @@ def _get_options_dictionary(model: Optional[str]) -> dict:
add_use_self_reflection = np.random.choice([True, False])
add_similarity_measure = np.random.choice([True, False])
add_reasoning_effort = np.random.choice([True, False])
add_log_explanation = np.random.choice([True, False])
add_log_explanation = (
np.random.choice([True, False])
if model not in TLM_MODELS_NOT_SUPPORTING_EXPLANATION
else False
)
add_log_perplexity_score = np.random.choice([True, False])

if add_max_tokens:
Expand Down