Skip to content

Commit

Permalink
Fix batch size issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle1668 committed Aug 18, 2023
1 parent 83f2c2a commit 96053f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@ def get_batch_size(model_name: str) -> int:
"6.9b": 64,
"12b": 64,
}
model_size = ".".join(model_name.split(".")[1:])
return size_batch_map[model_size]
return size_batch_map[model_name]


def get_dataset(dataset_name: str, split_name: str, sample: int = None) -> pd.DataFrame:
Expand Down

0 comments on commit 96053f7

Please sign in to comment.