Skip to content

Commit 44f8e41

Browse files
committed
rename to fixed rate profile generator
1 parent bfcc329 commit 44f8e41

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/guidellm/executor/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Profile,
44
ProfileGenerationModes,
55
ProfileGenerator,
6-
MultiProfileGenerator,
6+
FixedRateProfileGenerator,
77
SweepProfileGenerator,
88
)
99

@@ -12,6 +12,6 @@
1212
"ProfileGenerationModes",
1313
"Profile",
1414
"ProfileGenerator",
15-
"MultiProfileGenerator",
15+
"FixedRateProfileGenerator",
1616
"SweepProfileGenerator",
1717
]

src/guidellm/executor/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(
1414
self,
1515
request_generator: RequestGenerator,
1616
backend: Backend,
17-
profile_mode: Union[str, ProfileGenerationModes] = "multi",
17+
profile_mode: Union[str, ProfileGenerationModes] = "fixed_rate",
1818
profile_args: Optional[Dict[str, Any]] = None,
1919
max_requests: Optional[int] = None,
2020
max_duration: Optional[float] = None,

src/guidellm/executor/profile_generator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
"ProfileGenerationModes",
1313
"Profile",
1414
"ProfileGenerator",
15-
"MultiProfileGenerator",
15+
"FixedRateProfileGenerator",
1616
"SweepProfileGenerator",
1717
]
1818

1919

2020
class ProfileGenerationModes(Enum):
21-
MULTI = "multi"
21+
FIXED = "fixed_rate"
2222
SWEEP = "sweep"
2323

2424

@@ -61,10 +61,10 @@ def next_profile(
6161
pass
6262

6363

64-
@ProfileGenerator.register_generator(ProfileGenerationModes.MULTI)
65-
class MultiProfileGenerator(ProfileGenerator):
64+
@ProfileGenerator.register_generator(ProfileGenerationModes.FIXED)
65+
class FixedRateProfileGenerator(ProfileGenerator):
6666
def __init__(self, rate: List[float], rate_type: str, **kwargs):
67-
super().__init__(ProfileGenerationModes.MULTI)
67+
super().__init__(ProfileGenerationModes.FIXED)
6868
self._rates = rate
6969
self._rate_index = 0
7070
self._rate_type = rate_type

src/guidellm/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def main(
107107
raise ValueError(f"Unknown data type: {data_type}")
108108

109109
# Create executor
110-
profile_mode = rate_type if rate_type == "sweep" else "multi"
110+
profile_mode = rate_type if rate_type == "sweep" else "fixed_rate"
111111
executor = Executor(
112112
request_generator=request_generator,
113113
backend=backend,

0 commit comments

Comments
 (0)