GraySoft
Projects Models About FAQ Contact Download guIDE →

devshubham/codellama-7b-instruct-gguf Q3_K_L GGUF - Free GGUF Download is indexed on GraySoft with repository links, GGUF quant files, and Hugging Face metadata. This page helps you pick a local model for guIDE or other runtimes. See related models in the same shard below.

Model Intelligence Sheet

devshubham/codellama-7b-instruct-gguf overview

Comprehensive model page for devshubham/codellama-7b-instruct-gguf

transformersggufllamallama-2text-generationcodearxiv:2308.12950base_model:codellama/CodeLlama-13b-Instruct-hfbase_model:quantized:codellama/CodeLlama-13b-Instruct-hflicense:llama2region:us
devshubham/codellama-7b-instruct-gguf visual
Downloads
246
Likes
1
Pipeline
text-generation
Library
transformers
Visibility
Public
Access
Open

Repository Files & Downloads

12 files detected
Direct downloads for all repository files
FileTypeQuantizationSizeLink
codellama-7b-instruct.Q2_K-008.gguf GGUF Q2_K 2.63 GB Download
codellama-7b-instruct.Q3_K_L-003.gguf GGUF Q3_K_L 3.35 GB Download
codellama-7b-instruct.Q3_K_M-001.gguf GGUF Q3_K_M 3.07 GB Download
codellama-7b-instruct.Q3_K_S-010.gguf GGUF Q3_K_S 2.75 GB Download
codellama-7b-instruct.Q4_0-005.gguf GGUF 3.56 GB Download
codellama-7b-instruct.Q4_K_M-011.gguf GGUF Q4_K_M 3.80 GB Download
codellama-7b-instruct.Q4_K_S-004.gguf GGUF Q4_K_S 3.59 GB Download
codellama-7b-instruct.Q5_0-009.gguf GGUF 4.33 GB Download
codellama-7b-instruct.Q5_K_M-012.gguf GGUF Q5_K_M 4.45 GB Download
codellama-7b-instruct.Q5_K_S-006.gguf GGUF Q5_K_S 4.33 GB Download
codellama-7b-instruct.Q6_K-013.gguf GGUF Q6_K 5.15 GB Download
codellama-7b-instruct.Q8_0-007.gguf GGUF 6.67 GB Download

Model Details Live

Model Slug
devshubham/codellama-7b-instruct-gguf
Author
DevShubham
Pipeline Task
text-generation
Library
transformers
Created
2024-05-13
Last Modified
2024-07-01
Gated
No
Private
No
HF SHA
d7db01b7645b929ea73b3f6689e470f319591518
License
llama2
Language
code
Base Model
codellama/CodeLlama-13b-Instruct-hf

Metadata Inspector

