GithubHelp home page GithubHelp logo

shahabsh94 / autocompleter Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 1.3 MB

Auto Complete anything using a gguf model

Python 100.00%
ai autocomplete autocompletion llama-cpp llamacpp llamas llm llms text-completion textgeneration

autocompleter's Introduction

AutoCompleter

Auto Complete anything using a gguf model

a simple script that lets you auto-complete anything anywhere using your favorite gguf model

New Changes:

-you can now get completion token by token instead of waiting for it to finish

-folder mode , now you can specify a folder and filetypes and you can use the symbol on files inside the folder(only one symbol at at a time)

example for code completion in vscode:

ezgif-4-57adb8e040

symbol document mode: in this mode enter the absolute path to your document for example C:\Users\file.txt in .env file then on wherever you want completion just put the symbol(default=$$) on there then for example: def helloworld() print$$ then press shift+ctrl hopefully you will get something like def helloworld() print("Hello, world!")

folder symbol mode: set a folder in .env and specify file types program will scan all those files and and you will get predictions on the file where the symbol is.

some programs lock the file while the file is opened in that program so currently they're not supported in these mode if file is locked from another program in that case you might want to use clipboard mode.

clipboard mode: in this mode copy the text you want completion for then press shift+ctrl to get completion then the completion will get pasted at your cursor onto whatever field its on

-you can press shift+ctrl again in any mode to stop the completion while its happening

how to use: clone the repo , install the requirements using pip, edit the .env file to your needs then run the script tested on windows for linux you might have to run the script as sudo

if you dont have a gguf model get one from here https://huggingface.co/TheBloke

Credits:

https://github.com/ggerganov/llama.cpp

https://github.com/abetlen/llama-cpp-python

autocompleter's People

Contributors

shahabsh94 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.