Skip to content

Commit 0222c48

Browse files
12010486astachowiczhabana
authored andcommitted
Fix for granite accuracy (#2187)
1 parent 153f748 commit 0222c48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/text-generation/model_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def eot_token_id(self) -> int:
141141
@property
142142
def max_length(self) -> int:
143143
# Legacy
144-
return self._max_length if self._max_length else self.buckets[-2]
144+
return self._max_length if self._max_length else self.buckets[-1]
145145

146146
@property
147147
def device(self):

examples/text-generation/run_lm_eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def setup_lm_eval_parser():
6262
type=int,
6363
nargs="+",
6464
help="Input length buckets to use with static_shapes",
65-
default=[16, 32, 64, 128, 189, 284, 384, 985],
65+
default=[16, 32, 64, 128, 189, 284, 384],
6666
)
6767

6868
parser.add_argument(

0 commit comments

Comments
 (0)