Skip to content

Commit

Permalink
calibration_seq_length
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryzh168 committed Nov 20, 2024
1 parent be822ae commit 0019456
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions torchao/_models/llama/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ def main(
from torchao._models._eval import InputRecorder
from torchao._models.llama.model import prepare_inputs_for_model

calibration_seq_length = 256
calibration_limit = 1
inputs = InputRecorder(
tokenizer,
calibration_seq_length,
Expand Down Expand Up @@ -354,6 +356,8 @@ def main(
from torchao._models._eval import InputRecorder
from torchao._models.llama.model import prepare_inputs_for_model

calibration_seq_length = 256
calibration_limit = 1
inputs = InputRecorder(
tokenizer,
calibration_seq_length,
Expand Down

0 comments on commit 0019456

Please sign in to comment.