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

too many values to unpack #1

Open
pannous opened this issue Jan 31, 2025 · 1 comment
Open

too many values to unpack #1

pannous opened this issue Jan 31, 2025 · 1 comment

Comments

@pannous
Copy link

pannous commented Jan 31, 2025

~/ai/ py nanoblt.py
INFO:root:Model parameters: 15.41M
Traceback (most recent call last):
  File "/Users/me/dev/ai/nanoblt.py", line 675, in <module>
    train(model, config, data)
    ~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/Users/me/dev/ai/nanoblt.py", line 634, in train
    logits, loss = model(x, y)
                   ~~~~~^^^^^^
  File "/opt/homebrew/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1740, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1751, in _call_impl
    return forward_call(*args, **kwargs)
  File "/Users/me/dev/ai/nanoblt.py", line 477, in forward
    dec_out = self.local_decoder(byte_emb, global_embs)
  File "/opt/homebrew/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1740, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.13/site-packages/torch/nn/modules/module.py", line 1751, in _call_impl
    return forward_call(*args, **kwargs)
  File "/Users/me/dev/ai/nanoblt.py", line 434, in forward
    B, T = tgt_tokens.shape
    ^^^^
ValueError: too many values to unpack (expected 2)
        print(tgt_tokens.shape)
        # torch.Size([4, 1024, 128])
        print(patch_memory.shape)
        # torch.Size([4, 32, 256])
@HaileyStorm
Copy link
Owner

HaileyStorm commented Jan 31, 2025 via email

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

2 participants