Skip to content

Commit d0bef0b

Browse files
committed
t
1 parent 7a7ca45 commit d0bef0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/qualcomm/oss_scripts/llama/decoder_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ def __init__(
114114
],
115115
runtime_tokenizer_path,
116116
):
117+
logging.info("init start~~~")
117118
self.args = args
118119
self.pte_path = pte_path
119120
self.enable_x86_64 = args.enable_x86_64
@@ -189,13 +190,16 @@ def __init__(
189190
output_data_folder = f"{self.args.artifact}/outputs"
190191
make_output_dir(output_data_folder)
191192

193+
192194
if not self.enable_x86_64:
193195
self.adb.push(inputs=[], files=[self.runtime_tokenizer_path])
194196
# n seq len = n-1 cache len, so we len(inps) = n-1 during _model_call
195197
# pyre-ignore
196198
super().__init__(None, tokenizer, self.max_seq_length - 1)
199+
logging.info("init end~~~")
197200

198201
def _model_call(self, inps):
202+
logging.info(f"Start 1 iteration~~~~~~~~~~~~~~")
199203

200204
input_file_name = f"{self.args.artifact}/input_tokens.raw"
201205
inps = inps.to(torch.uint64).numpy()

0 commit comments

Comments
 (0)