Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device-side assertions’ error when speculative decoding with different length of prompts. #69

Open
ZipECHO opened this issue Dec 27, 2023 · 0 comments

Comments

@ZipECHO
Copy link

ZipECHO commented Dec 27, 2023

I am running the speculative sampling task with the ‘compile’ mode of the generate.py script. The original speculative decoding version of gpt-fast decodes one prompt several times, but I want to decode different prompts. I have observed that when I decode with prompts of different lengths, I encounter an ‘enable device-side assertions’ error. The following are the error messages:

unknown:0: unknown: block: [33,0,0], thread: [0,0,0] Assertion `index out of bounds: 0 <= tmp62 < 216` failed.
unknown:0: unknown: block: [33,0,0], thread: [1,0,0] Assertion `index out of bounds: 0 <= tmp62 < 216` failed.
unknown:0: unknown: block: [33,0,0], thread: [2,0,0] Assertion `index out of bounds: 0 <= tmp62 < 216` failed.
unknown:0: unknown: block: [33,0,0], thread: [3,0,0] Assertion `index out of bounds: 0 <= tmp62 < 216` failed.
...
unknown:0: unknown: block: [59,0,0], thread: [47,0,0] Assertion `index out of bounds: 0 <= tmp62 < 216` failed.
unknown:0: unknown: block: [59,0,0], thread: [48,0,0] Assertion `index out of bounds: 0 <= tmp62 < 216` failed.
unknown:0: unknown: block: [59,0,0], thread: [49,0,0] Assertion `index out of bounds: 0 <= tmp62 < 216` failed.
unknown:0: unknown: block: [59,0,0], thread: [50,0,0] Assertion `index out of bounds: 0 <= tmp62 < 216` failed.
unknown:0: unknown: block: [59,0,0], thread: [51,0,0] Assertion `index out of bounds: 0 <= tmp62 < 216` failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant