Upload 4 files 102d757 verified
Raphael Scheible-Schmitt commited on
How to use HalleluBERT/HalleluBERT_base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="HalleluBERT/HalleluBERT_base") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("HalleluBERT/HalleluBERT_base")
model = AutoModelForMaskedLM.from_pretrained("HalleluBERT/HalleluBERT_base")How to use HalleluBERT/HalleluBERT_base 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_base"
)