AI code completion ,add more struct and define info in context,help you get more accurate code completion!Please Read ZYinfo AI coder User guide Code completion for more information access, debugging related information example(more struct and define info) (golang): making it compatible with open source code models on hf.co/models. ** Announcement (Aug 25, 2023): latest version of this extension supports codellama/CodeLlama-13b-hf. Find more info here how to test Code Llama with this extension. ** Announcement (Sept 4, 2023): latest version of this extension supports Phind/Phind-CodeLlama-34B-v2 and WizardLM/WizardCoder-Python-34B-V1.0. Find more info here how to test those models with this extension. We also have extensions for: The currently supported models are:
InstallingInstall just like any other vscode extension. By default, this extension is using bigcode/starcoder & Hugging Face Inference API for the inference. However, you can configure to make inference requests to your custom endpoint that is not Hugging Face Inference API. Thus, if you are using the default Hugging Face Inference AP inference, you'd need to provide HF API Token. HF API tokenYou can supply your HF API token (hf.co/settings/token) with this command:
Testing
Checking if the generated code is in The StackHit DevelopingMake sure you've installed yarn on your system.
Checking outputYou can see input to & output from the code generation API:
ConfiguringYou can configure: endpoint to where request will be sent and special tokens. Example: Let's say your current code is this:
Then, the request body will look like:
Code LlamaTo test Code Llama 13B model:
Read more here about Code LLama. Phind and WizardCoderTo test Phind/Phind-CodeLlama-34B-v2 and/or WizardLM/WizardCoder-Python-34B-V1.0 :
Read more about Phind-CodeLlama-34B-v2 here and WizardCoder-15B-V1.0 here. Community
|