State-of-the-art language model for Hebrew.
Based on Google's BERT architecture
(Devlin et al. 2018)
.
How to use
from transformers import BertModel, BertTokenizerFast
alephbert_tokenizer = BertTokenizerFast.from_pretrained('onlplab/alephbert-base')
alephbert = BertModel.from_pretrained('onlplab/alephbert-base')
# if not finetuning - disable dropout
alephbert.eval()
Training data
OSCAR
(Ortiz, 2019)
Hebrew section (10 GB text, 20 million sentences).
Hebrew dump of
Wikipedia
(650 MB text, 3 million sentences).
Hebrew Tweets collected from the Twitter sample stream (7 GB text, 70 million sentences).
Training procedure
Trained on a DGX machine (8 V100 GPUs) using the standard huggingface training procedure.
Since the larger part of our training data is based on tweets we decided to start by optimizing using Masked Language Model loss only.
To optimize training time we split the data into 4 sections based on max number of tokens:
num tokens < 32 (70M sentences)
32 <= num tokens < 64 (12M sentences)
64 <= num tokens < 128 (10M sentences)
128 <= num tokens < 512 (1.5M sentences)
Each section was first trained for 5 epochs with an initial learning rate set to 1e-4. Then each section was trained for another 5 epochs with an initial learning rate set to 1e-5, for a total of 10 epochs.
Total training time was 8 days.
Runs of biu-nlp alephbert-base on huggingface.co
11
Total runs
0
24-hour runs
-3
3-day runs
-2
7-day runs
-2
30-day runs
More Information About alephbert-base huggingface.co Model
alephbert-base huggingface.co is an AI model on huggingface.co that provides alephbert-base's model effect (), which can be used instantly with this biu-nlp alephbert-base model. huggingface.co supports a free trial of the alephbert-base model, and also provides paid use of the alephbert-base. Support call alephbert-base model through api, including Node.js, Python, http.
alephbert-base huggingface.co is an online trial and call api platform, which integrates alephbert-base's modeling effects, including api services, and provides a free online trial of alephbert-base, you can try alephbert-base online for free by clicking the link below.
biu-nlp alephbert-base online free url in huggingface.co:
alephbert-base is an open source model from GitHub that offers a free installation service, and any user can find alephbert-base on GitHub to install. At the same time, huggingface.co provides the effect of alephbert-base install, users can directly use alephbert-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.