Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to train ELMO after loading all training files. #219

Open
Dragon615 opened this issue Oct 22, 2019 · 2 comments
Open

Unable to train ELMO after loading all training files. #219

Dragon615 opened this issue Oct 22, 2019 · 2 comments

Comments

@Dragon615
Copy link

Dragon615 commented Oct 22, 2019

Hi I'm trying to train ELMO using my corpus.
The training script stop after loading loading all training data.
the training script stopped after getting the below message

WARNING : Error encountered when serializing lstm_output_embeddings.
Type is unsupported, or the types of the items don't match field type in CollectionDef.
'list' object has no attribute 'name'

I have divided my training corpus into 10 files each contains 3890 sentences.
I'm using 3 gpus.

The command I'm using is the following:

$python bin/train_elmo.py --train_prefix='/path to data file/*' --vocab_file '/path to vocab file' --save_dir '/path to check point/'

Can you please help

Thanks in advance!

@lvyufeng
Copy link

maybe you should use tf1.2 instead of newer version

@pzhang84
Copy link

pzhang84 commented Dec 4, 2021

@Dragon615 Did you figure it out? I think this warning is okay, you should run dump_weights for serializing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants