SAVRN
Search Contact SAVRN

SAVRN Model Hub · Comparisons

codebert-python vs roberta-base

Codebert-python has 125M parameters and roberta-base has 125M parameters; at 16-bit, codebert-python needs about 0.3 GB (1x MI300X from $1.85 an hour) and roberta-base about 0.3 GB (1x MI300X from $1.85 an hour).

Published metadata for 2 models, each read from its own repository.
Field codebert-python
neulab/codebert-python
roberta-base
FacebookAI/roberta-base
Publisher NeuLab @ LTI/CMU Facebook AI community
Task Fill mask Fill mask
Modality Text Text
Parameters, as reported 125M parameters 125M parameters
Architecture RobertaForMaskedLM RobertaForMaskedLM
Library transformers transformers
Context length 514 tokens 514 tokens
Repository size 1.0 GB 2.8 GB
Artifact formats safetensors, pytorch safetensors, pytorch, jax, rust, tf
License Not stated mit
Access Open weights, no gate Open weights, no gate
Memory at 16-bit (weights and margin) 0.3 GB 0.3 GB
Cheapest GPUs at 16-bit, per hour 1x MI300X, $1.85 1x MI300X, $1.85
Memory at 4-bit (weights and margin) 0.1 GB 0.1 GB
Cheapest GPUs at 4-bit, per hour 1x MI300X, $1.85 1x MI300X, $1.85
Revision viewed c4ff459e2a91 e2da8e2f811d
Downloads reported by the hub 359.4k 8.2M
Last observed 2026-09-18 2026-10-09

An evaluation row appears only where at least two of these models report the same benchmark with the same stated configuration, metric, unit and setup. Different evaluators stay named in each cell. Values are shown as reported: no unit conversion, no ranking.

SAVRN's Notes on codebert-python

This is not a code generator. CMU's NeuLab trained CodeBERT on Python for one million steps so it can score generated code against a reference, as the engine behind the CodeBERTScore metric. At 125M parameters it runs anywhere.

The repository states no license, so treat it as research use until that changes. If you are evaluating coding models, this is a useful second opinion next to unit tests, because it rewards code that means the same thing even when the text differs. It does not replace running the tests.

SAVRN's Notes on roberta-base

Case matters here: roberta-base, from the Facebook AI community, tells english from English. Pretrained on raw English text from bookcorpus and wikipedia by masked language modeling, its listed task is fill mask: token prediction and what you build on it, not chat. At 16-bit its 125M parameters take 0.2 GB of weights and 0.3 GB to run, against a cheapest listed setup of one 192 GB MI300X at $1.85 per hour on-demand; on our floor that shares a card, never owns one.

MIT is short: commercial use, modification and redistribution are allowed, the one duty being to carry the copyright and permission notices along. Check provenance and packaging. The releasing team wrote no model card, so bookcorpus and wikipedia are all the page discloses on data. The repository is 2.82 GB across 13 files in safetensors, pytorch, jax, rust and tf; pull only the format your stack loads.

Questions

Which is larger, codebert-python or roberta-base?

codebert-python (125M parameters) is larger than roberta-base (125M parameters), by the parameter counts their publishers report.

Which is cheaper to run, codebert-python or roberta-base?

At 4-bit, codebert-python fits on 1x MI300X from $1.85 an hour and roberta-base on 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use roberta-base commercially?

Yes. roberta-base is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

Related Comparisons