AventIQ-AI / LayoutLMv1_Information_Extraction

huggingface.co
Total runs: 9
24-hour runs: 0
7-day runs: 3
30-day runs: 2
Model's Last Updated: May 26 2025

Introduction of LayoutLMv1_Information_Extraction

Model Details of LayoutLMv1_Information_Extraction

LayoutLMv1 Quantized Model for Form Understanding (FUNSD)

This repository hosts a quantized version of the LayoutLMv1 model, fine-tuned for document information extraction on the FUNSD dataset. The model is optimized for extracting entities such as questions, answers, and headers from scanned forms while maintaining efficient performance for deployment in production environments.

Model Details
  • Model Architecture: LayoutLMv1 (Hugging Face Transformers)
  • Task: Token Classification (Form Understanding / Information Extraction)
  • Dataset: nielsr/funsd
  • Quantization: Dynamic Quantization (INT8 for Linear layers)
  • Fine-tuning Framework: PyTorch & Hugging Face Transformers

Usage
Installation
pip install transformers datasets torch torchvision
Loading the Quantized Model
from transformers import LayoutLMForTokenClassification, LayoutLMTokenizer
import torch

# Load quantized model
model = LayoutLMForTokenClassification.from_pretrained("saved_model_quantized/")
model.load_state_dict(torch.load("saved_model_quantized/pytorch_model.bin"))
model.eval()

# Load tokenizer
tokenizer = LayoutLMTokenizer.from_pretrained("microsoft/layoutlm-base-uncased")

Performance Metrics
Epoch Training Loss Validation Loss
0 73.67 22.15
1 37.13 15.65
2 26.30 16.39
3 17.68 14.45
4 11.12 17.16

📊 The model steadily improves until Epoch 3, indicating that the best checkpoint may be around this point.


Fine-Tuning Details
Dataset
  • Name: nielsr/funsd
  • Description: A benchmark dataset for form understanding tasks with manually labeled fields like questions, answers, headers, etc.
Training Configuration
  • Epochs: 5
  • Batch Size: As per available memory
  • Learning Rate: 4e-5
  • Optimizer: AdamW
  • Loss Function: CrossEntropyLoss (token classification)

Quantization

Dynamic post-training quantization was applied using PyTorch:

import torch
quantized_model = torch.quantization.quantize_dynamic(
    model_fp32,
    {torch.nn.Linear},
    dtype=torch.qint8
)
torch.save(quantized_model.state_dict(), "saved_model_quantized/pytorch_model.bin")

Repository Structure
.
├── saved_model/                 # Original fine-tuned LayoutLMv1
├── saved_model_quantized/      # INT8 quantized model files
│   ├── config.json
│   ├── pytorch_model.bin
├── README.md                   # Project documentation

Limitations
  • Trained only on the FUNSD dataset; may not generalize to other document formats.
  • Quantized version may have slight degradation in performance compared to the full-precision model.
  • Requires OCR and bounding boxes as input for proper operation.

Contributing

Contributions are welcome! If you have suggestions, improvements, or find bugs, feel free to open an issue or submit a pull request.

Runs of AventIQ-AI LayoutLMv1_Information_Extraction on huggingface.co

9
Total runs
0
24-hour runs
2
3-day runs
3
7-day runs
2
30-day runs

More Information About LayoutLMv1_Information_Extraction huggingface.co Model

LayoutLMv1_Information_Extraction huggingface.co

LayoutLMv1_Information_Extraction huggingface.co is an AI model on huggingface.co that provides LayoutLMv1_Information_Extraction's model effect (), which can be used instantly with this AventIQ-AI LayoutLMv1_Information_Extraction model. huggingface.co supports a free trial of the LayoutLMv1_Information_Extraction model, and also provides paid use of the LayoutLMv1_Information_Extraction. Support call LayoutLMv1_Information_Extraction model through api, including Node.js, Python, http.

LayoutLMv1_Information_Extraction huggingface.co Url

https://huggingface.co/AventIQ-AI/LayoutLMv1_Information_Extraction

AventIQ-AI LayoutLMv1_Information_Extraction online free

LayoutLMv1_Information_Extraction huggingface.co is an online trial and call api platform, which integrates LayoutLMv1_Information_Extraction's modeling effects, including api services, and provides a free online trial of LayoutLMv1_Information_Extraction, you can try LayoutLMv1_Information_Extraction online for free by clicking the link below.

AventIQ-AI LayoutLMv1_Information_Extraction online free url in huggingface.co:

https://huggingface.co/AventIQ-AI/LayoutLMv1_Information_Extraction

LayoutLMv1_Information_Extraction install

LayoutLMv1_Information_Extraction is an open source model from GitHub that offers a free installation service, and any user can find LayoutLMv1_Information_Extraction on GitHub to install. At the same time, huggingface.co provides the effect of LayoutLMv1_Information_Extraction install, users can directly use LayoutLMv1_Information_Extraction installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

LayoutLMv1_Information_Extraction install url in huggingface.co:

https://huggingface.co/AventIQ-AI/LayoutLMv1_Information_Extraction

Url of LayoutLMv1_Information_Extraction

LayoutLMv1_Information_Extraction huggingface.co Url

Provider of LayoutLMv1_Information_Extraction huggingface.co

AventIQ-AI
ORGANIZATIONS

Other API from AventIQ-AI