https://github.com/balisujohn/localpilot

codellama on CPU without Docker

https://github.com/balisujohn/localpilot

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.6%) to scientific vocabulary

Keywords

code code-llama codellama llama text-generation-webui vscode vscode-extension vscodium wizardcoder
Last synced: 5 months ago · JSON representation

Repository

codellama on CPU without Docker

Basic Info
  • Host: GitHub
  • Owner: balisujohn
  • License: mit
  • Language: JavaScript
  • Default Branch: master
  • Homepage:
  • Size: 92.8 KB
Statistics
  • Stars: 25
  • Watchers: 3
  • Forks: 6
  • Open Issues: 0
  • Releases: 3
Topics
code code-llama codellama llama text-generation-webui vscode vscode-extension vscodium wizardcoder
Created over 2 years ago · Last pushed about 2 years ago
Metadata Files
Readme Changelog License

README.md

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.

Owner

  • Name: John Balis
  • Login: balisujohn
  • Kind: user

Pursuing a Doctorate of Computer Sciences at UW Madison. Interested in reinforcement learning. My focus is primarily sim2real RL for robotics.

GitHub Events

Total
  • Fork event: 1
Last Year
  • Fork event: 1

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 26
  • Total Committers: 1
  • Avg Commits per committer: 26.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
John Balis p****s@g****m 26

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels