Skip to content

Commit

Permalink
Update sizer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Delaunay authored Jun 7, 2024
1 parent 20b1085 commit 702c1c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion milabench/sizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ def auto_size(self, benchmark, capacity):
return None

config = self.benchscaling(benchmark)

model = config.get("model", None)

if model is None:
print(f"Missing batch-size model for {benchmark}")
return 1

data = list(sorted(config["model"].items(), key=lambda x: x[0]))
mem = [to_octet(v[1]) for v in data]
size = [float(v[0]) for v in data]
Expand Down

0 comments on commit 702c1c6

Please sign in to comment.