allenai/c4
Viewer โข Updated โข 10.4B โข 771k โข 705
How to use tomaarsen/gte-en-mlm-base-native with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="tomaarsen/gte-en-mlm-base-native") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("tomaarsen/gte-en-mlm-base-native")
model = AutoModelForMaskedLM.from_pretrained("tomaarsen/gte-en-mlm-base-native", device_map="auto")Please use Alibaba-NLP/gte-en-mlm-base instead. Alibaba's original repository now includes the native Transformers support added in this copy, so you can load it with transformers>=5.18.0 without trust_remote_code=True.
Both repositories contain the same model weights and tokenizer. This copy remains available for existing links and code. See the original model card for usage instructions, evaluation results, and citation.