Run this model with HF Jobs
Run Norm/ERNIE-Layout-Pytorch 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/Norm/ERNIE-Layout-Pytorch. 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/Norm/ERNIE-Layout-Pytorch 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 Norm/ERNIE-Layout-Pytorch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Norm/ERNIE-Layout-Pytorch with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Norm/ERNIE-Layout-Pytorch", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files6 unmodified lines7891011126 unmodified linesThis is an unofficial Pytorch implementation of [ERNIE-Layout](http://arxiv.org/abs/2210.06155) which is originally released through PaddleNLP.**A Quick Example**```pythonfrom networks.modeling_erine_layout import ErnieLayoutConfig, ErnieLayoutForQuestionAnswering6 unmodified lines7891011121314156 unmodified linesThis is an unofficial Pytorch implementation of [ERNIE-Layout](http://arxiv.org/abs/2210.06155) which is originally released through PaddleNLP.**Get Ready**After downloading the model, you need to set ``sentencepiece_model_file`` and ``vocab_file`` in [tokenizer_config.json](https://huggingface.co/Norm/ERNIE-Layout-Pytorch/blob/main/tokenizer_config.json) to your own directory**A Quick Example**```pythonfrom networks.modeling_erine_layout import ErnieLayoutConfig, ErnieLayoutForQuestionAnswering
README.md+3