Overview
RuBERT-tiny Toxicity from cointegrated scores Russian text against 5 labels (non-toxic, insult, obscenity, threat, dangerous) and returns a probability for each. Our measurement on the OK ML Cup Russian toxicity test set (2,000 balanced texts): ROC-AUC 0.998, accuracy 0.984, F1 0.984; a TF-IDF logistic-regression baseline trained on the same training split scores AUC 0.889, F1 0.802. Use it to flag toxic or abusive comments before they are posted or indexed. The weights run on ml.t2.medium, the smallest SageMaker real-time instance type.
Model details
RuBERT-tiny Toxicity is a 3-layer Russian text classifier published by cointegrated on Hugging Face: 11.8M parameters (3 layers, 12 attention heads, hidden size 312, 29,564-token vocabulary), 47.2MB of weights, licensed MIT. Labels: non-toxic, insult, obscenity, threat, dangerous. It is multi-label: each label has an independent probability.
Measured quality
On the test split of the OK ML Cup toxicity set (2,000 texts, half toxic) the toxic score (1 minus the non-toxic probability) reaches ROC-AUC 0.998. Part of the model's own training data came from the same source, so this figure is optimistic for text from other places; evaluate on your own comments before relying on it.
Request and response
Request: {"inputs": ["<Russian text 1>", "<Russian text 2>"]} Response: {"predictions": [{"label": "insult", "score": 0.97, "scores": {"non-toxic": 0.02, "insult": 0.97, ...}}]} Up to 256 texts per request; optional top_k adds a ranked list. label is the highest-scoring class; scores holds every class.
Pricing
Software fee: $0.05 per instance-hour, billed by AWS Marketplace on top of the SageMaker instance. Real-time on ml.t2.medium: $0.05 + $0.056 = about $0.106 per hour (us-east-1). Batch transform on ml.m5.large: $0.05 + $0.115 = about $0.165 per hour, billed only while the job runs. Delete the endpoint when you finish to stop charges. Burstable t2 instances suit evaluation and light traffic; measure throughput before sustained heavy use.
Limits
Russian text, up to 512 tokens (longer text is truncated). Probabilities are independent per label, so several labels can be high at once. Not a replacement for human review of borderline content.
Deploy in 5 steps
Prerequisites: an AWS account, a SageMaker execution role, and boto3 with SageMaker permissions. No GPU and no VPC setup are needed.
- Subscribe to this listing and copy the model package ARN from the subscription.
- Create a model from that ARN with network isolation on.
- Create an endpoint on ml.t2.medium.
- Send the sample request below.
- Delete the endpoint, endpoint config and model when you are done. Time to value (estimate): typically under 10 minutes from subscription to first response, most of it SageMaker creating the endpoint. Sample code (the same calls we used to verify this package on a real endpoint): import boto3, json sm = boto3.client("sagemaker"); rt = boto3.client("sagemaker-runtime") arn = ""; role = "" sm.create_model(ModelName="m", ExecutionRoleArn=role, PrimaryContainer={"ModelPackageName": arn}, EnableNetworkIsolation=True) sm.create_endpoint_config(EndpointConfigName="m", ProductionVariants=[{"VariantName": "v", "ModelName": "m", "InstanceType": "ml.t2.medium", "InitialInstanceCount": 1}]) sm.create_endpoint(EndpointName="m", EndpointConfigName="m") sm.get_waiter("endpoint_in_service").wait(EndpointName="m") r = rt.invoke_endpoint(EndpointName="m", ContentType="application/json", Body=json.dumps({'inputs': ['<Russian text 1>', '<Russian text 2>']})) print(r["Body"].read().decode()) sm.delete_endpoint(EndpointName="m"); sm.delete_endpoint_config(EndpointConfigName="m"); sm.delete_model(ModelName="m")
Support
Email support@waltsoft.net . We reply within 1 business day (Monday to Friday). Covered: help deploying this model package on SageMaker, request and response format questions, and fixes for defects in the packaged container. Not covered: accuracy tuning on your own data, your application code, AWS account, IAM or quota issues, and custom model changes.
FAQ
Is my data sent anywhere? No. The model runs inside your SageMaker endpoint and the package is network-isolated. Which model is this? cointegrated/rubert-tiny-toxicity, licensed MIT. How do I deploy it? Subscribe, then create a real-time endpoint or batch transform job from the model package.
Highlights
- 47.2MB, 11.8M-parameter Russian classifier that runs on ml.t2.medium, the smallest SageMaker real-time instance type
- Measured ROC-AUC 0.998 against 0.889 for a TF-IDF logistic-regression baseline on 2,000 balanced test texts
- Returns an independent probability for each of 5 labels, for up to 256 texts per request
Details
Features and programs
Financing for AWS Marketplace purchases
Pricing
Dimension | Description | Cost/host/hour |
|---|---|---|
ml.t2.medium Inference (Real-Time) Recommended | Model inference on the ml.t2.medium instance type, real-time mode | $0.05 |
ml.m5.large Inference (Batch) Recommended | Model inference on the ml.m5.large instance type, batch mode | $0.05 |
Vendor refund policy
No refunds.
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
Initial release
Additional details
Inputs
- Summary
Russian text classifier from cointegrated: 5 labels (non-toxic, insult, obscenity...), 11.8M parameters, 47.2MB, runs on ml.t2.medium. ROC-AUC 0.998 vs 0.889 for TF-IDF logistic regression on the rutoxic-okml test set. MIT, private in your VPC.
- Input MIME type
- application/json
Support
Vendor support
Email support@waltsoft.net . Reply within 1 business day (Monday to Friday). Covers deployment help, request and response format questions and fixes for defects in the packaged container. Does not cover accuracy tuning on your data, your application code, AWS account, IAM or quota issues, or custom model changes.
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.