facebookresearch / fairseq

Facebook AI Research Sequence-to-Sequence Toolkit written in Python.
MIT License
30.22k stars 6.38k forks source link

Empty 'args' value in Neural Language Modeling "Training a transformer language model with the CLI tools" example model #5467

Open lancioni opened 6 months ago

lancioni commented 6 months ago

🐛 Bug

The model trained (in Colab) according to instructions in Neural Language Modeling "Training a transformer language model with the CLI tools" example model has an empty 'args' value resulting .pt model. This contrasts with pretrained models downloable in the same page and creates problems with conversion by CTranslate2, since the converter expects keys in 'args'.

To Reproduce

Follow closely instructions in https://github.com/facebookresearch/fairseq/blob/main/examples/language_model/README.md

Expected behavior

The resulting model should have filled 'args' fields.

Environment

SarthakNikhal commented 6 months ago

@lancioni This issue is only with the CLI version right? Does the Python code version work fine?

lancioni commented 5 months ago

I didn't try actually. But I understand the CLI version is just calling the Python code, isn't it?