Instructions to use CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF", filename="OpenCodeInterpreter-DS-6.7B.IQ1_S.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S # Run inference directly in the terminal: llama-cli -hf CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S # Run inference directly in the terminal: llama-cli -hf CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S # Run inference directly in the terminal: ./llama-cli -hf CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S # Run inference directly in the terminal: ./build/bin/llama-cli -hf CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S
Use Docker
docker model run hf.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S
- LM Studio
- Jan
- vLLM
How to use CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S
- Ollama
How to use CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF with Ollama:
ollama run hf.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S
- Unsloth Studio
How to use CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF to start chatting
- Docker Model Runner
How to use CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF with Docker Model Runner:
docker model run hf.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S
- Lemonade
How to use CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF:IQ1_S
Run and chat with the model
lemonade run user.OpenCodeInterpreter-DS-6.7B-SOTA-GGUF-IQ1_S
List all available models
lemonade list
Upload 11 files
Browse files- .gitattributes +10 -0
- OpenCodeInterpreter-DS-6.7B.IQ1_S.gguf +3 -0
- OpenCodeInterpreter-DS-6.7B.IQ2_M.gguf +3 -0
- OpenCodeInterpreter-DS-6.7B.IQ2_S.gguf +3 -0
- OpenCodeInterpreter-DS-6.7B.IQ2_XS.gguf +3 -0
- OpenCodeInterpreter-DS-6.7B.IQ2_XXS.gguf +3 -0
- OpenCodeInterpreter-DS-6.7B.IQ3_M.gguf +3 -0
- OpenCodeInterpreter-DS-6.7B.IQ3_S.gguf +3 -0
- OpenCodeInterpreter-DS-6.7B.IQ3_XS.gguf +3 -0
- OpenCodeInterpreter-DS-6.7B.IQ3_XXS.gguf +3 -0
- OpenCodeInterpreter-DS-6.7B.imatrix.dat +3 -0
- README.md +173 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
OpenCodeInterpreter-DS-6.7B.imatrix.dat filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
OpenCodeInterpreter-DS-6.7B.IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
OpenCodeInterpreter-DS-6.7B.IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
OpenCodeInterpreter-DS-6.7B.IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
OpenCodeInterpreter-DS-6.7B.IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
OpenCodeInterpreter-DS-6.7B.IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
OpenCodeInterpreter-DS-6.7B.IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
OpenCodeInterpreter-DS-6.7B.IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
OpenCodeInterpreter-DS-6.7B.IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
OpenCodeInterpreter-DS-6.7B.IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
|
OpenCodeInterpreter-DS-6.7B.IQ1_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:51a36ff354738faa987d164be83c9d18cf0c1f0d9c2a68bde9cee9ebce8ed903
|
| 3 |
+
size 1530209440
|
OpenCodeInterpreter-DS-6.7B.IQ2_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc8b562221cc31b9b4db87e63d9a09b99481e90bf53b93e6d365bfc540cd95e2
|
| 3 |
+
size 2361484448
|
OpenCodeInterpreter-DS-6.7B.IQ2_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2734866607bf4bf33d004bdc164af5f3581c9b19bba39b9c27a35e805039066
|
| 3 |
+
size 2198299808
|
OpenCodeInterpreter-DS-6.7B.IQ2_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b91b0c74cfc8e8b40283311327836503dde18847da73ca9dd35d05e6165e52a9
|
| 3 |
+
size 2036540576
|
OpenCodeInterpreter-DS-6.7B.IQ2_XXS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f94cdb4cbcbf3591f204a438e3724a310f91fa62617dc0dba6ced5c02dc86bb
|
| 3 |
+
size 1856578720
|
OpenCodeInterpreter-DS-6.7B.IQ3_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f6f9c0b8e5529de5f2914bd147e50d59b8e61475f2cd7e2d495e50b7a69b36a
|
| 3 |
+
size 3116737696
|
OpenCodeInterpreter-DS-6.7B.IQ3_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8640de98871c18b430f47d84bc7361015adf8d5cf46cac500d1575be43de6aab
|
| 3 |
+
size 2950177952
|
OpenCodeInterpreter-DS-6.7B.IQ3_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2980e66945bed767a280b13089ed9adabaf61f90a0b8102dca9ad564a60eb582
|
| 3 |
+
size 2798396576
|
OpenCodeInterpreter-DS-6.7B.IQ3_XXS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:691218cc94838ef6e27d9f24796d8bcac2ad4c8d7e037059209584d2792fc2b7
|
| 3 |
+
size 2587124896
|
OpenCodeInterpreter-DS-6.7B.imatrix.dat
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8fd39c9b70789f1cf31e8b11ddc0ec39002f63f9b453aa277aaa8ec793ec9ab
|
| 3 |
+
size 4562142
|
README.md
CHANGED
|
@@ -1,3 +1,176 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: m-a-p/OpenCodeInterpreter-DS-6.7B
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
tags:
|
| 7 |
+
- code
|
| 8 |
license: apache-2.0
|
| 9 |
+
model_creator: Multimodal Art Projection (M-A-P)
|
| 10 |
+
model_name: OpenCodeInterpreter DS 6.7B
|
| 11 |
+
model_type: deepseek
|
| 12 |
+
datasets:
|
| 13 |
+
- m-a-p/CodeFeedback-Filtered-Instruction
|
| 14 |
+
quantized_by: CISC
|
| 15 |
---
|
| 16 |
+
|
| 17 |
+
# OpenCodeInterpreter DS 6.7B - SOTA GGUF
|
| 18 |
+
- Model creator: [Multimodal Art Projection](https://huggingface.co/m-a-p)
|
| 19 |
+
- Original model: [OpenCodeInterpreter DS 6.7B](https://huggingface.co/m-a-p/OpenCodeInterpreter-DS-6.7B)
|
| 20 |
+
|
| 21 |
+
<!-- description start -->
|
| 22 |
+
## Description
|
| 23 |
+
|
| 24 |
+
This repo contains State Of The Art quantized GGUF format model files for [OpenCodeInterpreter DS 6.7B](https://huggingface.co/m-a-p/OpenCodeInterpreter-DS-6.7B).
|
| 25 |
+
|
| 26 |
+
Quantization was done with an importance matrix that was trained for ~1M tokens (2000 batches of 512 tokens) of answers from the [CodeFeedback-Filtered-Instruction](https://huggingface.co/datasets/m-a-p/CodeFeedback-Filtered-Instruction) dataset.
|
| 27 |
+
|
| 28 |
+
Even though the 1-bit quantized model file "works" it is **not recommended** for normal use as it is extremely error-prone and pretty much defaults to infinite loops, you have been warned. 🧐
|
| 29 |
+
|
| 30 |
+
<!-- description end -->
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
<!-- prompt-template start -->
|
| 34 |
+
## Prompt template: DeepSeek
|
| 35 |
+
|
| 36 |
+
```
|
| 37 |
+
You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.
|
| 38 |
+
### Instruction:
|
| 39 |
+
{prompt}
|
| 40 |
+
### Response:
|
| 41 |
+
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
<!-- prompt-template end -->
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
<!-- compatibility_gguf start -->
|
| 48 |
+
## Compatibility
|
| 49 |
+
|
| 50 |
+
These quantised GGUFv3 files are compatible with llama.cpp from February 26th 2024 onwards, as of commit [a33e6a0](https://github.com/ggerganov/llama.cpp/commit/a33e6a0d2a66104ea9a906bdbf8a94d050189d91)
|
| 51 |
+
|
| 52 |
+
They are also compatible with many third party UIs and libraries provided they are built using a recent llama.cpp.
|
| 53 |
+
|
| 54 |
+
## Explanation of quantisation methods
|
| 55 |
+
|
| 56 |
+
<details>
|
| 57 |
+
<summary>Click to see details</summary>
|
| 58 |
+
|
| 59 |
+
The new methods available are:
|
| 60 |
+
|
| 61 |
+
* GGML_TYPE_IQ1_S - 1-bit quantization in super-blocks with an importance matrix applied, effectively using 1.56 bits per weight (bpw)
|
| 62 |
+
* GGML_TYPE_IQ2_XXS - 2-bit quantization in super-blocks with an importance matrix applied, effectively using 2.06 bpw
|
| 63 |
+
* GGML_TYPE_IQ2_XS - 2-bit quantization in super-blocks with an importance matrix applied, effectively using 2.31 bpw
|
| 64 |
+
* GGML_TYPE_IQ2_S - 2-bit quantization in super-blocks with an importance matrix applied, effectively using 2.5 bpw
|
| 65 |
+
* GGML_TYPE_IQ2_M - 2-bit quantization in super-blocks with an importance matrix applied, effectively using 2.7 bpw
|
| 66 |
+
* GGML_TYPE_IQ3_XXS - 3-bit quantization in super-blocks with an importance matrix applied, effectively using 3.06 bpw
|
| 67 |
+
* GGML_TYPE_IQ3_XS - 3-bit quantization in super-blocks with an importance matrix applied, effectively using 3.3 bpw
|
| 68 |
+
* GGML_TYPE_IQ3_S - 3-bit quantization in super-blocks with an importance matrix applied, effectively using 3.44 bpw
|
| 69 |
+
* GGML_TYPE_IQ3_M - 3-bit quantization in super-blocks with an importance matrix applied, effectively using 3.66 bpw
|
| 70 |
+
|
| 71 |
+
Refer to the Provided Files table below to see what files use which methods, and how.
|
| 72 |
+
</details>
|
| 73 |
+
<!-- compatibility_gguf end -->
|
| 74 |
+
|
| 75 |
+
<!-- README_GGUF.md-provided-files start -->
|
| 76 |
+
## Provided files
|
| 77 |
+
|
| 78 |
+
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|
| 79 |
+
| ---- | ---- | ---- | ---- | ---- | ----- |
|
| 80 |
+
| [OpenCodeInterpreter-DS-6.7B.IQ1_S.gguf](https://huggingface.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF/blob/main/OpenCodeInterpreter-DS-6.7B.IQ1_S.gguf) | IQ1_S | 1 | 1.5 GB| 3.5 GB | smallest, significant quality loss - not recommended **at all** |
|
| 81 |
+
| [OpenCodeInterpreter-DS-6.7B.IQ2_XXS.gguf](https://huggingface.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF/blob/main/OpenCodeInterpreter-DS-6.7B.IQ2_XXS.gguf) | IQ2_XXS | 2 | 1.8 GB| 3.8 GB | very small, high quality loss |
|
| 82 |
+
| [OpenCodeInterpreter-DS-6.7B.IQ2_XS.gguf](https://huggingface.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF/blob/main/OpenCodeInterpreter-DS-6.7B.IQ2_XS.gguf) | IQ2_XS | 2 | 1.9 GB| 3.9 GB | very small, high quality loss |
|
| 83 |
+
| [OpenCodeInterpreter-DS-6.7B.IQ2_S.gguf](https://huggingface.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF/blob/main/OpenCodeInterpreter-DS-6.7B.IQ2_S.gguf) | IQ2_S | 2 | 2.1 GB| 4.1 GB | small, substantial quality loss |
|
| 84 |
+
| [OpenCodeInterpreter-DS-6.7B.IQ2_M.gguf](https://huggingface.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF/blob/main/OpenCodeInterpreter-DS-6.7B.IQ2_M.gguf) | IQ2_M | 2 | 2.2 GB| 4.2 GB | small, greater quality loss |
|
| 85 |
+
| [OpenCodeInterpreter-DS-6.7B.IQ3_XXS.gguf](https://huggingface.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF/blob/main/OpenCodeInterpreter-DS-6.7B.IQ3_XXS.gguf) | IQ3_XXS | 3 | 2.5 GB| 4.5 GB | very small, high quality loss |
|
| 86 |
+
| [OpenCodeInterpreter-DS-6.7B.IQ3_XS.gguf](https://huggingface.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF/blob/main/OpenCodeInterpreter-DS-6.7B.IQ3_XS.gguf) | IQ3_XS | 3 | 2.7 GB| 4.7 GB | small, substantial quality loss |
|
| 87 |
+
| [OpenCodeInterpreter-DS-6.7B.IQ3_S.gguf](https://huggingface.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF/blob/main/OpenCodeInterpreter-DS-6.7B.IQ3_S.gguf) | IQ3_S | 3 | 2.8 GB| 4.8 GB | small, greater quality loss |
|
| 88 |
+
| [OpenCodeInterpreter-DS-6.7B.IQ3_M.gguf](https://huggingface.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF/blob/main/OpenCodeInterpreter-DS-6.7B.IQ3_M.gguf) | IQ3_M | 3 | 3.0 GB| 5.0 GB | medium, balanced quality - recommended |
|
| 89 |
+
|
| 90 |
+
Generated importance matrix file: [OpenCodeInterpreter-DS-6.7B.imatrix.dat](https://huggingface.co/CISCai/OpenCodeInterpreter-DS-6.7B-SOTA-GGUF/blob/main/OpenCodeInterpreter-DS-6.7B.imatrix.dat)
|
| 91 |
+
|
| 92 |
+
**Note**: the above RAM figures assume no GPU offloading with 4K context. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
|
| 93 |
+
|
| 94 |
+
<!-- README_GGUF.md-provided-files end -->
|
| 95 |
+
|
| 96 |
+
<!-- README_GGUF.md-how-to-run start -->
|
| 97 |
+
## Example `llama.cpp` command
|
| 98 |
+
|
| 99 |
+
Make sure you are using `llama.cpp` from commit [a33e6a0](https://github.com/ggerganov/llama.cpp/commit/a33e6a0d2a66104ea9a906bdbf8a94d050189d91) or later.
|
| 100 |
+
|
| 101 |
+
```shell
|
| 102 |
+
./main -ngl 33 -m OpenCodeInterpreter-DS-6.7B.IQ3_M.gguf --color -c 16384 --temp 0.7 --repeat_penalty 1.1 -n -1 -p "You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer.\n### Instruction:\n{prompt}\n### Response:"
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
Change `-ngl 33` to the number of layers to offload to GPU. Remove it if you don't have GPU acceleration.
|
| 106 |
+
|
| 107 |
+
Change `-c 16384` to the desired sequence length.
|
| 108 |
+
|
| 109 |
+
If you want to have a chat-style conversation, replace the `-p <PROMPT>` argument with `-i -ins`
|
| 110 |
+
|
| 111 |
+
For 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)
|
| 112 |
+
|
| 113 |
+
<!-- README_GGUF.md-how-to-run end -->
|
| 114 |
+
|
| 115 |
+
<!-- original-model-card start -->
|
| 116 |
+
# Original model card: Multimodal Art Projection's OpenCodeInterpreter DS 6.7B
|
| 117 |
+
|
| 118 |
+
<h1 align="center"> OpenCodeInterpreter: Integrating Code Generation with Execution and Refinement<h1>
|
| 119 |
+
|
| 120 |
+
<p align="center">
|
| 121 |
+
<img width="1000px" alt="OpenCodeInterpreter" src="https://opencodeinterpreter.github.io/static/images/figure1.png">
|
| 122 |
+
</p>
|
| 123 |
+
<p align="center">
|
| 124 |
+
<a href="https://opencodeinterpreter.github.io/">[🏠Homepage]</a>
|
| 125 |
+
|
|
| 126 |
+
<a href="https://github.com/OpenCodeInterpreter/OpenCodeInterpreter/">[🛠️Code]</a>
|
| 127 |
+
</p>
|
| 128 |
+
<hr>
|
| 129 |
+
|
| 130 |
+
## Introduction
|
| 131 |
+
OpenCodeInterpreter is a family of open-source code generation systems designed to bridge the gap between large language models and advanced proprietary systems like the GPT-4 Code Interpreter. It significantly advances code generation capabilities by integrating execution and iterative refinement functionalities.
|
| 132 |
+
|
| 133 |
+
For further information and related work, refer to our paper: ["OpenCodeInterpreter: A System for Enhanced Code Generation and Execution"](https://arxiv.org/abs/2402.14658) available on arXiv.
|
| 134 |
+
|
| 135 |
+
## Model Information
|
| 136 |
+
This model is based on [deepseek-coder-6.7b-base](https://huggingface.co/deepseek-ai/deepseek-coder-6.7b-base).
|
| 137 |
+
|
| 138 |
+
## Model Usage
|
| 139 |
+
### Inference
|
| 140 |
+
|
| 141 |
+
```python
|
| 142 |
+
import torch
|
| 143 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 144 |
+
model_path="m-a-p/OpenCodeInterpreter-DS-6.7B"
|
| 145 |
+
|
| 146 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
| 147 |
+
model = AutoModelForCausalLM.from_pretrained(
|
| 148 |
+
model_path,
|
| 149 |
+
torch_dtype=torch.bfloat16,
|
| 150 |
+
device_map="auto",
|
| 151 |
+
)
|
| 152 |
+
model.eval()
|
| 153 |
+
|
| 154 |
+
prompt = "Write a function to find the shared elements from the given two lists."
|
| 155 |
+
inputs = tokenizer.apply_chat_template(
|
| 156 |
+
[{'role': 'user', 'content': prompt }],
|
| 157 |
+
return_tensors="pt"
|
| 158 |
+
).to(model.device)
|
| 159 |
+
outputs = model.generate(
|
| 160 |
+
inputs,
|
| 161 |
+
max_new_tokens=1024,
|
| 162 |
+
do_sample=False,
|
| 163 |
+
pad_token_id=tokenizer.eos_token_id,
|
| 164 |
+
eos_token_id=tokenizer.eos_token_id,
|
| 165 |
+
)
|
| 166 |
+
print(tokenizer.decode(outputs[0][len(inputs[0]):], skip_special_tokens=True))
|
| 167 |
+
```
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
## Contact
|
| 171 |
+
|
| 172 |
+
If you have any inquiries, please feel free to raise an issue or reach out to us via email at: xiangyue.work@gmail.com, zhengtianyu0428@gmail.com.
|
| 173 |
+
We're here to assist you!"
|
| 174 |
+
|
| 175 |
+
<!-- original-model-card end -->
|
| 176 |
+
|