GithubHelp home page GithubHelp logo

chocowu / lasuie Goto Github PK

View Code? Open in Web Editor NEW
45.0 5.0 5.0 7.34 MB

Universal Information Extraction, codes for the NeurIPS-2022 paper: Unifying Information Extraction with Latent Adaptive Structure-aware Generative Language Model.

Home Page: http://haofei.vip/LasUIE-page/

License: Apache License 2.0

Python 100.00%
information-extraction language-modeling nlp syntax-tree universal-information-extraction

lasuie's Issues

RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn

When I ran the ner task in multiple GPUs, the program crashed and logging the error messages as the title like. I try to fix the bug and I just find the call of grad_fn function in lines 567 in the run_struct_post_train.py. But when I add the code state.params.requires_grad_(True) orloss.requires_grad_(True) , the program didn't work as well.
Hope you can give me some guidances,thanks!
The error messages are as follows:
image

语料库问题

在构建语料库的时候我根据论文中给出的链接想要下载wikipedia,但是进入了如下页面中,在点击下载后转到了github中,下载完文件中只有一个txt文件,在运行的时候会提示我FileNotFoundError: Unable to find '/home/machenghao/LasUIE-master/data/post-training/wikipedia-en/dev.txt',应该是语料库中的东西不全,请问这个是我下载的问题吗,我该怎么获得完整的语料库。希望能得到您的解答,万分感谢!

image

hello, I have met this error.Does i lack of anything about the pretrained model?

Traceback (most recent call last):
File "/home/LasUIE/run_finetune.py", line 289, in
model_wrapper = ModelWrapper(**config)
File "/home/LasUIE/run_finetune.py", line 46, in init
self.model = get_model(self.model_type, self.lm_location)
File "/home/LasUIE/run_finetune.py", line 35, in get_model
return model_dict[model_type].from_pretrained(lm_location)
File "/home/anaconda3/envs/lasuie/lib/python3.8/site-packages/transformers/modeling_utils.py", line 2795, in from_pretrained
) = cls._load_pretrained_model(
File "/home/anaconda3/envs/lasuie/lib/python3.8/site-packages/transformers/modeling_utils.py", line 3008, in _load_pretrained_model
raise ValueError(
ValueError: The state dictionary of the model you are trying to load is corrupted. Are you sure it was properly saved?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.