Coder Social home page Coder Social logo

Comments (3)

ravenscroftj avatar ravenscroftj commented on July 1, 2024

hey there - great question. I haven't had time to run this myself but I think the answer might be in the tokenizer. If the tokenizer is producing the wrong token id inputs it could lead the model to produce garbage or just not do anything.

On line 18 the script loads the tokenizer for the model that is being converted -

print("Creating tokenizer")
tokenizer = CodeGenTokenizer.from_pretrained(args.code_model)

Now if you look in the config.json for the fine tuned model you see the tokenizer type is actually set to GPT2Tokenizer rather than CodeGenTokenizer. I don't know if it would be enough just to naively swap out the CodeGenTokenizer for a GPT2Tokenizer and run it again but maybe try that and post back?

from turbopilot.

czkoko avatar czkoko commented on July 1, 2024

I tested other finetuned models with codegen_gptj_convert.py and succeeded, but the effect did not seem to be as good as the original codegen.

I noticed that ammarnasr/codegen-350M-multi-ft-on-code-x-glue-tc didn't seem to have finished training yet, and the state crashed.
https://wandb.ai/ammarnasr/codegen_ft_on_codexglue/runs/a8h4vc2c/overview?workspace=user-

from turbopilot.

ravenscroftj avatar ravenscroftj commented on July 1, 2024

Cool ok sounds like this is probably an incomplete/broken model so it isn't something that I'd be able to offer guidance on at present. Very happy to consider other models and architectures - I'm currently looking at santacoder as a possible alternative.

from turbopilot.

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.