Views
No views yet
| Model variant | Parameters | Config |
|---|---|---|
| AntiBERTa2 | 202M | 16L, 16H, 1024d |
| AntiBERTa2-CSSP | 202M | 16L, 16H, 1024d |
>>> from transformers import (
RoFormerForMaskedLM,
RoFormerTokenizer,
pipeline,
RoFormerForSequenceClassification
)
>>> tokenizer = RoFormerTokenizer.from_pretrained("alchemab/antiberta2")
>>> model = RoFormerForMaskedLM.from_pretrained("alchemab/antiberta2")
>>> filler = pipeline(model=model, tokenizer=tokenizer)
>>> filler("Ḣ Q V Q ... C A [MASK] D ... T V S S") # fill in the mask
>>> new_model = RoFormerForSequenceClassification.from_pretrained(
"alchemab/antiberta2") # this will of course raise warnings
# that a new linear layer will be added
# and randomly initialized