Skip to content

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

@shoutsid

Description

@shoutsid

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}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions