Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In #958
https://github.com/EleutherAI/gpt-neox/pull/979/files#diff-e2b248f8c422a601bcb0b7d93f96c1dff070f2694737e2b69f1def64ab9c1844L276
When
data = None
,_keys = ["text", "label"]
This led to access errors:
https://github.com/EleutherAI/gpt-neox/pull/979/files#diff-e2b248f8c422a601bcb0b7d93f96c1dff070f2694737e2b69f1def64ab9c1844R280-R287
where
data_b
does not have any values in the"label"
key.Instead,
https://github.com/EleutherAI/gpt-neox/pull/979/files#diff-e2b248f8c422a601bcb0b7d93f96c1dff070f2694737e2b69f1def64ab9c1844R306
was placed to only access the
"label"
key ifneox_args.label_data_paths
is set from the config file, which is the config determining if a labeled dataset is used.