Overview
CCNets Causal GPT-RL Training Algorithm is an Amazon SageMaker training algorithm for GPT-style offline reinforcement learning.
The product trains autoregressive decision models from offline trajectory data. It treats reinforcement learning rollouts as a sequential generation problem, where actions and states form a decision context over time. Similar to how language models generate tokens from prior tokens, Causal GPT-RL learns to generate actions from accumulated state-action context.
Causal GPT-RL is designed for long-horizon control and sequential decision-making tasks where isolated one-step prediction is not sufficient. Instead of relying only on the current state, the algorithm uses trajectory context to train policies that can operate across full rollouts.
The training workflow is containerized for Amazon SageMaker. Users can launch training jobs, configure hyperparameters, monitor logs in Amazon CloudWatch, and export trained model artifacts to Amazon S3.
This product is suitable for offline reinforcement learning research, benchmark validation, simulation workflows, robotics experimentation, gaming AI, and decision-model training from recorded operational logs or trajectory datasets.
Causal GPT-RL currently focuses on offline training workflows. Users should be familiar with Amazon SageMaker, reinforcement learning concepts, trajectory data, and training job configuration.
Highlights
- Train reinforcement learning policies using GPT-style autoregressive models.
- Built on Transformer Decoder architecture for sequential state-action context modeling.
- Designed to learn from offline trajectory data without requiring expert-only datasets.
Details
Introducing multi-product solutions
You can now purchase comprehensive solutions tailored to use cases and industries.
Features and programs
Financing for AWS Marketplace purchases
Pricing
Dimension | Description | Cost/host/hour |
|---|---|---|
ml.g5.xlarge Training Recommended | Algorithm training on the ml.g5.xlarge instance type | $4.00 |
ml.m5.xlarge Inference (Batch) Recommended | Model inference on the ml.m5.xlarge instance type, batch mode | $1.00 |
ml.m5.xlarge Inference (Real-Time) Recommended | Model inference on the ml.m5.xlarge instance type, real-time mode | $1.00 |
ml.m5.2xlarge Inference (Batch) | Model inference on the ml.m5.2xlarge instance type, batch mode | $1.00 |
ml.m5.2xlarge Inference (Real-Time) | Model inference on the ml.m5.2xlarge instance type, real-time mode | $1.00 |
ml.m5.4xlarge Inference (Batch) | Model inference on the ml.m5.4xlarge instance type, batch mode | $1.00 |
ml.m5.4xlarge Inference (Real-Time) | Model inference on the ml.m5.4xlarge instance type, real-time mode | $1.00 |
ml.m5.large Inference (Batch) | Model inference on the ml.m5.large instance type, batch mode | $1.00 |
ml.m5.large Inference (Real-Time) | Model inference on the ml.m5.large instance type, real-time mode | $1.00 |
Vendor refund policy
CCNets may review refund requests case by case for duplicate charges, AWS Marketplace billing errors, inability to access the product due to a CCNets-side issue, or confirmed defects in the Marketplace container or product configuration. Refunds are not provided for customer configuration errors, unsupported datasets, dataset quality issues, unmet performance expectations, or successfully completed usage. Requests must be sent within 14 days to support@ccnets.org .
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
Amazon SageMaker algorithm
An Amazon SageMaker algorithm is a machine learning model that requires your training data to make predictions. Use the included training algorithm to generate your unique model artifact. Then deploy the model on Amazon SageMaker for real-time inference or batch processing. Amazon SageMaker is a fully managed platform for building, training, and deploying machine learning models at scale.
Version release notes
This release updates CCNets Causal GPT-RL Training Algorithm to SageMaker Algorithm version cgrl-training-algorithm-v0-0-9 and provides updated training and inference containers for GPT-style offline reinforcement learning.
This release supports fixed-shape Gymnasium observation and action schemas built from one-dimensional Box, Discrete, MultiDiscrete, and MultiBinary leaf spaces. Dict and Tuple containers may be nested and may combine continuous and categorical fields within the same observation or action structure.
Verified exported-bundle combinations include Dict observations that combine Box and Discrete fields, and Tuple or Dict action spaces that combine continuous Box branches with Discrete branches. The same schema system also supports structured Unity ML-Agents datasets such as Tuple observations with Discrete or MultiDiscrete action branches.
Unity ML-Agents integration follows an offline training workflow. Users collect trajectories from a Unity ML-Agents environment, package the trajectories as Minari-compatible datasets, upload the datasets to Amazon S3, and train the policy through SageMaker. The SageMaker training container does not launch the Unity Editor or execute the customer’s Unity build during training.
The public repository includes Unity trajectory collection examples and an ONNX deployment example for running a trained policy against a Unity ML-Agents build. ONNX deployment is a downstream integration example and is separate from the primary SageMaker model.tar.gz output.
Public benchmark resources are available for MuJoCo policy bundles and a Unity ML-Agents Crawler ONNX policy. Benchmark results are environment-, runtime-, and protocol-specific and should be used as reproducible references rather than guarantees for customer datasets or environments.
The default training configuration is designed to provide a practical starting point for common MuJoCo and Unity ML-Agents workflows, reducing the need for extensive initial hyperparameter tuning. Additional adjustment may still be useful depending on dataset quality, reward scale, trajectory coverage, observation and action design, and environment-specific behavior.
This release supports SageMaker training jobs, Minari-compatible dataset input through the SageMaker training channel, configurable training hyperparameters, CloudWatch training logs, checkpoint generation, S3 model artifact export, and compatible inference artifact loading.
Buyer-provided observation and action spaces define the trained policy interface. This allows the policy to reflect the buyer's own sensors, game state, application state, action choices, control vectors, action masks, goals, modes, task IDs, or encoded instruction vectors when these fields are included in the dataset.
The trained policy can be used through a reset, act, and observe rollout loop. The workflow supports state-based behavior control, prompt-like control through buyer-provided instruction vectors, batched rollout handling with per-episode resets, and stable episode boundary handling for cached inference.
CloudWatch Logs may display offline metrics such as action negative log-likelihood and Forecast/StepReward. Forecast/StepReward is an experimental model-estimated per-step reward metric intended to help buyers monitor offline training progress direction. These offline metrics are training progress indicators and do not guarantee final performance in the buyer's target environment.
The final model artifact is exported as model.tar.gz and may include reports/summary.json, a canonical inference bundle, and snapshot candidate bundles depending on the training configuration.
SageMaker checkpoint outputs are separated from final inference artifacts. Checkpoints are intended for resume or retraining workflows, while bundle and snapshot outputs inside model.tar.gz are intended for downstream evaluation or compatible inference workflows.
Additional details
Inputs
- Summary
This product trains GPT-style reinforcement learning policy models from offline trajectory datasets.
The primary training input is a Minari-compatible offline reinforcement learning dataset provided through the SageMaker training input channel. The training channel should point to an S3 prefix containing one or more Minari dataset directories.
The buyer specifies which datasets to train on using the dataset_ids hyperparameter. Each dataset ID is interpreted as a relative path under the SageMaker training channel root.
The dataset's observation and action spaces define the trained policy interface. Supported fixed-shape leaf spaces are one-dimensional Box, Discrete, MultiDiscrete, and MultiBinary. Dict and Tuple containers may be nested and may combine these leaf types.
This enables hybrid observation and action schemas that mix continuous and categorical fields. Verified combinations include Dict observations containing Box and Discrete fields and Tuple or Dict actions containing both Box and Discrete branches. Structured Unity ML-Agents examples also include Tuple observations paired with Discrete and MultiDiscrete actions.
Buyers may include numeric state fields, action masks, goal or mode fields, task IDs, and encoded instruction vectors as part of the observation data when those fields are included in the dataset.
Unity ML-Agents users should collect trajectories from the Unity environment outside the SageMaker training container and package those trajectories as Minari-compatible datasets. SageMaker training uses the uploaded offline dataset and does not launch the Unity Editor or the customer's Unity executable.
For compatible inference and batch transform workflows, the exported model accepts JSON input containing observations, where observations is an ordered list of observation records representing the episode history so far.
The model returns an action for the latest observation in the provided observation history. The exact action structure is determined by the trained bundle; the sample below uses an action vector.
- Limitations for input type
- Training input must be ordered offline RL trajectories stored as Minari-compatible dataset directories. dataset_ids must reference paths under the SageMaker training channel root. Supported spaces: 1D Box, Discrete, MultiDiscrete, MultiBinary, and nested Dict/Tuple structures built from them. Fixed-shape hybrid observation/action schemas may combine continuous and categorical branches. Multidimensional image Box, Text, Sequence, Graph, OneOf, and variable-length structures are unsupported. Encode raw text, images, audio, or variable-length inputs as fixed-size numeric fields. For Unity ML-Agents, Unity collects trajectories and evaluates or deploys the policy. SageMaker trains only from uploaded offline data and does not run Unity. Inference and batch requests must use observations as ordered episode history. Dimensions, structure, ordering, bounds, and categorical branches must match the trained bundle. Data quality and environment compatibility may affect results.
- Input MIME type
- application/json
Input data descriptions
The following table describes supported input data fields for real-time inference and batch transform.
Field name | Description | Constraints | Required |
|---|---|---|---|
dataset_ids | Comma-separated Minari dataset IDs to use for training. Each dataset ID is interpreted relative to the SageMaker training channel root. Example: mujoco/humanoid/simple-v0,mujoco/humanoid/medium-v0 | - | Yes |
max_steps | Maximum number of training update steps. Use a smaller value for smoke testing and a larger value for full training workflows. If omitted, the training recipe default is used. | - | No |
batch_size | Training minibatch size. If omitted, the training recipe default is used. | - | No |
context_length | Number of trajectory steps used as sequential context by the autoregressive policy model during training and bundle export. This is a training hyperparameter, not an inference request field. | - | No |
seed | Optional random seed for reproducibility checks. | - | No |
Resources
Support
Vendor support
For product support, contact CCNets at support@ccnets.org .
Website: https://ccnets.org
CCNets provides email-based technical support for this product. Support includes guidance for Amazon SageMaker training job configuration, container usage, supported hyperparameters, CloudWatch log review, S3 model artifact output, and general troubleshooting related to running the algorithm.
This product is intended for technical users familiar with Amazon SageMaker and reinforcement learning workflows. Support does not include custom model development, customer-specific dataset engineering, production system integration, or guaranteed performance tuning unless separately agreed with CCNets.
For enterprise deployment, custom training workflows, or integration support, please contact CCNets to discuss a separate support arrangement.
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.