Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

size mismatch for base model

Open
#39 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, pytorch

Research direction

Start from the inference initialization path that loads the provided base_model checkpoint and inspect the keyboard_embed parameter shapes shown in the error. Check how the model configuration and checkpoint define the two extra dimensions, then verify that inference completes without the reported size mismatch.

Written by the indexing model from the issue text.

Description

Hi, when I use the provided base_model to make an inference, during initialization, it report an error

size mismatch for blocks.xx.action_model.keyboard_embed.0.weight: copying a param with shape torch.Size([128, 6]) from checkpoint, the shape in current model is torch.Size([128, 4]).

What do these two extra dimensions represent?

Could you please guide me on how to resolve this issue?
I truly appreciate your help.

Dominant language
Python
Stars
2.3k
Forks
254
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SkyworkAI/Matrix-Game

All issues in SkyworkAI/Matrix-Game

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.