【求助帖】 点击停止按钮,生成并没有结束 #264
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HswOAuth/llm_course#264
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
在上周三的Chinese LLaMA Alpaca系列模型OpenAI API调用实现课程中,GPU释放问题部分,我原封不动的粘贴了老师的代码,并且在try代码中,打印了chunk_str,当我在NextChat中点击停止的时候,并没有触发except asyncio.CancelledError as e,然后停止,而是一直打印chunk_str直到最后一个字输出,NextChat点击暂停触发的是什么事件呢?这个except asyncio.CancelledError as e应该改成什么呢

可以将整个代码文件附上来么?便于排查
好的,下面是代码