Normalized metadata (stored in metadata_json)
{
  "metadata": {},
  "card_data": {
    "language": [
      "code"
    ],
    "license": "llama2",
    "tags": [
      "llama-2"
    ],
    "model_name": "CodeLlama 13B Instruct",
    "base_model": "codellama/CodeLlama-13b-Instruct-hf",
    "inference": false,
    "model_creator": "Meta",
    "model_type": "llama",
    "pipeline_tag": "text-generation",
    "prompt_template": "[INST] Write code to solve the following coding problem that obeys the constraints and passes the example test cases. Please wrap your code answer using ```:\n{prompt}\n[/INST]\n",
    "quantized_by": "DevShubham",
    "frontmatter": {
      "language": [
        "code"
      ],
      "license": "llama2",
      "tags": [
        "llama-2"
      ],
      "model_name": "CodeLlama 13B Instruct",
      "base_model": "codellama/CodeLlama-13b-Instruct-hf",
      "inference": "false",
      "model_creator": "Meta",
      "model_type": "llama",
      "pipeline_tag": "text-generation",
      "prompt_template": "'[INST] Write code to solve the following coding problem that obeys",
      "quantized_by": "DevShubham"
    },
    "hero_image_url": "",
    "summary": "",
    "quick_links": [],
    "benchmark_table_html": "",
    "readme_markdown": "---\nlanguage:\n- code\nlicense: llama2\ntags:\n- llama-2\nmodel_name: CodeLlama 13B Instruct\nbase_model: codellama/CodeLlama-13b-Instruct-hf\ninference: false\nmodel_creator: Meta\nmodel_type: llama\npipeline_tag: text-generation\nprompt_template: '[INST] Write code to solve the following coding problem that obeys\n  the constraints and passes the example test cases. Please wrap your code answer\n  using ```:\n\n  {prompt}\n\n  [/INST]\n\n  '\nquantized_by: DevShubham\n---\n\n<!-- header start -->\n<!-- 200823 -->\n<div style=\"width: auto; margin-left: auto; margin-right: auto\">\n<hr style=\"margin-top: 1.0em; margin-bottom: 1.0em;\">\n<!-- header end -->\n\n# CodeLlama 13B Instruct - GGUF\n- Model creator: [Meta](https://huggingface.co/meta-llama)\n- Original model: [CodeLlama 13B Instruct](https://huggingface.co/codellama/CodeLlama-13b-Instruct-hf)\n\n<!-- description start -->\n## Description\n\nThis repo contains GGUF format model files for [Meta's CodeLlama 13B Instruct](https://huggingface.co/codellama/CodeLlama-13b-Instruct-hf).\n\n<!-- description end -->\n<!-- README_GGUF.md-about-gguf start -->\n### About GGUF\n\nGGUF is a new format introduced by the llama.cpp team on August 21st 2023. It is a replacement for GGML, which is no longer supported by llama.cpp. GGUF offers numerous advantages over GGML, such as better tokenisation, and support for special tokens. It is also supports metadata, and is designed to be extensible.\n\nHere is an incomplate list of clients and libraries that are known to support GGUF:\n\n* [llama.cpp](https://github.com/ggerganov/llama.cpp). The source project for GGUF. Offers a CLI and a server option.\n* [text-generation-webui](https://github.com/oobabooga/text-generation-webui), the most widely used web UI, with many features and powerful extensions. Supports GPU acceleration.\n* [KoboldCpp](https://github.com/LostRuins/koboldcpp), a fully featured web UI, with GPU accel across all platforms and GPU architectures. Especially good for story telling.\n* [LM Studio](https://lmstudio.ai/), an easy-to-use and powerful local GUI for Windows and macOS (Silicon), with GPU acceleration.\n* [LoLLMS Web UI](https://github.com/ParisNeo/lollms-webui), a great web UI with many interesting and unique features, including a full model library for easy model selection.\n* [Faraday.dev](https://faraday.dev/), an attractive and easy to use character-based chat GUI for Windows and macOS (both Silicon and Intel), with GPU acceleration.\n* [ctransformers](https://github.com/marella/ctransformers), a Python library with GPU accel, LangChain support, and OpenAI-compatible AI server.\n* [llama-cpp-python](https://github.com/abetlen/llama-cpp-python), a Python library with GPU accel, LangChain support, and OpenAI-compatible API server.\n* [candle](https://github.com/huggingface/candle), a Rust ML framework with a focus on performance, including GPU support, and ease of use.\n\n<!-- README_GGUF.md-about-gguf end -->\n<!-- repositories-available start -->\n\n<!-- repositories-available end -->\n\n<!-- prompt-template start -->\n## Prompt template: CodeLlama\n\n```\n[INST] Write code to solve the following coding problem that obeys the constraints and passes the example test cases. Please wrap your code answer using ```:\n{prompt}\n[/INST]\n\n```\n\n<!-- prompt-template end -->\n\n\n<!-- compatibility_gguf start -->\n## Compatibility\n\nThese quantised GGUFv2 files are compatible with llama.cpp from August 27th onwards, as of commit [d0cee0d36d5be95a0d9088b674dbb27354107221](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221)\n\nThey are also compatible with many third party UIs and libraries - please see the list at the top of this README.\n\n## Explanation of quantisation methods\n<details>\n  <summary>Click to see details</summary>\n\nThe new methods available are:\n* GGML_TYPE_Q2_K - \"type-1\" 2-bit quantization in super-blocks containing 16 blocks, each block having 16 weight. Block scales and mins are quantized with 4 bits. This ends up effectively using 2.5625 bits per weight (bpw)\n* GGML_TYPE_Q3_K - \"type-0\" 3-bit quantization in super-blocks containing 16 blocks, each block having 16 weights. Scales are quantized with 6 bits. This end up using 3.4375 bpw.\n* GGML_TYPE_Q4_K - \"type-1\" 4-bit quantization in super-blocks containing 8 blocks, each block having 32 weights. Scales and mins are quantized with 6 bits. This ends up using 4.5 bpw.\n* GGML_TYPE_Q5_K - \"type-1\" 5-bit quantization. Same super-block structure as GGML_TYPE_Q4_K resulting in 5.5 bpw\n* GGML_TYPE_Q6_K - \"type-0\" 6-bit quantization. Super-blocks with 16 blocks, each block having 16 weights. Scales are quantized with 8 bits. This ends up using 6.5625 bpw\n\nRefer to the Provided Files table below to see what files use which methods, and how.\n</details>\n<!-- compatibility_gguf end -->\n\n<!-- README_GGUF.md-provided-files start -->\n\n\n<!-- README_GGUF.md-provided-files end -->\n\n<!-- README_GGUF.md-how-to-download start -->\n## How to download GGUF files\n\n**Note for manual downloaders:** You almost never want to clone the entire repo! Multiple different quantisation formats are provided, and most users only want to pick and download a single file.\n\nThe following clients/libraries will automatically download models for you, providing a list of available models to choose from:\n- LM Studio\n- LoLLMS Web UI\n- Faraday.dev\n\n\nThen click Download.\n\n### On the command line, including multiple files at once\n\nI recommend using the `huggingface-hub` Python library:\n\n```shell\npip3 install huggingface-hub>=0.17.1\n```\n\nThen you can download any individual model file to the current directory, at high speed, with a command like this:\n\n```shell\nhuggingface-cli download DevShubham/Codellama-7B-Instruct-GGUF codellama-13b-instruct.q4_K_M.gguf --local-dir . --local-dir-use-symlinks False\n```\n\n<details>\n  <summary>More advanced huggingface-cli download usage</summary>\n\nYou can also download multiple files at once with a pattern:\n\n```shell\nhuggingface-cli download DevShubham/Codellama-7B-Instruct-GGUF --local-dir . --local-dir-use-symlinks False --include='*Q4_K*gguf'\n```\n\nFor more documentation on downloading with `huggingface-cli`, please see: [HF -> Hub Python Library -> Download files -> Download from the CLI](https://huggingface.co/docs/huggingface_hub/guides/download#download-from-the-cli).\n\nTo accelerate downloads on fast connections (1Gbit/s or higher), install `hf_transfer`:\n\n```shell\npip3 install hf_transfer\n```\n\nAnd set environment variable `HF_HUB_ENABLE_HF_TRANSFER` to `1`:\n\n\nWindows CLI users: Use `set HUGGINGFACE_HUB_ENABLE_HF_TRANSFER=1` before running the download command.\n</details>\n<!-- README_GGUF.md-how-to-download end -->\n\n<!-- README_GGUF.md-how-to-run start -->\n## Example `llama.cpp` command\n\nMake sure you are using `llama.cpp` from commit [d0cee0d36d5be95a0d9088b674dbb27354107221](https://github.com/ggerganov/llama.cpp/commit/d0cee0d36d5be95a0d9088b674dbb27354107221) or later.\n\n```shell\n./main -ngl 32 -m codellama-13b-instruct.q4_K_M.gguf --color -c 4096 --temp 0.7 --repeat_penalty 1.1 -n -1 -p \"[INST] Write code to solve the following coding problem that obeys the constraints and passes the example test cases. Please wrap your code answer using ```:\\n{prompt}\\n[/INST]\"\n```\n\nChange `-ngl 32` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.\n\nChange `-c 4096` to the desired sequence length. For extended sequence models - eg 8K, 16K, 32K - the necessary RoPE scaling parameters are read from the GGUF file and set by llama.cpp automatically.\n\nIf you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`\n\nFor other parameters and how to use them, please refer to [the llama.cpp documentation](https://github.com/ggerganov/llama.cpp/blob/master/examples/main/README.md)\n\n## How to run in `text-generation-webui`\n\nFurther instructions here: [text-generation-webui/docs/llama.cpp.md](https://github.com/oobabooga/text-generation-webui/blob/main/docs/llama.cpp.md).\n\n## How to run from Python code\n\nYou can use GGUF models from Python using the [llama-cpp-python](https://github.com/abetlen/llama-cpp-python) or [ctransformers](https://github.com/marella/ctransformers) libraries.\n\n### How to load this model from Python using ctransformers\n\n#### First install the package\n\n```bash\n# Base ctransformers with no GPU acceleration\npip install ctransformers>=0.2.24\n# Or with CUDA GPU acceleration\npip install ctransformers[cuda]>=0.2.24\n# Or with ROCm GPU acceleration\nCT_HIPBLAS=1 pip install ctransformers>=0.2.24 --no-binary ctransformers\n# Or with Metal GPU acceleration for macOS systems\nCT_METAL=1 pip install ctransformers>=0.2.24 --no-binary ctransformers\n```\n\n#### Simple example code to load one of these GGUF models\n\n```python\nfrom ctransformers import AutoModelForCausalLM\n\n# Set gpu_layers to the number of layers to offload to GPU. Set to 0 if no GPU acceleration is available on your system.\nllm = AutoModelForCausalLM.from_pretrained(\"DevShubham/Codellama-7B-Instruct-GGUF\", model_file=\"codellama-13b-instruct.q4_K_M.gguf\", model_type=\"llama\", gpu_layers=50)\n\nprint(llm(\"AI is going to\"))\n```\n\n## How to use with LangChain\n\nHere's guides on using llama-cpp-python or ctransformers with LangChain:\n\n* [LangChain + llama-cpp-python](https://python.langchain.com/docs/integrations/llms/llamacpp)\n* [LangChain + ctransformers](https://python.langchain.com/docs/integrations/providers/ctransformers)\n\n<!-- README_GGUF.md-how-to-run end -->\n\n<!-- footer start -->\n\n\nThanks to the [chirper.ai](https://chirper.ai) team!\n\nThanks to Clay from [gpus.llm-utils.org](llm-utils)!\n\nI've had a lot of people ask if they can contribute. I enjoy providing models and helping people, and would love to be able to spend even more time doing it, as well as expanding into new projects like fine tuning/training.\n\nIf you're able and willing to contribute it will be most gratefully received and will help me to keep providing more models, and to start work on new AI projects.\n\nDonaters will get priority support on any and all AI/LLM/model questions and requests, access to a private Discord room, plus other benefits.\n\nThank you to all my generous patrons and donaters!\n\nAnd thank you again to a16z for their generous grant.\n\n<!-- footer end -->\n\n<!-- original-model-card start -->\n# Original model card: Meta's CodeLlama 13B Instruct\n\n# **Code Llama**\nCode Llama is a collection of pretrained and fine-tuned generative text models ranging in scale from 7 billion to 34 billion parameters. This is the repository for the 13 instruct-tuned version in the Hugging Face Transformers format. This model is designed for general code synthesis and understanding. Links to other models can be found in the index at the bottom.\n\n|     | Base Model                                                                    | Python                                                                                      | Instruct                                                                                        |\n| --- | ----------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |\n| 7B  | [codellama/CodeLlama-7b-hf](https://huggingface.co/codellama/CodeLlama-7b-hf) | [codellama/CodeLlama-7b-Python-hf](https://huggingface.co/codellama/CodeLlama-7b-Python-hf) | [codellama/CodeLlama-7b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-7b-Instruct-hf) |\n| 13B  | [codellama/CodeLlama-13b-hf](https://huggingface.co/codellama/CodeLlama-13b-hf) | [codellama/CodeLlama-13b-Python-hf](https://huggingface.co/codellama/CodeLlama-13b-Python-hf) | [codellama/CodeLlama-13b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-13b-Instruct-hf) |\n| 34B  | [codellama/CodeLlama-34b-hf](https://huggingface.co/codellama/CodeLlama-34b-hf) | [codellama/CodeLlama-34b-Python-hf](https://huggingface.co/codellama/CodeLlama-34b-Python-hf) | [codellama/CodeLlama-34b-Instruct-hf](https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf) |\n\n## Model Use\n\nTo use this model, please make sure to install transformers from `main` until the next version is released:\n\n```bash\npip install git+https://github.com/huggingface/transformers.git@main accelerate\n```\n\nModel capabilities:\n\n- [x] Code completion.\n- [x] Infilling.\n- [x] Instructions / chat.\n- [ ] Python specialist.\n\n## Model Details\n*Note: Use of this model is governed by the Meta license. Meta developed and publicly released the Code Llama family of large language models (LLMs).\n\n**Model Developers** Meta\n\n**Variations** Code Llama comes in three model sizes, and three variants:\n\n* Code Llama: base models designed for general code synthesis and understanding\n* Code Llama - Python: designed specifically for Python\n* Code Llama - Instruct: for instruction following and safer deployment\n\nAll variants are available in sizes of 7B, 13B and 34B parameters.\n\n**This repository contains the Instruct version of the 13B parameters model.**\n\n**Input** Models input text only.\n\n**Output** Models generate text only.\n\n**Model Architecture** Code Llama is an auto-regressive language model that uses an optimized transformer architecture.\n\n**Model Dates** Code Llama and its variants have been trained between January 2023 and July 2023.\n\n**Status** This is a static model trained on an offline dataset. Future versions of Code Llama - Instruct will be released as we improve model safety with community feedback.\n\n**License** A custom commercial license is available at: [https://ai.meta.com/resources/models-and-libraries/llama-downloads/](https://ai.meta.com/resources/models-and-libraries/llama-downloads/)\n\n**Research Paper** More information can be found in the paper \"[Code Llama: Open Foundation Models for Code](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/)\" or its [arXiv page](https://arxiv.org/abs/2308.12950).\n\n## Intended Use\n**Intended Use Cases** Code Llama and its variants is intended for commercial and research use in English and relevant programming languages. The base model Code Llama can be adapted for a variety of code synthesis and understanding tasks, Code Llama - Python is designed specifically to handle the Python programming language, and Code Llama - Instruct is intended to be safer to use for code assistant and generation applications.\n\n**Out-of-Scope Uses** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in languages other than English. Use in any other way that is prohibited by the Acceptable Use Policy and Licensing Agreement for Code Llama and its variants.\n\n## Hardware and Software\n**Training Factors** We used custom training libraries. The training and fine-tuning of the released models have been performed Meta’s Research Super Cluster.\n\n**Carbon Footprint** In aggregate, training all 9 Code Llama models required 400K GPU hours of computation on hardware of type A100-80GB (TDP of 350-400W). Estimated total emissions were 65.3 tCO2eq, 100% of which were offset by Meta’s sustainability program.\n\n## Training Data\n\nAll experiments reported here and the released models have been trained and fine-tuned using the same data as Llama 2 with different weights (see Section 2 and Table 1 in the [research paper](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/) for details).\n\n## Evaluation Results\n\nSee evaluations for the main models and detailed ablations in Section 3 and safety evaluations in Section 4 of the research paper.\n\n\n## Ethical Considerations and Limitations\n\nCode Llama and its variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Code Llama’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate or objectionable responses to user prompts. Therefore, before deploying any applications of Code Llama, developers should perform safety testing and tuning tailored to their specific applications of the model.\n\nPlease see the Responsible Use Guide available available at [https://ai.meta.com/llama/responsible-user-guide](https://ai.meta.com/llama/responsible-user-guide).\n\n<!-- original-model-card end -->\n",
    "related_quantizations": []
  },
  "tags": [
    "transformers",
    "gguf",
    "llama",
    "llama-2",
    "text-generation",
    "code",
    "arxiv:2308.12950",
    "base_model:codellama/CodeLlama-13b-Instruct-hf",
    "base_model:quantized:codellama/CodeLlama-13b-Instruct-hf",
    "license:llama2",
    "region:us"
  ],
  "likes": 1,
  "downloads": 246,
  "gated": false,
  "private": false,
  "last_modified": "2024-07-01T19:58:31.000Z",
  "created_at": "2024-05-13T16:03:30.000Z",
  "pipeline_tag": "text-generation",
  "library_name": "transformers"
}
Source payload excerpt (from Hugging Face API)
{
  "_id": "664239d27200c8a64ab271c2",
  "id": "DevShubham/Codellama-7B-Instruct-GGUF",
  "modelId": "DevShubham/Codellama-7B-Instruct-GGUF",
  "sha": "d7db01b7645b929ea73b3f6689e470f319591518",
  "createdAt": "2024-05-13T16:03:30.000Z",
  "lastModified": "2024-07-01T19:58:31.000Z",
  "author": "DevShubham",
  "downloads": 246,
  "likes": 1,
  "gated": false,
  "private": false,
  "pipeline_tag": "text-generation",
  "library_name": "transformers",
  "siblings_count": 18
}