Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
t0-0
commited on
Commit
·
4c9c17b
1
Parent(s):
7fd8d10
Remove unnecessary code
Browse files- src/display/utils.py +0 -7
src/display/utils.py
CHANGED
|
@@ -150,13 +150,6 @@ class NumFewShots(Enum):
|
|
| 150 |
shots_0 = 0
|
| 151 |
shots_4 = 4
|
| 152 |
|
| 153 |
-
@staticmethod
|
| 154 |
-
def from_int(shots: int) -> "NumFewShots":
|
| 155 |
-
try:
|
| 156 |
-
return NumFewShots(shots)
|
| 157 |
-
except ValueError:
|
| 158 |
-
raise ValueError(f"Unsupported number of shots: {shots}. Must be either 0 or 4")
|
| 159 |
-
|
| 160 |
|
| 161 |
class LLMJpEvalVersion(Enum):
|
| 162 |
current = ModelDetails("v1.4.1")
|
|
|
|
| 150 |
shots_0 = 0
|
| 151 |
shots_4 = 4
|
| 152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
|
| 154 |
class LLMJpEvalVersion(Enum):
|
| 155 |
current = ModelDetails("v1.4.1")
|