Migration to safetensors a5b4ad4
ideasbyjin commited on
How to use alchemab/antiberta2-cssp with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="alchemab/antiberta2-cssp") # Load model directly
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("alchemab/antiberta2-cssp")
model = AutoModel.from_pretrained("alchemab/antiberta2-cssp")