# SAP-RPT-1 `SAP-RPT-1` is a relational pretrained transformer for use on relational and structured data. It's developed and maintained by SAP. Relational Foundation Models \(RFMs\) are large-scale machine learning models designed to understand, process, and do predictions on tabular and relational data. `SAP-RPT-1` is a table-native model aiming to achieve highest prediction quality and lowest error rates for predictions on tabular business data. It's pretrained, and doesn't need additional training or fine-tuning steps. RPT-1 solves predictive tasks such as classification and regression out-of-the-box without requiring any training or fine-tuning via in-context learning. Due to its table-native architecture, prediction quality on enterprise data is typically very high, ahead of state-of-the-art narrow AI models and LLMs employed for such tasks. You can get predictions directly in one API call from provided context examples. ## Key Features Key features include: - **Pretrained Model:** Removes the need to collect training datasets, manage compute infrastructure, or wait weeks for model training cycles. Deploy immediately with production-ready accuracy. - **In-Context Learning:** Accepts representative context examples during inference time to return instant predictions without the need for setup or customization for your specific use cases. - **Fast Iterations and Adaptation:** Adapts to the context data provided in your requests, without the need for additional training steps or deployments. - **Grounded to Business:** Produces predictions that are grounded in the provided context examples, resulting in a lower risk of prediction errors or hallucinations. ## Tabular In-Context Learning `SAP-RPT-1` produces predictions through tabular in-context learning. Prompts are given in table form. They contain context examples and fields marked for prediction with a placeholder value. > ### Example: > The following prompt shows a table where cost centers are associated with ordered products. A placeholder value \(`[PREDICT]`\) has been used to request a prediction for the `COSTCENTER` of the couch. `SAP-RPT-1` returns proposals for the prediction request. Multiple requests can be included in one table prompt. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
> > PRODUCT > > > > PRICE > > > > ORDERDATE > > > > ID > > > > COSTCENTER > >
> > Couch > > > > 999.99 > > > > 28-11-2025 > > > > 35 > > > > `[PREDICT]` > >
> > Office Chair > > > > 150.8 > > > > 02-11-2025 > > > > 44 > > > > Office Furniture > >
> > Server Rack > > > > 2200.00 > > > > 01-11-2025 > > > > 104 > > > > Data Infrastructure > >
## SAP RPT Models `SAP-RPT-1` has the following versions: - `sap-rpt-1-small`, which is recommended when: - Prediction scenarios are of medium complexity. - Low latency and high-prediction throughput are the primary objective. - `sap-rpt-1-large`, which is recommended when: - Prediction scenarios are complex. - Best prediction quality and lowest error rates are the primary objective. **Model Specifications**
Value `sap-rpt-1-small` `sap-rpt-1-large`
Max. Context Length 2048 rows 65536 rows
Max. Columns 100 columns 256 columns
Number of Target Classes \(Classification\) 256\* 1024\*
Recommended Context Length 500–2000 rows\+ 4000–8000 rows\+
Both model versions allow up to 128 simultaneous prediction rows and up to 10 simultaneous prediction columns in each prediction request. Supported task types are `classification` and `regression`. \* The number of target classes is a recommendation for best prediction quality, not a hard limit. Depending on the specific use case, models can produce high-quality predictions for larger numbers of target classes. \+ Generic recommendations on context length are best practice values based on internal tests, balancing prediction quality, model runtime, and costs. Optimal settings vary across use cases and data sets, so customers or implementation partners must conduct their own testing with production data to achieve the best results for their specific scenario. ## Workflow You can access the models through the `foundation-models` scenario and the `aicore-sap` executable ID. To use a model through the `foundation-models` scenario, you must create a configuration and then a deployment. You need the `executableId`: `aicore-sap` and `modelName`: `sap-rpt-1-small` or `sap-rpt-1-large`. You will also need a model version, or you can use `latest` to use the latest version. For more information, see [Create a Deployment](create-a-deployment-b32e7a8.md). You consume the model through API calls. For more information, see [Example Payloads for Inferencing: sap-rpt-1](example-payloads-for-inferencing-sap-rpt-1-399566e.md). ## Costs For an estimate of projected costs, use the For an estimate of projected costs, use the SAP AI Core cost calculator, and select your preferred model. For more information, see [SAP AI Core Cost Calculator for Generative AI](https://ai-core-calculator.cfapps.eu10.hana.ondemand.com/uimodule/index.html#/gen). - **[Example Payloads for Inferencing: sap-rpt-1](example-payloads-for-inferencing-sap-rpt-1-399566e.md)**