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

BUG: Buffer expansion causes position to exceed bounds, consider strategies. #44

Open
shoutsid opened this issue Oct 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@shoutsid
Copy link
Owner

shoutsid commented Oct 21, 2023

BUG: Buffer expansion causes position to exceed bounds, consider strategies

This issue can appear in transformer blocks

    /app/models/llama/llama.py", line 260, in <module>
      probs = llama.model(
    /app/models/llama/transformer.py", line 83, in __call__
      pos = variable("pos", 1, 1024).bind(start_pos)
    /ext/tinygrad/tinygrad/shape/symbolic.py", line 155, in bind
      assert self.val is none and self.min<=val<=self.max, f"cannot bind {val} to {self}"

# BUG: Buffer expansion causes postion to exceed bounds, consider strategies.
#
# /app/models/llama/llama.py", line 260, in <module>
# probs = llama.model(
# /app/models/llama/transformer.py", line 83, in __call__
# pos = Variable("pos", 1, 1024).bind(start_pos)
# /ext/tinygrad/tinygrad/shape/symbolic.py", line 155, in bind
# assert self.val is None and self.min<=val<=self.max, f"cannot bind {val} to {self}"

@shoutsid shoutsid added the bug Something isn't working label Oct 21, 2023
@shoutsid shoutsid self-assigned this Oct 21, 2023
@shoutsid shoutsid changed the title BUG: Buffer expansion causes postion to exceed bounds, consider strategies. BUG: Buffer expansion causes position to exceed bounds, consider strategies. Oct 22, 2023
@shoutsid shoutsid assigned shoutsid and unassigned shoutsid Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant