Instructions to use nreimers/BERT-Mini_L-4_H-256_A-4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nreimers/BERT-Mini_L-4_H-256_A-4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="nreimers/BERT-Mini_L-4_H-256_A-4")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("nreimers/BERT-Mini_L-4_H-256_A-4") model = AutoModel.from_pretrained("nreimers/BERT-Mini_L-4_H-256_A-4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
This is the BERT-Medium model from Google: https://github.com/google-research/bert#bert. A BERT model with 4 layers, 256 hidden unit size, and 4 attention heads.
- Downloads last month
- 10