Skip to content

Commit a7a883b

Browse files
author
root
committed
case format
1 parent dacec20 commit a7a883b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/engine/test_decode_token.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
'''
1+
"""
22
Author:
33
Date: 2026-03-31 10:40:18
4-
LastEditors:
4+
LastEditors:
55
LastEditTime: 2026-04-01 11:00:47
66
FilePath: /fastdeploy/test_decode_token.py
7-
'''
7+
"""
8+
89
"""
910
# Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
1011
#
@@ -80,7 +81,7 @@ def mock_ids2tokens(token_ids, task_id):
8081
# Only advance offsets when there are actual tokens
8182
cum_len = len(decode_status[task_id][2])
8283
decode_status[task_id][0] = max(0, cum_len - 1) # prefix_offset
83-
decode_status[task_id][1] = cum_len # read_offset
84+
decode_status[task_id][1] = cum_len # read_offset
8485
decode_status[task_id][3] += delta_text
8586

8687
return delta_text, previous_token_ids, previous_texts

0 commit comments

Comments
 (0)