chore(format): run black on dev (#974)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-11-26 15:49:20 +08:00
committed by GitHub
parent a2b36dbf0c
commit 46204ca04f
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -231,9 +231,7 @@ class GPT(nn.Module):
and cache_length + input_ids.shape[1] > max_cache_length
):
start_pos = attention_mask.shape[1] - max_cache_length
attention_mask = attention_mask.narrow(
1, start_pos, max_cache_length
)
attention_mask = attention_mask.narrow(1, start_pos, max_cache_length)
if attention_mask is not None and position_ids is None:
# create position_ids on the fly for batch generation
+1 -1
View File
@@ -279,7 +279,7 @@ def main():
server_port=args.server_port,
root_path=args.root_path,
inbrowser=True,
footer_links=['api', 'gradio', 'settings'],
footer_links=["api", "gradio", "settings"],
)