Giter VIP home page Giter VIP logo

gladis's People

Contributors

tigerchen52 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gladis's Issues

Loading Model from State Dictionary throws Unexpected Keys Error

Hi I tried using the AcroBert model on my machine and ran into an error:

I ran the installation as described in the Repo.
Downloaded the model and the dictionary from the given link.

As I try to try to run the acrobert.py script in the .\inference\ folder like this:

GLADIS\inference> py .\acrobert.py

it loads the dictionary:

2024-04-26 16:32:02,565 : utils.py : load_acronym_kb : INFO : loaded acronym dictionary successfully, in total there are [1542845] acronyms
2024-04-26 16:32:02,565 : acrobert.py : <module> : INFO : running .\acrobert.py

but then throws:

RuntimeError: Error(s) in loading state_dict for AcronymBERT: Unexpected key(s) in state_dict: "model.bert.embeddings.position_ids".

Im running Python 3.11.4 on Windows 11.
I have installed all requirements and updated all my modules.
I have re-downloaded the repo and the model files multiple times.

Am I doing something wrong?
Do you have an idea what might cause this?
Does it behave the same way on your machine?

Any help is appreciated!

Best,
Jasper

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.