Instructions to use imenrebhi/LayoutLMv2-model-pfe2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use imenrebhi/LayoutLMv2-model-pfe2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, LayoutLMv2ForRelationExtraction processor = AutoProcessor.from_pretrained("imenrebhi/LayoutLMv2-model-pfe2") model = LayoutLMv2ForRelationExtraction.from_pretrained("imenrebhi/LayoutLMv2-model-pfe2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,075 Bytes
392660a | 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": 58.8235294117647,
"global_step": 3000,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 9.8,
"learning_rate": 9.25925925925926e-06,
"loss": 0.5753,
"step": 500
},
{
"epoch": 19.61,
"learning_rate": 7.4074074074074075e-06,
"loss": 0.2734,
"step": 1000
},
{
"epoch": 29.41,
"learning_rate": 5.555555555555557e-06,
"loss": 0.1562,
"step": 1500
},
{
"epoch": 39.22,
"learning_rate": 3.7037037037037037e-06,
"loss": 0.1016,
"step": 2000
},
{
"epoch": 49.02,
"learning_rate": 1.8518518518518519e-06,
"loss": 0.071,
"step": 2500
},
{
"epoch": 58.82,
"learning_rate": 0.0,
"loss": 0.0559,
"step": 3000
}
],
"max_steps": 3000,
"num_train_epochs": 59,
"total_flos": 3267032656318464.0,
"trial_name": null,
"trial_params": null
}
|