Overview
Python predict
Classify a message as spam or ham
Python predict
POST /invocations
Runs inside your own AWS account: your text is processed on a SageMaker endpoint you control, inside your VPC, and is never sent to a third-party API.
This SageMaker model package provides a REST API to classify messages as spam or ham (legitimate).
The model is fine-tuned on SMS and email spam corpora and returns a label with a confidence score. Use it to filter user-generated content, protect messaging platforms, or pre-screen inbound email.
The API accepts input as JSON or CSV and supports real-time endpoints and batch transform.
We welcome your feedback at support@sigmodata.com
Model and training data The model is a ModernBERT-base (answerdotai/ModernBERT-base) text classifier fine-tuned with PyTorch and Hugging Face Transformers on the public sms_spam and SetFit/enron_spam corpora. It runs in network isolation on SageMaker, so no data leaves your account.
Known limitations
- English only. Other languages are not supported.
- The model was fine-tuned on inputs up to 512 tokens. Longer text is accepted, but accuracy is only characterized to that length; split long documents into passages before sending.
- Trained on SMS and email text. Spam styles drift over time, so evaluate against your own recent traffic before relying on it.
Measured performance
- Accuracy 99.1 percent, macro-F1 0.991, measured on 7,847 held-out examples from the SMS and Enron spam corpora. The split is seeded (70/20/10, seed 42) and was not used in training.
- Real-time endpoint on ml.m5.large: 255 ms median per request (267 ms p95).
- Throughput on the same instance: about 24 texts per second at a batch size of 32.
Highlights
- Flag spam in SMS-style messages and email, with a spam or ham confidence score
- Runs inside your own AWS account and VPC - text is never sent to a third-party API
- 99.1 percent accuracy (macro-F1 0.991) on 7,847 held-out SMS and email examples; about 24 texts per second on ml.m5.large
Details
Features and programs
Financing for AWS Marketplace purchases
Pricing
Free trial
Dimension | Description | Cost/host/hour |
|---|---|---|
ml.m5.large Inference (Batch) Recommended | Model inference on the ml.m5.large instance type, batch mode | $0.10 |
ml.m5.large Inference (Real-Time) Recommended | Model inference on the ml.m5.large instance type, real-time mode | $0.10 |
ml.c5.2xlarge Inference (Batch) | Model inference on the ml.c5.2xlarge instance type, batch mode | $0.10 |
ml.c5.2xlarge Inference (Real-Time) | Model inference on the ml.c5.2xlarge instance type, real-time mode | $0.10 |
ml.c5.xlarge Inference (Batch) | Model inference on the ml.c5.xlarge instance type, batch mode | $0.10 |
ml.c5.xlarge Inference (Real-Time) | Model inference on the ml.c5.xlarge instance type, real-time mode | $0.10 |
ml.m5.2xlarge Inference (Batch) | Model inference on the ml.m5.2xlarge instance type, batch mode | $0.10 |
ml.m5.2xlarge Inference (Real-Time) | Model inference on the ml.m5.2xlarge instance type, real-time mode | $0.10 |
ml.m5.xlarge Inference (Batch) | Model inference on the ml.m5.xlarge instance type, batch mode | $0.10 |
ml.m5.xlarge Inference (Real-Time) | Model inference on the ml.m5.xlarge instance type, real-time mode | $0.10 |
Dimensions summary
Top-of-mind questions for buyers
Vendor refund policy
No refunds offered but you may cancel at any time
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
Amazon SageMaker model
An Amazon SageMaker model package is a pre-trained machine learning model ready to use without additional training. Use the model package to create a 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
Important: security update. The inference container is rebuilt on Amazon Linux 2023, replacing a Debian base that carried HIGH and CRITICAL CVEs with no fixed version available upstream.
- The model itself is unchanged. This version is exported from the same fine-tuned checkpoint as version 1.
- Request and response formats are unchanged: JSON or CSV in, label plus confidence out.
Additional details
Inputs
- Summary
A JSON object with a "texts" array of strings to classify (or a CSV file, one text per line, for batch transform).
- Input MIME type
- application/json, text/csv
Input data descriptions
The following table describes supported input data fields for real-time inference and batch transform.
Field name | Description | Constraints | Required |
|---|---|---|---|
texts | List of text strings to classify | - | Yes |
Resources
Vendor resources
Support
Vendor support
Support contact: Email: support@sigmodata.com Support URL: https://www.sigmodata.com/contact
Support description: Email support@sigmodata.com or https://www.sigmodata.com/contact . We reply within one business day, Monday through Friday, US Pacific time.
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.
Similar products



