You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Current directory: /home/src/run
Results will be dumped to: /home/src/run/Results
[0 / 2] tf.nn.conv2d
output.returncode: 0
stdout> Current directory: /home/src/run
Results will be dumped to: /home/src/run/Results
api: tf.nn.conv2d
Initializing a SpanLM based model: facebook/incoder-1B ...
Max length: 2048
Cannot set a non-string value as the PAD token
The text was updated successfully, but these errors were encountered:
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 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 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:
The text was updated successfully, but these errors were encountered: