multivers icon indicating copy to clipboard operation
multivers copied to clipboard

About train.py

Open CEclipse opened this issue 3 years ago • 3 comments

Hi,@dwadden

And i have a question,how could i get the

import lib.longformer.data as dm from lib.longformer.model import SciFactModel on train.py,i haven’t found the module named lib.longformer

and by the way did u train the model on scifact,covidfact, Healthver and fever datasets?

Looking forward your reply best regards

CEclipse avatar Jun 20 '22 08:06 CEclipse

Hi,

I'm going to post the data preprocessing code and training code soon (next few weeks). I'm very sorry for the delay, I've had a few other projects I've needed to wrap up.

As for your first question, did you do conda develop . on the project root folder?

Dave

dwadden avatar Jul 06 '22 05:07 dwadden

Hi, I didn‘t do conda develop. on the project root folder. If I do this step , could I get the
lib.longformer.data as dm from lib.longformer.model import SciFactModel lib.longformer module on train.py? Looking forward your reply

CEclipse avatar Jul 06 '22 05:07 CEclipse

I'm sorry I missed this. I'm not sure I understand your issue? If things still aren't working, could you post a minimal example with the code you're trying to run and the bug you're getting when you try to run it?

dwadden avatar Aug 15 '22 22:08 dwadden

Hi, I want to ask the same question. I followed all instructions and did "conda develop ." on the project root folder. When I run "longchecker/train.py" to finetune the scifact dataset from the checkpoint, I get an error as below. error How can I import the 'lib.longformer' module?

helena-1115 avatar Dec 19 '22 05:12 helena-1115

Hi,

I'm sorry about this, I still haven't gotten the training code cleaned up yet. I'll post here when that's changed.

Dave

dwadden avatar Jan 09 '23 21:01 dwadden

Training code is now working! See here for details. let me know if you've got more questions.

dwadden avatar Jan 27 '23 04:01 dwadden

Thank you for sharing the training code!😊

helena-1115 avatar Jan 27 '23 05:01 helena-1115

You're welcome! Sorry it took so long.

dwadden avatar Jan 28 '23 06:01 dwadden