Views
No views yet
lilt-only-base contains exclusively the layout encoder weights, pretrained on document layout understanding (IIT-CDIP dataset).gen_weight_roberta_like.py from the official repository to combine with your text encoder of choice:1python gen_weight_roberta_like.py \
2 --lilt lilt-only-base/pytorch_model.bin \
3 --text your-roberta-model/pytorch_model.bin \
4 --config your-roberta-model/config.json \
5 --out lilt-your-language-baseroberta-base, camembert-base, microsoft/infoxlm-base, etc.)| File | Description |
|---|---|
model.safetensors | Layout encoder weights (safetensors format) |
pytorch_model.bin | Layout encoder weights (PyTorch format) |
config.json | Model configuration (model_type: liltrobertalike) |
model_type = liltrobertalike, a custom type defined in the original LiLT repository. It cannot be loaded directly with AutoModel from HuggingFace transformers without first combining it with a text encoder via the procedure above.Note: This is not an official HuggingFace release from the original authors.