Show Loops workload planes in CLI - #2510
Open
pstefa1707 wants to merge 1 commit into
Open
Conversation
|
Paras Stefanopoulos seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
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
--verboseoutput totruss loops pushwith trainer and sampler workload planes--verboseworkload-plane columns totruss loops viewloops viewJSON outputTesting
uv run ruff check truss/cli/loops_commands.py truss/tests/cli/test_loops_cli.pyuv run pytest truss/tests/cli/test_loops_cli.py -vZERO_DOWNTIME_MIGRATIONS_RAISE_FOR_UNSAFE=False ./bin/create_dev_dbinside the Baseten devcontainer.create_training_credentials_for_local_devstill calls theTRAINING_BUCKET_AWS_*Lambda/STS path and failed nonfatally without valid training-bucket AWS credentials (UnrecognizedClientException). There is not a self-contained local training-bucket emulator in the docs.http://localhost:8000with in-memory local-only mocks for training-bucket credentials, checkpoint manifest S3 writes, workload-plane/MCM checkpoint secret sync, Temporal scheduling, weight mirroring, and deploy task execution. Truss maps this to RESThttp://api.localhost:8000.Qwen/Qwen3-8B, projectp7qr9qv,ORG_ENABLE_LOOPS, and localA10G -> defaultworkload-plane config.uv run truss loops push 'Qwen/Qwen3-8B' --project-id p7qr9qv --remote baseten-localhost --verbose --non-interactiveRun ID: gyqvxw8Trainer Workload Plane: default (local, CLUSTER_LOCAL)Sampler Deployment ID: gyqvxw8Sampler Workload Plane: default (local, CLUSTER_LOCAL)Sampler Base URL: https://model-n4q95w5d.api.baseten.co/deployment/gyqvxw8/syncuv run truss loops view --remote baseten-localhost --verboseshows the new trainer/sampler workload-plane columns.uv run truss loops view --remote baseten-localhost -o jsonreturns newline-delimited JSON objects with top-levelworkload_planeand nestedsampler.workload_planeobjects containingid,name,region, andplatform.