Giter Club home page Giter Club logo

localpilot's Introduction

localpilot README

A gif showing localpilot's editSelection function being used to change an addition function to a multiplication function

A very simple vscode extension for using codellama via oobabooga text generation webui. Doesn't require a GPU; recommended for use with https://huggingface.co/TheBloke/CodeLlama-13B-Python-GGML or https://huggingface.co/TheBloke/WizardCoder-Python-13B-V1.0-GGML. Feel free to make issues describing features you want or questions you have about setup.

How to use

Quick Install

If you want to set it up with as little hassle as possible, you can install via the pre-built vsix files provided in the most recent release:

Go to Releases, then download the latex vsix file and install in from the vscode/vscodium extensions tab. Note this is in beta and really unpolished.

Local Build

If you want to modify the extension yourself, you likely will want to build from source. You can do so as follows:

Tested on Ubuntu with node version v14.20.0 and npm version 6.14.17

First clone the repository, then run

npm install
npm install -g @vscode/vsce

Then run:

vsce package

Which will generate a vsix file.

You can load this file directly from vscode or vscodium as an extension.

Features

Both extendSelection and editSelection become available in command palette. I recommend binding them to ctrl-q and ctrl-e respectively.

Extend Selection

The code model will extend the text you currently have highlighted. A gif showing localpilot being used to generate an is_prime function in python from its header.

Edit Selection

You will be prompted for a text-based command, then the selected text will be edited according to that command. A gif showing localpilot's editSelection function being used to change an addition function to a multiplication function

Requirements

You need to be running a codellama model in text generation webui with the API mode enabled on the same machine for this extension to work.

Contributing

Feel free to contribute improvements and instructions, also feel free to post feature requests as issues.

License

MIT

Credits

Template generated with https://github.com/Microsoft/vscode-generator-code

Template Generator License

vscode-generator-code

The MIT License (MIT)

Copyright (c) Microsoft Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

localpilot's People

Contributors

balisujohn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.