question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Checkpoint doesn't match

See original GitHub issue

self.model = DalleBart.from_pretrained("model", dtype=dtype, abstract_init=True) I got following error message for above line looks like the checkpoint doesn’t match? ValueError: Trying to load the pretrained weight for ('model', 'decoder', 'embed_positions', 'embedding') failed: checkpoint has shape (257, 1024) which is incompatible with the model shape (256, 1024). Using ignore_mismatched_sizes=True if you really want to load this checkpoint inside this model.

After updating to self.model = DalleBart.from_pretrained("model", dtype=dtype, abstract_init=True, ignore_mismatched_sizes=True) (add ignore_mismatched_sizes=True) I got another error TypeError: Value ShapeDtypeStruct(shape=(256, 1024), dtype=float32) with type <class ‘jax._src.api.ShapeDtypeStruct’> is not a valid JAX type

Looks like both errors are from JAX, I install the latest JAX by pip install jax[cuda11_cudnn805] -f https://storage.googleapis.com/jax-releases/jax_releases.html

Any suggestions?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shi3zcommented, Feb 11, 2022

Awesome!

I updated transformers from 14.0 to 14.16, then it work well. Thank you very much! Best

0reactions
borisdaymacommented, Feb 10, 2022

Did you try to update your installation? Make sure your transformers repo is updated too!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Rule not being matched - Check Point CheckMates
I have a strange issue where the firewall does not match traffic to spefic rule and ultimately drops the traffic on the cleanup...
Read more >
Solved - Firewall Check Mapping does not match. Checkpoint ...
I strugle with the configuration on a checkpoint 1530 appliance. The NAT rules are created but the firewall checker reports: Mapping does not...
Read more >
Tensorflow: the number of produced checkpoint files doesn't ...
Tensorflow: the number of produced checkpoint files doesn't match the configured inputs for model_main_tf2.py · tensorflow · object-detection ...
Read more >
Num_layers of temporal transformer in checkpoint don't match?
... check vivit_base_factorised_encoder, I find config.model.temporal_transformer.num_layers = 4, which doesn't match the loaded checkpoint.
Read more >
Golf Clash - Checkpoint Challenge LIVE Reaction!! - YouTube
Checkpoint Challenge!! | Golf Clash LIVE!Checkout my Webpage for FREE Notes!✓ Webpage: https://www.erelicgaming.com✓ Learn the Wind Rind ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found