Closed tomas-gajarsky closed 3 months ago
Your transformers version might be too old. Just run pip install --upgrade transformers
and it should work.
LiLT wasn't added to transformers until at least 4.24 I think
Also, the correct model name from huggingface is SCUT-DLVCLab/lilt-infoxlm-base
-> https://huggingface.co/SCUT-DLVCLab/lilt-infoxlm-base
Thank you @logan-markewich, I was able to load the pre-trained model after upgrading transformers
to 4.25.1
and set the model_name_or_path
argument to SCUT-DLVCLab/lilt-infoxlm-base
. The requirements.txt
file and the README should be updated accordingly.
@tomas-gajarsky glad it worked!
In the future, I would probably recommend training using huggingface. It's a bit more work to set up, but this repo seems to be abandoned.
I am getting errors when trying to run Multi-task Semantic Entity Recognition on XFUND by following the instructions in the README. Specifically, the config initialisation on line 127 in
run_xfun_ser.py
is failing with the following error:I have also tried to download the model from the provided OneCloud link and point the
config_name
argument to theconfig.json
contained within the compressed file, however I am getting another error in that case:Did something change or am I doing something wrong?