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