Views
No views yet
| Model variant | Parameters | Config |
|---|---|---|
| AntiBERTa2 | 202M | 16L, 16H, 1024d |
| AntiBERTa2-CSSP | 202M | 16L, 16H, 1024d |
>>> from transformers import (
RoFormerModel,
RoFormerTokenizer,
RoFormerForSequenceClassification
)
>>> tokenizer = RoFormerTokenizer.from_pretrained("alchemab/antiberta2-cssp")
>>> model = RoFormerModel.from_pretrained("alchemab/antiberta2-cssp")
>>> model(**tokenizer("Ḣ Q V Q ... T V S S", return_tensors='pt')).last_hidden_state... # etc
>>> new_model = RoFormerForSequenceClassification.from_pretrained(
"alchemab/antiberta2-cssp") # this will of course raise warnings
# that a new linear layer will be added
# and randomly initialized