How to use from the
Use from the
Transformers library
# 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")
Quick Links

No model card

Downloads last month
2
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support