update
Browse files- .gitignore +2 -2
- adapter_fusion.py +0 -1
- scirepeval.py +2 -0
.gitignore
CHANGED
@@ -151,10 +151,10 @@ dmypy.json
|
|
151 |
|
152 |
# Cython debug symbols
|
153 |
cython_debug/
|
154 |
-
|
155 |
# PyCharm
|
156 |
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
157 |
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
158 |
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
159 |
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
160 |
-
|
|
|
151 |
|
152 |
# Cython debug symbols
|
153 |
cython_debug/
|
154 |
+
huggingface_hub/
|
155 |
# PyCharm
|
156 |
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
157 |
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
158 |
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
159 |
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
160 |
+
.idea/
|
adapter_fusion.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
from typing import List, Optional, Union, Dict
|
2 |
-
from transformers.adapters import PfeifferConfig
|
3 |
from transformers.adapters import AutoAdapterModel
|
4 |
from transformers.adapters.composition import Fuse
|
5 |
from abc import ABC, abstractmethod
|
|
|
1 |
from typing import List, Optional, Union, Dict
|
|
|
2 |
from transformers.adapters import AutoAdapterModel
|
3 |
from transformers.adapters.composition import Fuse
|
4 |
from abc import ABC, abstractmethod
|
scirepeval.py
CHANGED
@@ -121,6 +121,8 @@ class SciRepEval:
|
|
121 |
|
122 |
|
123 |
if __name__ == "__main__":
|
|
|
|
|
124 |
parser = argparse.ArgumentParser()
|
125 |
parser.add_argument('--tasks-config', help='path to the task config file', default="scirepeval_tasks.jsonl")
|
126 |
parser.add_argument('--mtype', help='Model variant to be used (default, pals, adapters, fusion)', default="default")
|
|
|
121 |
|
122 |
|
123 |
if __name__ == "__main__":
|
124 |
+
import datasets
|
125 |
+
datasets.load_dataset('howey/super_scirep', "cite_count")
|
126 |
parser = argparse.ArgumentParser()
|
127 |
parser.add_argument('--tasks-config', help='path to the task config file', default="scirepeval_tasks.jsonl")
|
128 |
parser.add_argument('--mtype', help='Model variant to be used (default, pals, adapters, fusion)', default="default")
|