GithubHelp home page GithubHelp logo

parameter mismatch error about cakechat HOT 4 CLOSED

lukalabs avatar lukalabs commented on August 26, 2024
parameter mismatch error

from cakechat.

Comments (4)

nikitos9000 avatar nikitos9000 commented on August 26, 2024

Hi @maxymy98

That's because you're trying to fine-tune the pre-trained model (which was trained with 50000 tokens dictionary), but your new dataset (dummy one) has much fewer distinct tokens in it (39).

I think you can just re-use index_to_token.json file from the pre-trained model if you want to fine-tune it with a new corpus.

from cakechat.

nicolas-ivanov avatar nicolas-ivanov commented on August 26, 2024

@maxymy98 Seems like you have a wrong tokens index file. Check data/tokens_index/t_idx_processed_dialogs.json – it should have 50k different token values, not 39.
The original index file might have been replaced in case you run tools/prepare_index_files.py script on a dummy corpus.

How to fix:

  1. remove data/tokens_index/t_idx_processed_dialogs.json
  2. run tools/download_model.py script, it should get you the original index file

from cakechat.

maxymy98 avatar maxymy98 commented on August 26, 2024

@nicolas-ivanov @nsmetanin thank you so much for the quick reply. The issue is resolved!

from cakechat.

nicolas-ivanov avatar nicolas-ivanov commented on August 26, 2024

Awesome!

from cakechat.

Related Issues (20)

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.