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