Instructions to use jaimin/arabic-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jaimin/arabic-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jaimin/arabic-bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("jaimin/arabic-bert") model = AutoModelForSequenceClassification.from_pretrained("jaimin/arabic-bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,070 Bytes
c09b423 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | {
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 0.06682556300536832,
"global_step": 3000,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.01,
"learning_rate": 4.98143734360962e-05,
"loss": 0.0,
"step": 500
},
{
"epoch": 0.02,
"learning_rate": 4.96287468721924e-05,
"loss": 0.0,
"step": 1000
},
{
"epoch": 0.03,
"learning_rate": 4.94431203082886e-05,
"loss": 0.0,
"step": 1500
},
{
"epoch": 0.04,
"learning_rate": 4.92574937443848e-05,
"loss": 0.0,
"step": 2000
},
{
"epoch": 0.06,
"learning_rate": 4.907186718048099e-05,
"loss": 0.0,
"step": 2500
},
{
"epoch": 0.07,
"learning_rate": 4.888624061657719e-05,
"loss": 0.0,
"step": 3000
}
],
"max_steps": 134679,
"num_train_epochs": 3,
"total_flos": 6314665328640000.0,
"trial_name": null,
"trial_params": null
}
|