Instructions to use Mardiyyah/base_pubmedbert_2class_label_all_false with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mardiyyah/base_pubmedbert_2class_label_all_false with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Mardiyyah/base_pubmedbert_2class_label_all_false")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Mardiyyah/base_pubmedbert_2class_label_all_false") model = AutoModelForTokenClassification.from_pretrained("Mardiyyah/base_pubmedbert_2class_label_all_false", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download trainer_state.json from Mardiyyah/base_pubmedbert_2class_label_all_false: direct link, hf CLI and curl.
- Browser
- Download file 8.15 kB
-
https://huggingface.co/Mardiyyah/base_pubmedbert_2class_label_all_false/resolve/main/trainer_state.json
- Command line
-
hf download hf://Mardiyyah/base_pubmedbert_2class_label_all_false/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/Mardiyyah/base_pubmedbert_2class_label_all_false/resolve/main/trainer_state.json
8.15 kB
| { | |
| "best_metric": 0.7272148494962117, | |
| "best_model_checkpoint": "/nfs/production/literature/amina-mardiyyah/new_data/Ner_Pipeline/src/ner_pipeline/model_outputs/NER/CeLLaTe_2class_no_vague_3.0/BiomedNLP_BiomedBERT_base_uncased_abstract_fulltext/BaseStrategy/StandardNerHead/BaseTrainer/no_data_aug/label_all_tokens=False/checkpoint-2104", | |
| "epoch": 13.0, | |
| "eval_steps": 100, | |
| "global_step": 3419, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 1.0, | |
| "grad_norm": 0.4982587397098541, | |
| "learning_rate": 1.9204916458613406e-05, | |
| "loss": 0.239, | |
| "step": 263 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "eval_accuracy": 0.9782677227410648, | |
| "eval_loss": 0.06204956769943237, | |
| "eval_macro_f1": 0.6512090210617251, | |
| "eval_micro_f1": 0.6296296296296295, | |
| "eval_precision": 0.5550035486160397, | |
| "eval_recall": 0.7274418604651163, | |
| "eval_weighted_f1": 0.634497734808329, | |
| "step": 263 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "grad_norm": 0.3987138271331787, | |
| "learning_rate": 1.819473785289034e-05, | |
| "loss": 0.0388, | |
| "step": 526 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "eval_accuracy": 0.9834298774480829, | |
| "eval_loss": 0.051334723830223083, | |
| "eval_macro_f1": 0.7059807419782962, | |
| "eval_micro_f1": 0.6954887218045114, | |
| "eval_precision": 0.7027540360873694, | |
| "eval_recall": 0.6883720930232559, | |
| "eval_weighted_f1": 0.6951032506904561, | |
| "step": 526 | |
| }, | |
| { | |
| "epoch": 3.0, | |
| "grad_norm": 0.29330888390541077, | |
| "learning_rate": 1.7184559247167276e-05, | |
| "loss": 0.0245, | |
| "step": 789 | |
| }, | |
| { | |
| "epoch": 3.0, | |
| "eval_accuracy": 0.9828584939118099, | |
| "eval_loss": 0.059601079672575, | |
| "eval_macro_f1": 0.6991131542749585, | |
| "eval_micro_f1": 0.6856368563685636, | |
| "eval_precision": 0.6663740122914837, | |
| "eval_recall": 0.706046511627907, | |
| "eval_weighted_f1": 0.6867554225123284, | |
| "step": 789 | |
| }, | |
| { | |
| "epoch": 4.0, | |
| "grad_norm": 2.854372501373291, | |
| "learning_rate": 1.617438064144421e-05, | |
| "loss": 0.0187, | |
| "step": 1052 | |
| }, | |
| { | |
| "epoch": 4.0, | |
| "eval_accuracy": 0.9835480947314498, | |
| "eval_loss": 0.06457026302814484, | |
| "eval_macro_f1": 0.7112142759201584, | |
| "eval_micro_f1": 0.7041984732824427, | |
| "eval_precision": 0.722820763956905, | |
| "eval_recall": 0.6865116279069767, | |
| "eval_weighted_f1": 0.7036119958472902, | |
| "step": 1052 | |
| }, | |
| { | |
| "epoch": 5.0, | |
| "grad_norm": 0.018077507615089417, | |
| "learning_rate": 1.5164202035721145e-05, | |
| "loss": 0.0141, | |
| "step": 1315 | |
| }, | |
| { | |
| "epoch": 5.0, | |
| "eval_accuracy": 0.9838830437009891, | |
| "eval_loss": 0.06094871088862419, | |
| "eval_macro_f1": 0.6993277824459552, | |
| "eval_micro_f1": 0.7006548175865295, | |
| "eval_precision": 0.7046095954844779, | |
| "eval_recall": 0.6967441860465117, | |
| "eval_weighted_f1": 0.700647410878768, | |
| "step": 1315 | |
| }, | |
| { | |
| "epoch": 6.0, | |
| "grad_norm": 0.09221010655164719, | |
| "learning_rate": 1.415402342999808e-05, | |
| "loss": 0.0105, | |
| "step": 1578 | |
| }, | |
| { | |
| "epoch": 6.0, | |
| "eval_accuracy": 0.9836269062536943, | |
| "eval_loss": 0.07379472255706787, | |
| "eval_macro_f1": 0.7046135515897649, | |
| "eval_micro_f1": 0.6990291262135923, | |
| "eval_precision": 0.6948529411764706, | |
| "eval_recall": 0.7032558139534884, | |
| "eval_weighted_f1": 0.6988364426853865, | |
| "step": 1578 | |
| }, | |
| { | |
| "epoch": 7.0, | |
| "grad_norm": 0.004496554844081402, | |
| "learning_rate": 1.3143844824275017e-05, | |
| "loss": 0.0081, | |
| "step": 1841 | |
| }, | |
| { | |
| "epoch": 7.0, | |
| "eval_accuracy": 0.9843953185955787, | |
| "eval_loss": 0.07587427645921707, | |
| "eval_macro_f1": 0.7201546095800525, | |
| "eval_micro_f1": 0.7122401847575058, | |
| "eval_precision": 0.7073394495412844, | |
| "eval_recall": 0.7172093023255814, | |
| "eval_weighted_f1": 0.7123243415430629, | |
| "step": 1841 | |
| }, | |
| { | |
| "epoch": 8.0, | |
| "grad_norm": 0.004374806769192219, | |
| "learning_rate": 1.213366621855195e-05, | |
| "loss": 0.0062, | |
| "step": 2104 | |
| }, | |
| { | |
| "epoch": 8.0, | |
| "eval_accuracy": 0.9843362099538953, | |
| "eval_loss": 0.08629412949085236, | |
| "eval_macro_f1": 0.7272148494962117, | |
| "eval_micro_f1": 0.7193486590038314, | |
| "eval_precision": 0.7413622902270484, | |
| "eval_recall": 0.6986046511627907, | |
| "eval_weighted_f1": 0.7187842794361455, | |
| "step": 2104 | |
| }, | |
| { | |
| "epoch": 9.0, | |
| "grad_norm": 1.1821943521499634, | |
| "learning_rate": 1.1123487612828885e-05, | |
| "loss": 0.005, | |
| "step": 2367 | |
| }, | |
| { | |
| "epoch": 9.0, | |
| "eval_accuracy": 0.9834692832092052, | |
| "eval_loss": 0.09909486770629883, | |
| "eval_macro_f1": 0.7163794853377471, | |
| "eval_micro_f1": 0.7071189679885332, | |
| "eval_precision": 0.7269155206286837, | |
| "eval_recall": 0.6883720930232559, | |
| "eval_weighted_f1": 0.705887444504079, | |
| "step": 2367 | |
| }, | |
| { | |
| "epoch": 10.0, | |
| "grad_norm": 0.3540628254413605, | |
| "learning_rate": 1.011330900710582e-05, | |
| "loss": 0.0043, | |
| "step": 2630 | |
| }, | |
| { | |
| "epoch": 10.0, | |
| "eval_accuracy": 0.9837648264176223, | |
| "eval_loss": 0.0970720574259758, | |
| "eval_macro_f1": 0.716738390957838, | |
| "eval_micro_f1": 0.7124463519313304, | |
| "eval_precision": 0.7309197651663405, | |
| "eval_recall": 0.6948837209302325, | |
| "eval_weighted_f1": 0.7121431984193224, | |
| "step": 2630 | |
| }, | |
| { | |
| "epoch": 11.0, | |
| "grad_norm": 0.005191281903535128, | |
| "learning_rate": 9.103130401382755e-06, | |
| "loss": 0.0037, | |
| "step": 2893 | |
| }, | |
| { | |
| "epoch": 11.0, | |
| "eval_accuracy": 0.9842376955510895, | |
| "eval_loss": 0.08849796652793884, | |
| "eval_macro_f1": 0.717734764550731, | |
| "eval_micro_f1": 0.7097073850441246, | |
| "eval_precision": 0.7087198515769945, | |
| "eval_recall": 0.7106976744186047, | |
| "eval_weighted_f1": 0.7095773872932877, | |
| "step": 2893 | |
| }, | |
| { | |
| "epoch": 12.0, | |
| "grad_norm": 0.06323941051959991, | |
| "learning_rate": 8.092951795659689e-06, | |
| "loss": 0.0029, | |
| "step": 3156 | |
| }, | |
| { | |
| "epoch": 12.0, | |
| "eval_accuracy": 0.9838436379398668, | |
| "eval_loss": 0.09374167025089264, | |
| "eval_macro_f1": 0.7149501661129567, | |
| "eval_micro_f1": 0.7065317387304508, | |
| "eval_precision": 0.6988171064604186, | |
| "eval_recall": 0.7144186046511628, | |
| "eval_weighted_f1": 0.7065465502588271, | |
| "step": 3156 | |
| }, | |
| { | |
| "epoch": 13.0, | |
| "grad_norm": 0.0015310944290831685, | |
| "learning_rate": 7.082773189936625e-06, | |
| "loss": 0.0026, | |
| "step": 3419 | |
| }, | |
| { | |
| "epoch": 13.0, | |
| "eval_accuracy": 0.9835086889703275, | |
| "eval_loss": 0.09860624372959137, | |
| "eval_macro_f1": 0.7266804658488303, | |
| "eval_micro_f1": 0.7179253867151957, | |
| "eval_precision": 0.7025823686553874, | |
| "eval_recall": 0.7339534883720931, | |
| "eval_weighted_f1": 0.7179558056534809, | |
| "step": 3419 | |
| }, | |
| { | |
| "epoch": 13.0, | |
| "step": 3419, | |
| "total_flos": 2769004680551070.0, | |
| "train_loss": 0.029107928502695644, | |
| "train_runtime": 400.3241, | |
| "train_samples_per_second": 420.11, | |
| "train_steps_per_second": 13.139 | |
| } | |
| ], | |
| "logging_steps": 10, | |
| "max_steps": 5260, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 20, | |
| "save_steps": 100, | |
| "stateful_callbacks": { | |
| "EarlyStoppingCallback": { | |
| "args": { | |
| "early_stopping_patience": 5, | |
| "early_stopping_threshold": 0.0 | |
| }, | |
| "attributes": { | |
| "early_stopping_patience_counter": 5 | |
| } | |
| }, | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 2769004680551070.0, | |
| "train_batch_size": 16, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |