Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
f02aea27
Unverified
Commit
f02aea27
authored
Mar 15, 2024
by
Quentin Lhoest
Committed by
GitHub
Mar 15, 2024
Browse files
Rename `glue` to `nyu-mll/glue` (#29679)
* Update run_glue.py * Update run_glue.py * Update run_glue_no_trainer.py
parent
03847ef4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
examples/pytorch/text-classification/run_glue.py
examples/pytorch/text-classification/run_glue.py
+1
-1
examples/pytorch/text-classification/run_glue_no_trainer.py
examples/pytorch/text-classification/run_glue_no_trainer.py
+1
-1
examples/tensorflow/text-classification/run_glue.py
examples/tensorflow/text-classification/run_glue.py
+1
-1
No files found.
examples/pytorch/text-classification/run_glue.py
View file @
f02aea27
...
@@ -304,7 +304,7 @@ def main():
...
@@ -304,7 +304,7 @@ def main():
if
data_args
.
task_name
is
not
None
:
if
data_args
.
task_name
is
not
None
:
# Downloading and loading a dataset from the hub.
# Downloading and loading a dataset from the hub.
raw_datasets
=
load_dataset
(
raw_datasets
=
load_dataset
(
"glue"
,
"
nyu-mll/
glue"
,
data_args
.
task_name
,
data_args
.
task_name
,
cache_dir
=
model_args
.
cache_dir
,
cache_dir
=
model_args
.
cache_dir
,
token
=
model_args
.
token
,
token
=
model_args
.
token
,
...
...
examples/pytorch/text-classification/run_glue_no_trainer.py
View file @
f02aea27
...
@@ -281,7 +281,7 @@ def main():
...
@@ -281,7 +281,7 @@ def main():
# download the dataset.
# download the dataset.
if
args
.
task_name
is
not
None
:
if
args
.
task_name
is
not
None
:
# Downloading and loading a dataset from the hub.
# Downloading and loading a dataset from the hub.
raw_datasets
=
load_dataset
(
"glue"
,
args
.
task_name
)
raw_datasets
=
load_dataset
(
"
nyu-mll/
glue"
,
args
.
task_name
)
else
:
else
:
# Loading the dataset from local csv or json file.
# Loading the dataset from local csv or json file.
data_files
=
{}
data_files
=
{}
...
...
examples/tensorflow/text-classification/run_glue.py
View file @
f02aea27
...
@@ -265,7 +265,7 @@ def main():
...
@@ -265,7 +265,7 @@ def main():
# Downloading and loading a dataset from the hub. In distributed training, the load_dataset function guarantee
# Downloading and loading a dataset from the hub. In distributed training, the load_dataset function guarantee
# that only one local process can concurrently download the dataset.
# that only one local process can concurrently download the dataset.
datasets
=
load_dataset
(
datasets
=
load_dataset
(
"glue"
,
"
nyu-mll/
glue"
,
data_args
.
task_name
,
data_args
.
task_name
,
cache_dir
=
model_args
.
cache_dir
,
cache_dir
=
model_args
.
cache_dir
,
token
=
model_args
.
token
,
token
=
model_args
.
token
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment