Repository navigation
demo: take all server-owned settings from get_settings, no client fallbacks - #468
Closed
eddiebergman-priorlabs wants to merge 2 commits into
Closed
eddiebergman-priorlabs wants to merge 2 commits into
eddiebergman-priorlabs wants to merge 2 commits into
Conversation
…llbacks get_settings() retries, then raises SettingsUnavailableError. Callers drop their None branches. Assumes server fields that do not exist yet: train_set_min_rows, kv_cache_predict_max_test_rows and the per-task model name lists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Closed, just used as a reference. Reconsider in the future |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Generated by Claude Code
Demo only. Do not merge. This PR shows how the client looks if the server owns every setting and the client keeps no fallbacks.
get_settings()retries, then raisesSettingsUnavailableError, so a client without settings fails atinit(). All checks that the client skipped when it had no settings now always run.What changes
get_settings()retries up to 4 times with exponential backoff on network errors, 5xx and 429. Then it raises. It no longer returns a stale value or None.TABPFN_CLIENT_ASYNC_USE_ABOVE_TRAINSET_SIZEandTABPFN_CLIENT_ASYNC_POLL_TIMEOUTdefault to None. A value in the environment still wins. Otherwise the server value applies.list_available_models()(replaces both_AVAILABLE_MODELSlists)create_default_for_version()accepts (replaces the localModelVersioncheck)explain.py(replacesCACHED_FIT_BATCH_SIZE)MIN_TRAIN_ROWS)_clean_text_features)FALLBACK_PREDICT_ROW_PAIRS_BUDGET, which had no callers.GetSettingsResponseare now required.Server fields this assumes (they do not exist yet)
api_models.pyis generated code. I edited it by hand to add these fields:ModelLimit.train_set_min_rowsandThinkingLimit.train_set_min_rowstext_max_chars(todaymax_chars_per_text=2_500in the server's text embedder,dists/preprocessors/legacy/text.py)kv_cache_predict_max_test_rows(today the server-only configPRIOR_KV_MAX_PREDICT_TEST_ROWS)classifier_model_namesandregressor_model_namesNot done
MIN_TRAIN_ROWS. They do not callget_settings().model_limit_from_version()still uses the closest lower version for an unknown version. To remove this fallback, the server must send a map from model name to version._AVAILABLE_MODELS. This PR removes that attribute.🤖 Generated with Claude Code