LLaMA 适用于 VSCode
Fleece is a Visual Studio Code extension that allows developers to generate code using natural language. It's powered by dalai, an open source project that uses llama.cpp and alpaca.cpp language models to understand and interpret natural language.
The above demo showcases the comment-to-code feature of Fleece in real-time on an M1 Mac.
npm install dalai -gFollow the steps here to install the models via dalai's readme.
Install the Fleece extension from the VSCode extension marketplace or by building it from this repo or downloading the latest .vsix release in this repo.
Fleece currently has one feature: comment-to-code. An indicator for the hotkeys to trigger comment-to-code will show up automatically on comments. Simply press command+option+c on Mac to trigger the process. This will automatically start a Dalai server and send the comment as a request.
Note that Fleece is limited by the model used and the training data, so it's only as good as the Llama or Alpaca model. More features like autocomplete or language chatbot to answer questions will be added in the future.
git clone [email protected]:keldenl/fleece.gitvsce globally (if not already installed):npm install -g @vscode/vsce.vsix file:vsce packageThis should generate a .vsix file, which can be installed in VS Code via the command palette (Ctrl+Shift+P) using the "Extensions: Install from VSIX..." command.
Alternatively, you can also build and run Fleece locally in VS Code using the following steps:
F5 to start a local build and launch an instance of VS Code with the Fleece extensionContributions to Fleece are welcome! To contribute, follow these guidelines:
When contributing to Fleece, please follow these coding guidelines:
Note that the model weights are only to be used for research purposes, as they are derivative of LLaMA, and uses the published instruction data from the Stanford Alpaca project which is generated by OpenAI, which itself disallows the usage of its outputs to train competing models.
暂无开放 Issues,或尚未同步最近议题。