Instructions to use T0KII/MASRIBERTv3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use T0KII/MASRIBERTv3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="T0KII/MASRIBERTv3")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("T0KII/MASRIBERTv3") model = AutoModelForMaskedLM.from_pretrained("T0KII/MASRIBERTv3") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 1000, checkpoint
Browse files- last-checkpoint/config.json +36 -0
- last-checkpoint/model.safetensors +3 -0
- last-checkpoint/optimizer.pt +3 -0
- last-checkpoint/rng_state.pth +3 -0
- last-checkpoint/scaler.pt +3 -0
- last-checkpoint/scheduler.pt +3 -0
- last-checkpoint/tokenizer.json +0 -0
- last-checkpoint/tokenizer_config.json +16 -0
- last-checkpoint/trainer_state.json +79 -0
- last-checkpoint/training_args.bin +3 -0
last-checkpoint/config.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_cross_attention": false,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertForMaskedLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": null,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"directionality": "bidi",
|
| 10 |
+
"dtype": "float32",
|
| 11 |
+
"eos_token_id": null,
|
| 12 |
+
"gradient_checkpointing": false,
|
| 13 |
+
"hidden_act": "gelu",
|
| 14 |
+
"hidden_dropout_prob": 0.1,
|
| 15 |
+
"hidden_size": 768,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 3072,
|
| 18 |
+
"is_decoder": false,
|
| 19 |
+
"layer_norm_eps": 1e-12,
|
| 20 |
+
"max_position_embeddings": 512,
|
| 21 |
+
"model_type": "bert",
|
| 22 |
+
"num_attention_heads": 12,
|
| 23 |
+
"num_hidden_layers": 12,
|
| 24 |
+
"pad_token_id": 0,
|
| 25 |
+
"pooler_fc_size": 768,
|
| 26 |
+
"pooler_num_attention_heads": 12,
|
| 27 |
+
"pooler_num_fc_layers": 3,
|
| 28 |
+
"pooler_size_per_head": 128,
|
| 29 |
+
"pooler_type": "first_token_transform",
|
| 30 |
+
"position_embedding_type": "absolute",
|
| 31 |
+
"tie_word_embeddings": false,
|
| 32 |
+
"transformers_version": "5.0.0",
|
| 33 |
+
"type_vocab_size": 2,
|
| 34 |
+
"use_cache": false,
|
| 35 |
+
"vocab_size": 140274
|
| 36 |
+
}
|
last-checkpoint/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:821773593319cef84468d10a244226341b7b8667c44dd2971a1cf23640daed44
|
| 3 |
+
size 775678032
|
last-checkpoint/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52632d962d021592a4d35dcf054f881443ff2887ff0e4bbbc4353a2b8b9a91f6
|
| 3 |
+
size 1551478091
|
last-checkpoint/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f55722c1d04d6be8d4523cc19c3a4a31a7e2280365d564803d84b6488532136d
|
| 3 |
+
size 14645
|
last-checkpoint/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14ae2a2128444abab378aa06c09a61a84665f758fcc19fc46f5789b0bc1b5665
|
| 3 |
+
size 1383
|
last-checkpoint/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1b19a7500950d30fded81aead129a45d919e1761663c3b918dd44c1accdbcb20
|
| 3 |
+
size 1465
|
last-checkpoint/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
last-checkpoint/tokenizer_config.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"do_basic_tokenize": true,
|
| 5 |
+
"do_lower_case": true,
|
| 6 |
+
"is_local": false,
|
| 7 |
+
"mask_token": "[MASK]",
|
| 8 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 9 |
+
"never_split": null,
|
| 10 |
+
"pad_token": "[PAD]",
|
| 11 |
+
"sep_token": "[SEP]",
|
| 12 |
+
"strip_accents": null,
|
| 13 |
+
"tokenize_chinese_chars": true,
|
| 14 |
+
"tokenizer_class": "BertTokenizer",
|
| 15 |
+
"unk_token": "[UNK]"
|
| 16 |
+
}
|
last-checkpoint/trainer_state.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": 1000,
|
| 3 |
+
"best_metric": 7.187783241271973,
|
| 4 |
+
"best_model_checkpoint": "/kaggle/working/MASRIBERTv3_ckpts/checkpoint-1000",
|
| 5 |
+
"epoch": 0.1503250779811342,
|
| 6 |
+
"eval_steps": 1000,
|
| 7 |
+
"global_step": 1000,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"epoch": 0.03758126949528355,
|
| 14 |
+
"grad_norm": 104.15485382080078,
|
| 15 |
+
"learning_rate": 4.680451127819549e-06,
|
| 16 |
+
"loss": 82.7376953125,
|
| 17 |
+
"step": 250
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"epoch": 0.0751625389905671,
|
| 21 |
+
"grad_norm": 95.12043762207031,
|
| 22 |
+
"learning_rate": 9.3796992481203e-06,
|
| 23 |
+
"loss": 71.7012734375,
|
| 24 |
+
"step": 500
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"epoch": 0.11274380848585065,
|
| 28 |
+
"grad_norm": 104.137451171875,
|
| 29 |
+
"learning_rate": 1.4078947368421053e-05,
|
| 30 |
+
"loss": 64.50540625,
|
| 31 |
+
"step": 750
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"epoch": 0.1503250779811342,
|
| 35 |
+
"grad_norm": 100.89773559570312,
|
| 36 |
+
"learning_rate": 1.8778195488721807e-05,
|
| 37 |
+
"loss": 61.0135390625,
|
| 38 |
+
"step": 1000
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"epoch": 0.1503250779811342,
|
| 42 |
+
"eval_loss": 7.187783241271973,
|
| 43 |
+
"eval_runtime": 245.496,
|
| 44 |
+
"eval_samples_per_second": 70.07,
|
| 45 |
+
"eval_steps_per_second": 1.096,
|
| 46 |
+
"step": 1000
|
| 47 |
+
}
|
| 48 |
+
],
|
| 49 |
+
"logging_steps": 250,
|
| 50 |
+
"max_steps": 26612,
|
| 51 |
+
"num_input_tokens_seen": 0,
|
| 52 |
+
"num_train_epochs": 4,
|
| 53 |
+
"save_steps": 1000,
|
| 54 |
+
"stateful_callbacks": {
|
| 55 |
+
"EarlyStoppingCallback": {
|
| 56 |
+
"args": {
|
| 57 |
+
"early_stopping_patience": 3,
|
| 58 |
+
"early_stopping_threshold": 0.0
|
| 59 |
+
},
|
| 60 |
+
"attributes": {
|
| 61 |
+
"early_stopping_patience_counter": 0
|
| 62 |
+
}
|
| 63 |
+
},
|
| 64 |
+
"TrainerControl": {
|
| 65 |
+
"args": {
|
| 66 |
+
"should_epoch_stop": false,
|
| 67 |
+
"should_evaluate": false,
|
| 68 |
+
"should_log": false,
|
| 69 |
+
"should_save": true,
|
| 70 |
+
"should_training_stop": false
|
| 71 |
+
},
|
| 72 |
+
"attributes": {}
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"total_flos": 1.6866686140416e+16,
|
| 76 |
+
"train_batch_size": 32,
|
| 77 |
+
"trial_name": null,
|
| 78 |
+
"trial_params": null
|
| 79 |
+
}
|
last-checkpoint/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b4f316695fa91258ca64377b288abdca2772303c74261f1a0379699703970df
|
| 3 |
+
size 5201
|