Instructions to use microsoft/markuplm-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/markuplm-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, MarkupLMForPretraining processor = AutoProcessor.from_pretrained("microsoft/markuplm-base") model = MarkupLMForPretraining.from_pretrained("microsoft/markuplm-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from microsoft/markuplm-base: direct link, hf CLI and curl.
- Browser
- Download file 100 Bytes
-
https://huggingface.co/microsoft/markuplm-base/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://microsoft/markuplm-base/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/microsoft/markuplm-base/resolve/main/preprocessor_config.json
100 Bytes
| { | |
| "feature_extractor_type": "MarkupLMFeatureExtractor", | |
| "processor_class": "MarkupLMProcessor" | |
| } |