mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #777] IndexKernel.cu Assertion -sizes[i] <= index && index < sizes[i] && "index out of bounds" failed. #564
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#564
Loading…
Add table
Add a link
Reference in a new issue
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?
Originally created by @jhu10 on GitHub (Mar 3, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/777
max-new-tokens设置了8K,输入了一个数学问题,生成了很长的回答之后异常中断了。
generate如下:
好,我现在要解决这个关于三角函数的问题。题目给出的是函数f(x) = sin(ωx - π/6),其中ω > 0,问题是在区间(0,π/2)内f(x)恰好有三个极值点,然后判断四个选项中哪个是不正确的。首先我要理解题目里的每个条件以及每个选项的内容,所以可能需要一步一步分析。此处省略N字。。。。
异常信息:
/pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [64,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [65,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [66,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [67,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [68,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [69,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [70,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [71,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [72,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [73,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [74,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [75,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [76,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [77,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [78,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [79,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [80,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [81,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [82,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [83,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [84,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [85,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed./pytorch/aten/src/ATen/native/cuda/IndexKernel.cu:94: operator(): block: [0,0,0], thread: [86,0,0] Assertion
-sizes[i] <= index && index < sizes[i] && "index out of bounds"failed.Segmentation fault@qiyuxinlin commented on GitHub (Mar 3, 2025):
请问您运行的是 local_chat 还是 webserver
@jhu10 commented on GitHub (Mar 3, 2025):
ktransformers --model_path /model/DeepSeek-R1-Q4_K_M/ --gguf_path /model/DeepSeek-R1-Q4_K_M/ --cpu_infer 24 --max_new_tokens 8192 --port 8000@qiyuxinlin commented on GitHub (Mar 3, 2025):
需要添加一个参数 --cache_lens, 长度设为最大可能的 token 数
@jhu10 commented on GitHub (Mar 3, 2025):
好的我试一下,非常感谢