GraySoft
Projects Models About FAQ Contact Download guIDE →

lmstudio-community/codegemma-7b-it-gguf IQ4_NL 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

lmstudio-community/codegemma-7b-it-gguf overview

Comprehensive model page for lmstudio-community/codegemma-7b-it-gguf

transformersgguftext-generationlicense:gemmaendpoints_compatibleregion:usconversational
lmstudio-community/codegemma-7b-it-gguf visual
Downloads
378
Likes
10
Pipeline
text-generation
Library
transformers
Visibility
Public
Access
Open

Repository Files & Downloads

22 files detected
Direct downloads for all repository files
FileTypeQuantizationSizeLink
codegemma-7b-it-IQ1_M.gguf GGUF IQ1_M 2.16 GB Download
codegemma-7b-it-IQ1_S.gguf GGUF IQ1_S 2.01 GB Download
codegemma-7b-it-IQ2_M.gguf GGUF IQ2_M 2.92 GB Download
codegemma-7b-it-IQ2_S.gguf GGUF IQ2_S 2.72 GB Download
codegemma-7b-it-IQ2_XS.gguf GGUF IQ2_XS 2.62 GB Download
codegemma-7b-it-IQ2_XXS.gguf GGUF IQ2_XXS 2.41 GB Download
codegemma-7b-it-IQ3_M.gguf GGUF IQ3_M 3.82 GB Download
codegemma-7b-it-IQ3_S.gguf GGUF IQ3_S 3.71 GB Download
codegemma-7b-it-IQ3_XS.gguf GGUF IQ3_XS 3.54 GB Download
codegemma-7b-it-IQ3_XXS.gguf GGUF IQ3_XXS 3.25 GB Download
codegemma-7b-it-IQ4_NL.gguf GGUF IQ4_NL 4.67 GB Download
codegemma-7b-it-IQ4_XS.gguf GGUF IQ4_XS 4.44 GB Download
codegemma-7b-it-Q2_K.gguf GGUF Q2_K 3.24 GB Download
codegemma-7b-it-Q3_K_L.gguf GGUF Q3_K_L 4.39 GB Download
codegemma-7b-it-Q3_K_M.gguf GGUF Q3_K_M 4.07 GB Download
codegemma-7b-it-Q3_K_S.gguf GGUF Q3_K_S 3.71 GB Download
codegemma-7b-it-Q4_K_M.gguf GGUF Q4_K_M 4.96 GB Download
codegemma-7b-it-Q4_K_S.gguf GGUF Q4_K_S 4.70 GB Download
codegemma-7b-it-Q5_K_M.gguf GGUF Q5_K_M 5.72 GB Download
codegemma-7b-it-Q5_K_S.gguf GGUF Q5_K_S 5.57 GB Download
codegemma-7b-it-Q6_K.gguf GGUF Q6_K 6.53 GB Download
codegemma-7b-it-Q8_0.gguf GGUF 8.45 GB Download

Model Details Live

Model Slug
lmstudio-community/codegemma-7b-it-gguf
Author
lmstudio-community
Pipeline Task
text-generation
Library
transformers
Created
2024-04-09
Last Modified
2024-04-09
Gated
No
Private
No
HF SHA
ffd4dfcc4482d2392160b285a8e2176628e93e7f
License
gemma
Language
Unknown
Base Model
Unknown

Metadata Inspector

