Open vraebfdsb opened 11 months ago
This issue seems to be with the line self.tokenizer.pad_token = 0
in model.py
.
Same problem. Have you solved this yet?
I have the same problem too.
To solve this problem, I replaced self.tokenizer.pad_token = 0
with self.tokenizer.pad_token = '0'
and it generated Results file.
However, I'm wondering if this is the right result and if there is any impact on the algorithm.
I have the same problem too. To solve this problem, I replaced
self.tokenizer.pad_token = 0
withself.tokenizer.pad_token = '0'
and it generated Results file. However, I'm wondering if this is the right result and if there is any impact on the algorithm.
I think the authors should set the pad_token_id to 0 rather than pad_token, so we can fix it by setting self.tokenizer.pad_token_id = 0
When I try to run
bash scripts/demo_run_tf.sh
, I encounter "Cannot set a non-string value as the PAD token". How can I resolve this?Complete Output: