Unverified Commit 67e2bf8b authored by Leo Gao's avatar Leo Gao Committed by GitHub
Browse files

Merge pull request #234 from EleutherAI/race_fix

Pin datasets to 1.15.1 to fix RACE
parents 37bfb4f5 784a5c54
...@@ -22,6 +22,8 @@ class RACE(HFTask): ...@@ -22,6 +22,8 @@ class RACE(HFTask):
cache = {} cache = {}
letter_to_num = {'A': 0, 'B': 1, 'C': 2, 'D': 3} letter_to_num = {'A': 0, 'B': 1, 'C': 2, 'D': 3}
assert datasets.__version__ == "1.15.1", "RACE requires datasets==1.15.1!"
def has_training_docs(self): def has_training_docs(self):
return True return True
......
...@@ -22,7 +22,7 @@ setuptools.setup( ...@@ -22,7 +22,7 @@ setuptools.setup(
install_requires=[ install_requires=[
"black==20.8b1", "black==20.8b1",
"best_download>=0.0.6", "best_download>=0.0.6",
"datasets>=1.2.1", "datasets==1.15.1",
"click>=7.1", "click>=7.1",
"scikit-learn>=0.24.1", "scikit-learn>=0.24.1",
"torch>=1.7", "torch>=1.7",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment