Closed IT-five closed 9 months ago
你上个issue #453 中,我回答的模型支持长度
其实是包含NTK扩展后的长度,与max_pos_embedding
不同。
截断是按照max_length
截断,不是按照max_pos_embedding
截断,可以再看看源码或LongBench对这部分的解释。
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your consideration.
Closing the issue, since no updates observed. Feel free to re-open if you need any further assistance.
提交前必须检查以下项目
问题类型
模型推理
基础模型
Others
操作系统
Linux
详细描述问题
请问源码中Pred.py中在大于设定的模型支持的max_length后会对输入进行截断,那么怎么会调用adaptive_ntk_forward()中的if条件语句,他不是要满足seq_len > self.max_seq_len_cached,这个部分没有看懂,请大佬解释一下
依赖情况(代码类问题务必提供)
运行日志或截图