Code Llama是开源免费可商用的大型语言模型 (LLM),可以使用文本提示来生成代码,包括 Python、C++、Java、PHP、Typescript (Javascript)、C#、Bash 等。原生模型需要申请才能下载。消费级显卡上可以使用text-generation-webui加载hugging face格式的code llama模型。
codellama github https://github.com/facebookresearch/codellama
文本生成webui https://github.com/oobabooga/text-generation-webui
transformers4.33 pip install git+https://github.com/huggingface/transformers.git@main accelerate
hugging face格式模型 https://huggingface.co/codellama