transfer-learning-conv-ai
transfer-learning-conv-ai copied to clipboard
TypeError: can only concatenate list (not "tuple") to list
Hi I am using python 3.6, and I run python train.py --model_checkpoint pretrained_transformers/gpt --dataset_path datasets/personachat_self_original.json thanks
INFO:/dev/ccn/generation/transfer-learning-conv-ai/utils.py:Tokenize and encode the dataset
Traceback (most recent call last):
File "train.py", line 271, in
Where did you get pretrained_transformers/gpt?
model_checkpoint is supposed to be a valid argument to OpenAIGPT.from_pretrained
- I dont think this has to be with model,
- I got it from the link in the huggingface
On Mon, Oct 21, 2019 at 8:19 PM Sam Shleifer [email protected] wrote:
Where did you get pretrained_transformers/gpt?
model_checkpoint is supposed to be a valid argument to OpenAIGPT.from_pretrained
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/huggingface/transfer-learning-conv-ai/issues/42?email_source=notifications&email_token=AM3GZM3ZG7D5FHWCYKASHSTQPXXBZA5CNFSM4JC7YZM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB3JG6I#issuecomment-544641913, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM3GZM2HBL3UUYI6IXZEMQLQPXXBZANCNFSM4JC7YZMQ .
if you're giving any special tokens in the tuple format then this issue will arise, give it in list format. Beside this issue is fixed in master Special Token issue