Git Product home page Git Product logo

deep-symbolic-mathematics / multimodal-math-pretraining Goto Github PK

View Code? Open in Web Editor NEW
35.0 3.0 2.0 985 KB

[ICLR 2024 Spotlight] This is the official code for the paper "SNIP: Bridging Mathematical Symbolic and Numeric Realms with Unified Pre-training"

Home Page: https://openreview.net/forum?id=KZSEgJGPxu

License: MIT License

Python 98.79% Shell 1.21%
ai4math ai4science deep-learning multi-modal multi-modal-learning representation-learning symbolic-math symbolic-regression transformers

multimodal-math-pretraining's Issues

Mismatch Error When Reloading Pre-trained Weights for Inference Testing

Hi,

I am encountering a mismatch error while attempting to reload the pre-trained weights (SNIP-10dmax) for inference testing on the model. Despite following the installation instructions meticulously to set up the environment and packages, the error arises when executing the command:

!python /content/drive/MyDrive/LLM/Multimodal-Math-Pretraining-main/train.py --reload_model /content/drive/MyDrive/LLM/Multimodal-Math-Pretraining-main/weights/snip-10dmax.pth

to load the weights. The specific error message indicates a size mismatch in several layers:

RuntimeError: Error(s) in loading state_dict for LinearPointEmbedder:
size mismatch for hidden_layers.0.weight: copying a param with shape torch.Size([2112, 2112]) from checkpoint, the shape in current model is torch.Size([384, 384]).
size mismatch for hidden_layers.0.bias: copying a param with shape torch.Size([2112]) from checkpoint, the shape in current model is torch.Size([384]).
size mismatch for fc.weight: copying a param with shape torch.Size([512, 2112]) from checkpoint, the shape in current model is torch.Size([512, 384]).

This issue leads me to question whether there might be a discrepancy between the pre-trained model weights provided and the current model architecture in the repository, or if there were any steps I may have overlooked during the setup process.

I would greatly appreciate any guidance or suggestions you could offer to resolve this mismatch issue. Thank you for your time and assistance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.