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

[TLM] Update max_tokens for TLM to match provider limits #324

Merged
merged 5 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
1 change: 1 addition & 0 deletions .github/workflows/ci-rerun-failed-test-tlm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
run: |
pytest tests/tlm/test_properties.py --last-failed --verbose
- name: Cache pytest results
if: always() && github.event.comment.body == '/rerun-failed-test-tlm' # Ensure this runs even if tests above fail
uses: actions/cache@v2
with:
path: .pytest_cache
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-test-tlm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ jobs:
run: |
pytest -n auto tests/tlm/test_properties.py --verbose
- name: Cache pytest results
if: always() && github.event.comment.body == '/test-tlm' # Ensure this runs even if tests above fail
uses: actions/cache@v2
with:
path: .pytest_cache
Expand Down
2 changes: 1 addition & 1 deletion cleanlab_studio/internal/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
]
_TLM_DEFAULT_MODEL: str = "gpt-4o-mini"
_TLM_MAX_RETRIES: int = 3 # TODO: finalize this number
TLM_MAX_TOKEN_RANGE: Tuple[int, int] = (64, 512) # (min, max)
TLM_MAX_TOKEN_RANGE: Tuple[int, int] = (64, 4096) # (min, max)
ulya-tkch marked this conversation as resolved.
Show resolved Hide resolved
TLM_NUM_CANDIDATE_RESPONSES_RANGE: Tuple[int, int] = (1, 20) # (min, max)
TLM_NUM_CONSISTENCY_SAMPLES_RANGE: Tuple[int, int] = (0, 20) # (min, max)
TLM_VALID_LOG_OPTIONS: Set[str] = {"perplexity", "explanation"}
Expand Down
Loading