File tree 1 file changed +8
-4
lines changed 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change
1
+ from abc import ABC , abstractmethod
2
+
1
3
from modelgauge .secret_values import InjectSecret
2
4
from modelgauge .sut import SUT
3
5
@@ -27,14 +29,15 @@ class DynamicSUT(SUT):
27
29
pass
28
30
29
31
30
- class DynamicSUTMaker :
32
+ class DynamicSUTMaker ( ABC ) :
31
33
32
34
@staticmethod
35
+ @abstractmethod
33
36
def get_secrets () -> InjectSecret :
34
- raise NotImplementedError ( "SUTMaker.get_secrets must be implemented by child classes." )
37
+ pass
35
38
36
39
@staticmethod
37
- def parse_sut_name (name : str ):
40
+ def parse_sut_name (name : str ) -> tuple [ str , str , str , str ] :
38
41
"""A dynamic SUT name looks like hf/nebius/google/gemma-3-27b-it
39
42
hf = proxy (passes requests through to...)
40
43
provider = nebius (runs model by...)
@@ -71,5 +74,6 @@ def extract_model_name(name: str) -> str:
71
74
return model
72
75
73
76
@staticmethod
77
+ @abstractmethod
74
78
def find (name : str ):
75
- raise NotImplementedError ( "DynamicSUTMaker.find must be implemented by child classes." )
79
+ pass
You can’t perform that action at this time.
0 commit comments