Normalized metadata (stored in metadata_json)
{
  "metadata": {},
  "card_data": {
    "library_name": "transformers",
    "extra_gated_heading": "Access Gemma on Hugging Face",
    "extra_gated_prompt": "To access CodeGemma on Hugging Face, you’re required to review and agree to Google’s usage license. To do this, please ensure you’re logged-in to Hugging Face and click below. Requests are processed immediately.",
    "extra_gated_button_content": "Acknowledge license",
    "pipeline_tag": "text-generation",
    "widget": [
      {
        "text": "<start_of_turn>user Write a Python function to calculate the nth fibonacci number.<end_of_turn> <start_of_turn>model\n"
      }
    ],
    "inference": {
      "parameters": {
        "max_new_tokens": 200
      }
    },
    "license": "gemma",
    "license_link": "https://ai.google.dev/gemma/terms",
    "quantized_by": "bartowski",
    "lm_studio": {
      "param_count": "8b",
      "use_case": "coding",
      "release_date": "09-04-2024",
      "model_creator": "google",
      "prompt_template": "Google Gemma Instruct",
      "system_prompt": "none",
      "base_model": "gemma",
      "original_repo": "google/codegemma-7b-it"
    },
    "frontmatter": {
      "library_name": "transformers",
      "extra_gated_heading": "Access Gemma on Hugging Face",
      "extra_gated_prompt": ">-",
      "extra_gated_button_content": "Acknowledge license",
      "pipeline_tag": "text-generation",
      "widget": [
        "text: >"
      ],
      "inference": [],
      "license": "gemma",
      "license_link": "https://ai.google.dev/gemma/terms",
      "quantized_by": "bartowski",
      "lm_studio": []
    },
    "hero_image_url": "",
    "summary": "",
    "quick_links": [],
    "benchmark_table_html": "",
    "readme_markdown": "---\nlibrary_name: transformers\nextra_gated_heading: Access Gemma on Hugging Face\nextra_gated_prompt: >-\n  To access CodeGemma on Hugging Face, you’re required to review and agree to\n  Google’s usage license. To do this, please ensure you’re logged-in to Hugging\n  Face and click below. Requests are processed immediately.\nextra_gated_button_content: Acknowledge license\npipeline_tag: text-generation\nwidget:\n- text: >\n    <start_of_turn>user\n    Write a Python function to calculate the nth fibonacci number.<end_of_turn>\n    <start_of_turn>model\ninference:\n  parameters:\n    max_new_tokens: 200\nlicense: gemma\nlicense_link: https://ai.google.dev/gemma/terms\nquantized_by: bartowski\nlm_studio:\n  param_count: 8b\n  use_case: coding\n  release_date: 09-04-2024\n  model_creator: google\n  prompt_template: Google Gemma Instruct\n  system_prompt: none\n  base_model: gemma\n  original_repo: google/codegemma-7b-it\n---\n\n## 💫 Community Model> CodeGemma 7b Instruct by Google\n\n*👾 [LM Studio](https://lmstudio.ai) Community models highlights program. Highlighting new & noteworthy models by the community. Join the conversation on [Discord](https://discord.gg/aPQfnNkxGC)*.\n\n**Model creator:** [Google](https://huggingface.co/google)<br>\n**Original model**: [google/codegemma-7b-it](https://huggingface.co/google/codegemma-7b-it)<br>\n**GGUF quantization:** provided by [bartowski](https://huggingface.co/bartowski) based on `llama.cpp` release [b2589](https://github.com/ggerganov/llama.cpp/releases/tag/b2589)<br>\n\n## Model Summary:\nCodeGemma 7b Instruct is the first in a series of coding models released by Google. As an instruct model, it specializes in being asked coding related questions, but can also function as an autocomplete/fill-in-middle model for tools like co-pilot.<br>\nThis model is perfect for general coding questions or code generation.\n\n## Prompt Template:\n\nChoose the 'Google Gemma Instruct' preset in your LM Studio. \n\nUnder the hood, the model will see a prompt that's formatted like so:\n\n```\n<start_of_turn>user\n{prompt}<end_of_turn>\n<start_of_turn>model\n```\n\nNote that this model does not support a System prompt.\n\n## Use case and examples\n\nThis model should be used for coding purposes.\n\n### Coding 1\n\n```\n<start_of_turn>user\nWrite a quicksort in C++<end_of_turn>\n<start_of_turn>model\n    #include <iostream>\n    \n    using namespace std;\n    \n    int partition(int arr[], int low, int high) {\n      int pivot = arr[high];\n      int i = (low - 1);\n    \n      for (int j = low; j <= high - 1; j++) {\n        if (arr[j] <= pivot) {\n          i++;\n          swap(arr[i], arr[j]);\n        }\n      }\n      swap(arr[i + 1], arr[high]);\n      return (i + 1);\n    }\n    \n    void quickSort(int arr[], int low, int high) {\n      if (low < high) {\n        int pi = partition(arr, low, high);\n    \n        quickSort(arr, low, pi - 1);\n        quickSort(arr, pi + 1, high);\n      }\n    }\n    \n    int main() {\n      int arr[] = {10, 7, 8, 9, 1, 5};\n      int n = sizeof(arr) / sizeof(arr[0]);\n    \n      quickSort(arr, 0, n - 1);\n    \n      cout << \"Sorted array: \";\n      for (int i = 0; i < n; i++) {\n        cout << arr[i] << \" \";\n      }\n    \n      return 0;\n    }\n<end_of_turn>\n```\n\n### Coding 2\n\n```\n<start_of_turn>user\nWrite a merge sort in java<end_of_turn>\n<start_of_turn>model\n\n    public class MergeSort {\n\n        public static void mergeSort(int[] arr) {\n            int n = arr.length;\n            if (n < 2) {\n                return;\n            }\n            int mid = n / 2;\n            int[] left = new int[mid];\n            int[] right = new int[n - mid];\n            for (int i = 0; i < mid; i++) {\n                left[i] = arr[i];\n            }\n            for (int i = mid; i < n; i++) {\n                right[i - mid] = arr[i];\n            }\n            mergeSort(left);\n            mergeSort(right);\n            merge(arr, left, right);\n        }\n    \n        public static void merge(int[] arr, int[] left, int[] right) {\n            int i = 0;\n            int j = 0;\n            int k = 0;\n            while (i < left.length && j < right.length) {\n                if (left[i] <= right[j]) {\n                    arr[k] = left[i];\n                    i++;\n                } else {\n                    arr[k] = right[j];\n                    j++;\n                }\n                k++;\n            }\n            while (i < left.length) {\n                arr[k] = left[i];\n                i++;\n                k++;\n            }\n            while (j < right.length) {\n                arr[k] = right[j];\n                j++;\n                k++;\n            }\n        }\n    \n        public static void main(String[] args) {\n            int[] arr = {5, 2, 4, 6, 1, 3};\n            mergeSort(arr);\n            for (int i = 0; i < arr.length; i++) {\n                System.out.print(arr[i] + \" \");\n            }\n        }\n    }\n<end_of_turn>\n```\n\n### Coding 3\n\n```\n<bos><start_of_turn>user\nHow do you write a for loop in react?<end_of_turn>\n<start_of_turn>model\nThe syntax for a for loop in React is:\n\n    for (let i = 0; i < array.length; i++) {\n      // Code to be executed for each iteration\n    }\n\nWhere:\n\n* `i` is the loop variable, which starts at 0 and increments by 1 with each iteration.\n* `array` is the array you want to iterate over.\n* `array.length` is the length of the array.\n* `// Code to be executed for each iteration` is the code you want to execute for each iteration of the loop.\n\nHere is an example of how to use a for loop to render a list of items:\n\n    const items = [\"item 1\", \"item 2\", \"item 3\"];\n    \n    const listItems = items.map((item, index) => (\n      <li key={index}>{item}</li>\n    ));\n    \n    return (\n      <ul>\n        {listItems}\n      </ul>\n    );\n\nIn this example, the `map()` method is used to create a new array of `li` elements. The `key` prop is used to uniquely identify each `li` element.\n\nHere are some other things to keep in mind when using for loops in React:\n\n* You can use any variable name for the loop variable.\n* You can use any condition for the loop condition.\n* You can use any code inside the loop.\n* You can use nested for loops.\n\nHere are some resources that you may find helpful:\n\n* **For Loop in JavaScript:** https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for\n* **Map() method:** https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map\n* **Key prop:** https://reactjs.org/docs/lists-and-keys.html#keys<end_of_turn>\n```\n\n## Coding related question\n\n```\n<bos><start_of_turn>user\nWhen would you use an array versus a dictionary?<end_of_turn>\n<start_of_turn>model\n**Arrays** and **dictionaries** are both data structures used in computer programming, but they have different purposes and characteristics.\n\n**Arrays** are ordered collections of elements of the same data type. They are indexed by their position in the array, starting from 0. Arrays are ideal for storing and accessing data in a sequential manner.\n\n**Dictionaries**, on the other hand, are unordered collections of key-value pairs. Keys are unique identifiers that are used to access the corresponding values. Dictionaries are ideal for storing and accessing data based on a specific key.\n\n**When to use an array:**\n\n* When you need to store a fixed number of elements of the same data type.\n* When you need to access elements by their position in the array.\n* When you need to iterate over the elements in a specific order.\n\n**When to use a dictionary:**\n\n* When you need to store a variable number of elements of different data types.\n* When you need to access elements by their key.\n* When you need to quickly check if a key exists in the dictionary.\n\n**Example:**\n\n**Array:**\n\n    # Create an array of integers\n    numbers = [1, 2, 3, 4, 5]\n    \n    # Access the first element\n    print(numbers[0])  # Output: 1\n    \n    # Iterate over the elements\n    for number in numbers:\n        print(number)\n\n**Dictionary:**\n\n    # Create a dictionary of names and ages\n    names_ages = {\"John\": 30, \"Jane\": 25, \"Peter\": 40}\n    \n    # Access the age of John\n    print(names_ages[\"John\"])  # Output: 30\n    \n    # Check if a key exists\n    if \"Mary\" in names_ages:\n        print(\"Mary is in the dictionary\")\n    else:\n        print(\"Mary is not in the dictionary\")\n\n**In summary:**\n\n* Use an array when you need to store a fixed number of elements of the same data type and access them by their position.\n* Use a dictionary when you need to store a variable number of elements of different data types and access them by their key.<end_of_turn>\n```\n\n## Technical Details\n\nCodeGemma is based on the Gemma 7b model with additional training on web documents, mathematics, and code, with a mixture of 80% code and 20% natural language.\n\nThe code used is based on publicly avaialble code repositories.\n\nThe instruct version was further trained on mathematical datasets in an attempt to improve its mathematical reasoning capabilities, as well as synthetic code generation combined with a second LLM for evaluation and reinforcement feedback.\n\nAdditional details can be found on Google's official report PDF [here](https://storage.googleapis.com/deepmind-media/gemma/codegemma_report.pdf)\n\n## Special thanks\n\n🙏 Special thanks to [Georgi Gerganov](https://github.com/ggerganov) and the whole team working on [llama.cpp](https://github.com/ggerganov/llama.cpp/) for making all of this possible.\n\n🙏 Special thanks to [Kalomaze](https://github.com/kalomaze) for his dataset (linked [here](https://github.com/ggerganov/llama.cpp/discussions/5263)) that was used for calculating the imatrix for these quants, which improves the overall quality!\n\n## Disclaimers\n\nLM Studio is not the creator, originator, or owner of any Model featured in the Community Model Program. Each Community Model is created and provided by third parties. LM Studio does not endorse, support, represent or guarantee the completeness, truthfulness, accuracy, or reliability of any Community Model.  You understand that Community Models can produce content that might be offensive, harmful, inaccurate or otherwise inappropriate, or deceptive. Each Community Model is the sole responsibility of the person or entity who originated such Model. LM Studio may not monitor or control the Community Models and cannot, and does not, take responsibility for any such Model. LM Studio disclaims all warranties or guarantees about the accuracy, reliability or benefits of the Community Models.  LM Studio further disclaims any warranty that the Community Model will meet your requirements, be secure, uninterrupted or available at any time or location, or error-free, viruses-free, or that any errors will be corrected, or otherwise. You will be solely responsible for any damage resulting from your use of or access to the Community Models, your downloading of any Community Model, or use of any other Community Model provided by or through LM Studio.\n",
    "related_quantizations": []
  },
  "tags": [
    "transformers",
    "gguf",
    "text-generation",
    "license:gemma",
    "endpoints_compatible",
    "region:us",
    "conversational"
  ],
  "likes": 10,
  "downloads": 378,
  "gated": false,
  "private": false,
  "last_modified": "2024-04-09T15:17:37.000Z",
  "created_at": "2024-04-09T14:56:41.000Z",
  "pipeline_tag": "text-generation",
  "library_name": "transformers"
}
Source payload excerpt (from Hugging Face API)
{
  "_id": "66155729c7fba6c60094c848",
  "id": "lmstudio-community/codegemma-7b-it-GGUF",
  "modelId": "lmstudio-community/codegemma-7b-it-GGUF",
  "sha": "ffd4dfcc4482d2392160b285a8e2176628e93e7f",
  "createdAt": "2024-04-09T14:56:41.000Z",
  "lastModified": "2024-04-09T15:17:37.000Z",
  "author": "lmstudio-community",
  "downloads": 378,
  "likes": 10,
  "gated": false,
  "private": false,
  "pipeline_tag": "text-generation",
  "library_name": "transformers",
  "siblings_count": 25
}