Run this model with HF Jobs
Run microsoft/layoutlm-base-uncased on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/microsoft/layoutlm-base-uncased. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/microsoft/layoutlm-base-uncased on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use microsoft/layoutlm-base-uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/layoutlm-base-uncased with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("microsoft/layoutlm-base-uncased", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
7893af6
1
Parent(s): 5f900e9
Add TF model
Browse filesFiles changed (3)
- .gitattributes+1
- config.json+6-9
- tf_model.h5Added+3
5 unmodified lines6785 unmodified lines*.tar.gz filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -text5 unmodified lines67895 unmodified lines*.tar.gz filter=lfs diff=lfs merge=lfs -text*.ot filter=lfs diff=lfs merge=lfs -text*.onnx filter=lfs diff=lfs merge=lfs -texttf_model.h5 filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425{"attention_probs_dropout_prob": 0.1,"finetuning_task": null,"hidden_act": "gelu","hidden_dropout_prob": 0.1,"hidden_size": 768,"initializer_range": 0.02,"intermediate_size": 3072,"is_decoder": false,"layer_norm_eps": 1e-12,"max_position_embeddings": 512,"max_2d_position_embeddings": 1024,"model_type": "layoutlm","num_attention_heads": 12,"num_hidden_layers": 12,"num_labels": 2,"output_attentions": false,"output_hidden_states": false,"output_past": true,"pruned_heads": {},"torchscript": false,"type_vocab_size": 2,"use_bfloat16": false,"vocab_size": 30522}12345678910111213141516171819202122{"_name_or_path": "microsoft/layoutlm-base-uncased","attention_probs_dropout_prob": 0.1,"hidden_act": "gelu","hidden_dropout_prob": 0.1,"hidden_size": 768,"initializer_range": 0.02,"intermediate_size": 3072,"layer_norm_eps": 1e-12,"max_2d_position_embeddings": 1024,"max_position_embeddings": 512,"model_type": "layoutlm","num_attention_heads": 12,"num_hidden_layers": 12,"output_past": true,"pad_token_id": 0,"position_embedding_type": "absolute","transformers_version": "4.4.0.dev0","type_vocab_size": 2,"use_cache": true,"vocab_size": 30522}
123version https://git-lfs.github.com/spec/v1oid sha256:e54f47c023b343229b82721fe095e4a2ef40a36aa03b3a48270a332086a7e754size 450781856.gitattributes+1
config.json+6-9
tf_model.h5Added+3