ProkBERT mini k6s2 upload fe7f825
Ligeti Balázs commited on
How to use neuralbioinfo/prokbert-mini-long with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="neuralbioinfo/prokbert-mini-long", trust_remote_code=True) # Load model directly
from transformers import AutoModelForMaskedLM
model = AutoModelForMaskedLM.from_pretrained("neuralbioinfo/prokbert-mini-long", trust_remote_code=True, device_map="auto")