SageMaker Training Session Runtime
Amazon SageMaker Training Session Runtime provides APIs for executing training operations and sampling operations against a running training session. Use…
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Amazon SageMaker Training Session Runtime provides APIs for executing training operations and sampling operations against a running training session. Use these APIs to submit asynchronous training steps (such as forward-backward passes, optimizer steps, and checkpoint saves) and to generate text samples from the model being trained.
Endpoints 6
- POSTExecute sampling operation
/v1/training-sessions/:trainingSessionName/sampling-operationsSubmits an asynchronous sampling operation to generate text or compute log-probabilities from the model associated with the specified training session. The… - POSTExecute training operation
/v1/training-sessions/:trainingSessionName/operationsSubmits an asynchronous training operation to the specified training session. The service executes operations in sequence number order. The session must be in… - GETGet sampling operation result
/v1/training-sessions/:trainingSessionName/sampling-operations/:operationIdRetrieves the current status and result of a previously submitted sampling operation. Poll this operation until the status reaches a terminal state (Completed… - GETGet training operation result
/v1/training-sessions/:trainingSessionName/operations/:operationIdRetrieves the current status and result of a previously submitted training operation. Poll this operation until the status reaches a terminal state… - POSTSample training session
/training-sessions/:trainingSessionName/sampleSends an inference request to the model associated with the specified training session and returns the response synchronously. The service passes the request… - POSTSample training session with response stream
/training-sessions/:trainingSessionName/sample-with-response-streamStreams inference responses from the model associated with the specified training session. Use this operation for real-time token-by-token generation. The…
API details
- Base URL
https://training-session-runtime.sagemaker.{region}.amazonaws.com- Authentication
- AWS Signature Version 4 (requests signed with your AWS access key)
- Operations
- 6 operations on 6 pathsPOST 4GET 2
- Description format
- AWS Smithy model, API version
2025-02-10 - Links
- Documentation · OpenAPI document
- Listed from
- AWS Smithy API model (aws/api-models-aws) (Apache-2.0)
How to test the SageMaker Training Session Runtime in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the SageMaker Training Session Runtime collection, without the publisher's secrets.
- Add your credentialsThis API uses AWS Signature Version 4 (requests signed with your AWS access key). Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Execute sampling operation” (POST /v1/training-sessions/:trainingSessionName/sampling-operations), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the SageMaker Training Session Runtime?
Amazon SageMaker Training Session Runtime provides APIs for executing training operations and sampling operations against a running training session. Use… It is listed under AI & machine learning and has 6 endpoints.
Who publishes the SageMaker Training Session Runtime?
It is listed from Amazon Web Services, Inc.'s public API description (an OpenAPI document), not published by Amazon Web Services, Inc. on Swastik Codes. Anyone who controls amazonaws.com can claim the profile by adding a DNS TXT record.
What is the base URL of the SageMaker Training Session Runtime?
Requests go to https://training-session-runtime.sagemaker.{region}.amazonaws.com. Endpoint paths are added to this base URL.
How do I authenticate with the SageMaker Training Session Runtime?
With AWS Signature Version 4 (requests signed with your AWS access key).
How many endpoints does the SageMaker Training Session Runtime have?
6 operations on 6 paths (4 POST, 2 GET).
Is forking the SageMaker Training Session Runtime free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.