scripts: add engine definition smoke test against a deployed control plane - #63
Merged
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
I'll fix CI failures and address comments from users with write access that start with 'DevinAI' or '@devin'.
|
…ployment targets Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…lora_64k Rename lora_smoke.py to definition_smoke.py. The client type (full vs LoRA) and LoRA train_attn/train_mlp/train_unembed flags now come from the definition module via lora_target_flags(), which miles_lora._validate_job also uses, so the request always matches the deployment's target modules. Adds --list. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
/devin review |
Contributor
Contributor
|
/devin review |
…uence fwd/optim Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.
Summary
scripts/e2e_engine_definition.pyis the deep per-definition E2E: it spins up its own ephemeral app, refusesCATALOG_VISIBLE = Falsedefinitions and expects FFT-style constants the Miles LoRA definitions don't have. There was no quick way to check that a freshly redeployed sharedliloactually serves a given definition end to end.scripts/definition_smoke.pyis that check. It runs against an existing control plane (TINKER_BASE_URL/TINKER_API_KEY) and accepts any id fromlilo.providers.modal.definitions; default isqwen3_8_27b_miles_lora_64k.The definition id is passed as
base_model, whichdefinition_forincontrol_plane/http.pymatches explicitly, so non-cataloged definitions (27B 64k/128k/256k) are reachable.--definition-idis repeatable,--parallelruns them concurrently,--listprints all definitions. Writes a timestamped JSON report toscripts/results/(gitignored) and exits non-zero if any definition fails.Two things learned from live runs that Tinker clients hitting Miles LoRA definitions need to know:
train_attn/train_mlp/train_unembedmust equal whatTARGET_MODULESimplies ((True, True, False)for the current definitions). The Tinker SDK defaulttrain_unembed=Trueis rejected — and only after the trainer cold-starts. The leaf→flag mapping is extracted fromMilesCommandBackend._validate_jobintomiles_config.lora_target_flags()so the script and backend can't drift.importance_samplingdatums must havetarget_tokens == model_input[1:] + [next]over the whole sequence (prompt positions included, with zero advantages);miles_runtime.datavalidates the shift strictly.Verified live against
liloinlilo-deployat784dc95:qwen3_5_9b_miles_lora_16k(449s) andqwen3_8_27b_miles_lora_64k(698s) pass all phases.Link to Devin session: https://modal.devinenterprise.com/sessions/6463b80692584829b19bba8d9bd1d11d
Open in Devin Desktop: https://modal.devinenterprise.com/desktop/session/6463b80692584829b19bba8d9bd1d11d?variant=devin
Requested by: @micahtyong