Git Product home page Git Product logo

Comments (11)

dimidd avatar dimidd commented on September 3, 2024 1

Great, thanks a lot! Re the loading issue, perhaps we shouldn't bother with backward compatibility for earlier finetune versions, if there are more pressing issues.

from finetune.

madisonmay avatar madisonmay commented on September 3, 2024

@dimidd thanks again for the bug reports. Going to dig into it -- did not expect this change to break saved model files.

from finetune.

madisonmay avatar madisonmay commented on September 3, 2024

Could you post a traceback? This is a very sensical problem to be caused by that upgrade but I'm unable to reproduce.

  • I installed 0.5.10.
  • Checked to ensure the version is set to 0.5.10
  • Trained and saved a simple model
  • Installed 0.5.11
  • Checked to ensure 0.5.11 was installed
  • Was able to successfully load the model

from finetune.

dimidd avatar dimidd commented on September 3, 2024

Sorry, I think it was even an earlier version than 5.10, perhaps 0.5. Is this metadata somehow saved in the model file?

from finetune.

dimidd avatar dimidd commented on September 3, 2024

BTW, I guess the documentation should be updated as well, since it seems that path must be now a dir.
https://github.com/IndicoDataSolutions/finetune/blob/development/finetune/base.py#L373

from finetune.

dimidd avatar dimidd commented on September 3, 2024

P.S. could this change have affected autosave_path? I've tried to use it in 5.11, but nothing was saved.

from finetune.

madisonmay avatar madisonmay commented on September 3, 2024

path does not have to be a dir -- the documentation needs to be updated there to reflect the current state of the code, which serializes to a single model file. Sorry for missing that.

from finetune.

madisonmay avatar madisonmay commented on September 3, 2024

Digging into the autosave_path report now @dimidd

from finetune.

madisonmay avatar madisonmay commented on September 3, 2024

@dimidd OK an update on the autosave_path problem -- that config argument was actually removed in favor of keeping best model parameters in CPU memory. So to get behavior similar to what you had previously:

model = Classifier(keep_best_model=True)
model.fit(data)
model.save(filepath) # this actually writes the saved model parameters out to disk

You can use this in conjunction with the early_stopping_steps argument to exit early if the validation loss fails to decrease for early_stopping_steps batches.

from finetune.

madisonmay avatar madisonmay commented on September 3, 2024

@dimidd Seems like there are substantial holes in the documentation for these things and some out of date docs in a few cases. Going to try to block out some time next week to make your life a bit easier in that regard. Thanks for bearing with us!

from finetune.

madisonmay avatar madisonmay commented on September 3, 2024

@dimidd I think that's wise -- because the project is young we were not too worried about preserving model save files between major finetune versions, but I am sorry we made life hard for you. Hope retraining is not too bad. Thanks again, closing for now!

from finetune.

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.