Instructions to use jhu-clsp/mmBERT-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jhu-clsp/mmBERT-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="jhu-clsp/mmBERT-base")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("jhu-clsp/mmBERT-base") model = AutoModelForMaskedLM.from_pretrained("jhu-clsp/mmBERT-base") - Inference
- Notebooks
- Google Colab
- Kaggle
safetensors
#15
by bwallima - opened
Why was Safetensors removed, and why hasn't the current pull request been accepted?
Hey @bwallima ! When I first was putting this up and merged it, it didn't save the tensors right. Something about the conversion at the time made it change the model (and be much worse).
If you have time to double check that the safetensors output is equivalent to the regular output, would be happy to merge this! Just haven't had time to do it.