Upload 4 files 7ba1390 verified
Raphael Scheible-Schmitt commited on
How to use HalleluBERT/HalleluBERT_large with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="HalleluBERT/HalleluBERT_large") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("HalleluBERT/HalleluBERT_large")
model = AutoModelForMaskedLM.from_pretrained("HalleluBERT/HalleluBERT_large")How to use HalleluBERT/HalleluBERT_large with Fairseq:
from fairseq.checkpoint_utils import load_model_ensemble_and_task_from_hf_hub
models, cfg, task = load_model_ensemble_and_task_from_hf_hub(
"HalleluBERT/HalleluBERT_large"
)