Coder Social home page Coder Social logo

Comments (3)

smith-co avatar smith-co commented on April 25, 2024

I don't understand how would that be helpful in the context of fauxpilot. Can you please elaborate a little bit more how could this applied to learn refactoring changes.

from fauxpilot.

xloem avatar xloem commented on April 25, 2024

Adapters basically provide for lightweight finetuning. They're a powerful tool people on lower end systems would ideally have access to.

For example, if you wanted a model feature for converting from one code form to another, you would train the adapter on examples of the transformation just like any other model, either from existing code or using prompts to augment or curate data in a partially supervised way.

A simpler thing you can do is personalise the model by training an adapter on your own code in general or code you respect; or severely strengthen it by training it only on the language you are writing in; or add comprehension of missing contextual information by defining a data presentation norm for it; add direct production of patch files; train only on generation of comments by removing them; etc. [edit: you could also train an adapter to predict your keystrokes and edits much better]

When an architecture is trained for a specific task this way, it becomes much stronger at that task. Adapters are only a few megabytes large, so they are quickly hot-swappable and composable.

Something else I have been trying a little is using architectures that accept longer input sequences, an orthogonal concept, which lets one include neighboring files in the input and is also very powerful.

from fauxpilot.

moyix avatar moyix commented on April 25, 2024

Looks like an interesting idea. One hurdle is that we would have to find a way to translate the adapters into FasterTransformer as well, since that's what we currently use for making inference fast.

from fauxpilot.

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.