Model reference · open weights
RITA_s is an open-weight language model from lightonai. RITA_s (FP16) weighs 170 MB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the lightonai/RITA_s model card, 2026-10-01
What it is
| Released by | lightonai |
|---|---|
| Released | 2022-04-25 |
| Parameters | 85M |
| VRAM | 170 MB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 1K each | |||
| RTX 3060 12 GB | 290 | all 1K | 11.6 GB |
| RTX 4060 Ti 16 GB | 391 | all 1K | 15.4 GB |
| RTX 3090 24 GB | 603 | all 1K | 23.4 GB |
| RTX 4090 24 GB | 601 | all 1K | 23.4 GB |
| RTX 5090 32 GB | 804 | all 1K | 31.0 GB |
| L40S 48 GB | 1000+ | all 1K | 44.0 GB |
| A100 80 GB | 1000+ | all 1K | 78.2 GB |
| H100 80 GB | 1000+ | all 1K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 1000+ | all 1K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 1000+ | all 1K | 107 GB |
| H200 141 GB | 1000+ | all 1K | 138 GB |
| B200 180 GB | 1000+ | all 1K | 176 GB |
| Requests at once | 1K tokens each |
|---|---|
| 1 | 675 MB |
| 5 | 826 MB |
| 8 | 939 MB |
| 16 | 1.2 GB |
| 32 | 1.8 GB |
| 64 | 3.1 GB |
One card, with vLLM's small-card settings.
From the model card
RITA is a family of autoregressive protein models, developed by a collaboration of Lighton, the OATML group at Oxford, and the Debbie Marks Lab at Harvard.
| Model | #Params | d_model | layers | lm loss uniref-100 |
|---|---|---|---|---|
| Small | 85M | 768 | 12 | 2.31 |
| Medium | 300M | 1024 | 24 | 2.01 |
| Large | 680M | 1536 | 24 | 1.82 |
| XLarge | 1.2B | 2048 | 24 | 1.70 |
For full results see our preprint: https://arxiv.org/abs/2205.05789
Instantiate a model like so:
from transformers import AutoModel, AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("lightonai/RITA_s, trust_remote_code=True")
tokenizer = AutoTokenizer.from_pretrained("lightonai/RITA_s")
for generation we support pipelines:
from transformers import pipeline
rita_gen = pipeline('text-generation', model=model, tokenizer=tokenizer)
sequences = rita_gen("MAB", max_length=20, do_sample=True, top_k=950, repetition_penalty=1.2,
num_return_sequences=2, eos_token_id=2)
for seq in sequences:
print(f"seq: {seq['generated_text'].replace(' ', '')}")
@article{hesslow2022rita,
title={RITA: a Study on Scaling Up Generative Protein Sequence Models},
author={Hesslow, Daniel and Zanichelli, Niccol{\'o} and Notin, Pascal and Poli, Iacopo and Marks, Debora},
journal={arXiv preprint arXiv:2205.05789},
year={2022}
}Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.