Coder Social home page Coder Social logo

Comments (4)

henryhungle avatar henryhungle commented on July 26, 2024

@doviettung96 Just to clarify, So you can finetune CodeT5-large on ground-truth programs using the scripts/train_actor.sh but you are not sure how to generate from the finetuned checkpoints?

One way is to simply replace the model path from the below line to the path of a checkpoint you have from finetuning e.g. exps/codet5-large_none_bs1x4_lr2e-05/final_checkpoint/:

model_path=models/codet5_finetuned_codeRL

from coderl.

doviettung96 avatar doviettung96 commented on July 26, 2024

Yeah. I did replace that path in the generate.sh script. However, while I'm loading that checkpoint as a generator model Loading model from /exps/checkpoints/checkpoint-293000...
, I got this error:
OSError: We couldn't connect to 'https://huggingface.co/' to load this model and it looks like /exps/checkpoints/checkpoint-293000 is not the path to a directory conaining a config.json file.
As I described before, the checkpoint only has pytorch_model.bin but not the config.json.
Can I find it anywhere? Or I think I can copy the config.json from CodeT5-large, right?
Thanks.

from coderl.

henryhungle avatar henryhungle commented on July 26, 2024

I am not sure why the config.json is not in the checkpoint folder. Is the above connection issue causing this problem? Have you tried to resolve it first?

I ran using the current code and the training worked fine and config.json were saved in checkpoint folders.

from coderl.

doviettung96 avatar doviettung96 commented on July 26, 2024

Oh yeah. My bad. It is because I set the path for the checkpoint not quite correctly. It works now. Thank you.

from coderl.

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.