Coder Social home page Coder Social logo

Comments (3)

celbree avatar celbree commented on May 20, 2024 1

In the token-level completion scenario, when the inputs is "<s> package", assuming the ground truth is "org", but the model predicts "com". In the next step, the inputs should be "<s> package org". So it doesn't matter the model couldn't predict different tokens after "<s> package" because even though the model predict the wrong token, in the next step, the ground truth will be feed to model.

from codexglue.

celbree avatar celbree commented on May 20, 2024

To the first question, CodeGPT-small-py-adaptedGPT2 is a pre-train model. And it need fine-tuned on PY150 or Github Java Corpus dataset for both token-level completion and line-level completion.
The second question. Yes. The inputs and ground truth is the same file. The ground truth is the "next token" given the context.

from codexglue.

Martine307 avatar Martine307 commented on May 20, 2024

Thank you. But I am still confused about the input for the token-level completion. When the input is "<s> package" and use beam search, the predicted next token should be same, right? How can i get the different tokens("org" or "com") in the following picture?
image

from codexglue.

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.