keepsloading commited on
Commit
4a92d99
·
verified ·
1 Parent(s): 32eaeae

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. .gitattributes +0 -3
  2. recipe/run_reproduction.sh +11 -0
.gitattributes CHANGED
@@ -2,6 +2,3 @@
2
  *.arrow filter=lfs diff=lfs merge=lfs -text
3
  *.jsonl filter=lfs diff=lfs merge=lfs -text
4
  tokenizer.json filter=lfs diff=lfs merge=lfs -text
5
- outputs/l2a_style/stage2/checkpoint-25/optimizer.pt filter=lfs diff=lfs merge=lfs -text
6
- outputs/l2a_style/stage2/checkpoint-50/optimizer.pt filter=lfs diff=lfs merge=lfs -text
7
- outputs/l2a_style/stage2/checkpoint-75/optimizer.pt filter=lfs diff=lfs merge=lfs -text
 
2
  *.arrow filter=lfs diff=lfs merge=lfs -text
3
  *.jsonl filter=lfs diff=lfs merge=lfs -text
4
  tokenizer.json filter=lfs diff=lfs merge=lfs -text
 
 
 
recipe/run_reproduction.sh CHANGED
@@ -24,6 +24,17 @@ if 'dtype=get_dtype(dtype),' in content:
24
  print('lm_eval patched successfully!')
25
  else:
26
  print('lm_eval already patched or target not found.')
 
 
 
 
 
 
 
 
 
 
 
27
  "
28
 
29
  echo "Downloading NLTK requirements..."
 
24
  print('lm_eval patched successfully!')
25
  else:
26
  print('lm_eval already patched or target not found.')
27
+
28
+ qa_py = Path(lm_eval.__file__).parent / 'tasks' / 'ruler' / 'qa_utils.py'
29
+ content = qa_py.read_text(encoding='utf-8')
30
+ old_url = 'http://curtis.ml.cmu.edu/datasets/hotpot/hotpot_dev_distractor_v1.json'
31
+ new_url = 'https://huggingface.co/datasets/namlh2004/hotpotqa/resolve/main/hotpot_dev_distractor_v1.json'
32
+ if old_url in content:
33
+ patched = content.replace(old_url, new_url)
34
+ qa_py.write_text(patched, encoding='utf-8')
35
+ print('qa_utils patched successfully!')
36
+ else:
37
+ print('qa_utils already patched or target not found.')
38
  "
39
 
40
  echo "Downloading NLTK requirements..."