Instructions to use tensorblock/CodeV-CL-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/CodeV-CL-7B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/CodeV-CL-7B-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/CodeV-CL-7B-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/CodeV-CL-7B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/CodeV-CL-7B-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/CodeV-CL-7B-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/CodeV-CL-7B-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/CodeV-CL-7B-GGUF:Q2_K
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf tensorblock/CodeV-CL-7B-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf tensorblock/CodeV-CL-7B-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/CodeV-CL-7B-GGUF:Q2_K
- Llama new
- LM Studio
- Jan
- vLLM
How to use tensorblock/CodeV-CL-7B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/CodeV-CL-7B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/CodeV-CL-7B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/CodeV-CL-7B-GGUF:Q2_K
- SGLang
How to use tensorblock/CodeV-CL-7B-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tensorblock/CodeV-CL-7B-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/CodeV-CL-7B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tensorblock/CodeV-CL-7B-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/CodeV-CL-7B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use tensorblock/CodeV-CL-7B-GGUF with Ollama:
ollama run hf.co/tensorblock/CodeV-CL-7B-GGUF:Q2_K
- Unsloth Desktop
- Docker Model Runner
How to use tensorblock/CodeV-CL-7B-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/CodeV-CL-7B-GGUF:Q2_K
- Lemonade
How to use tensorblock/CodeV-CL-7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/CodeV-CL-7B-GGUF:Q2_K
Run and chat with the model
lemonade run user.CodeV-CL-7B-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -26,8 +26,16 @@ This repo contains GGUF format model files for [yang-z/CodeV-CL-7B](https://hugg
|
|
| 26 |
|
| 27 |
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4011](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
## Prompt template
|
| 30 |
|
|
|
|
| 31 |
```
|
| 32 |
|
| 33 |
```
|
|
@@ -36,18 +44,18 @@ The files were quantized using machines provided by [TensorBlock](https://tensor
|
|
| 36 |
|
| 37 |
| Filename | Quant type | File Size | Description |
|
| 38 |
| -------- | ---------- | --------- | ----------- |
|
| 39 |
-
| [CodeV-CL-7B-Q2_K.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 40 |
-
| [CodeV-CL-7B-Q3_K_S.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 41 |
-
| [CodeV-CL-7B-Q3_K_M.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 42 |
-
| [CodeV-CL-7B-Q3_K_L.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 43 |
-
| [CodeV-CL-7B-Q4_0.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 44 |
-
| [CodeV-CL-7B-Q4_K_S.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 45 |
-
| [CodeV-CL-7B-Q4_K_M.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 46 |
-
| [CodeV-CL-7B-Q5_0.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 47 |
-
| [CodeV-CL-7B-Q5_K_S.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 48 |
-
| [CodeV-CL-7B-Q5_K_M.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 49 |
-
| [CodeV-CL-7B-Q6_K.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 50 |
-
| [CodeV-CL-7B-Q8_0.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/
|
| 51 |
|
| 52 |
|
| 53 |
## Downloading instruction
|
|
|
|
| 26 |
|
| 27 |
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4011](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
|
| 28 |
|
| 29 |
+
|
| 30 |
+
<div style="text-align: left; margin: 20px 0;">
|
| 31 |
+
<a href="https://tensorblock.co/waitlist/client" style="display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold;">
|
| 32 |
+
Run them on the TensorBlock client using your local machine ↗
|
| 33 |
+
</a>
|
| 34 |
+
</div>
|
| 35 |
+
|
| 36 |
## Prompt template
|
| 37 |
|
| 38 |
+
|
| 39 |
```
|
| 40 |
|
| 41 |
```
|
|
|
|
| 44 |
|
| 45 |
| Filename | Quant type | File Size | Description |
|
| 46 |
| -------- | ---------- | --------- | ----------- |
|
| 47 |
+
| [CodeV-CL-7B-Q2_K.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q2_K.gguf) | Q2_K | 2.359 GB | smallest, significant quality loss - not recommended for most purposes |
|
| 48 |
+
| [CodeV-CL-7B-Q3_K_S.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q3_K_S.gguf) | Q3_K_S | 2.746 GB | very small, high quality loss |
|
| 49 |
+
| [CodeV-CL-7B-Q3_K_M.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q3_K_M.gguf) | Q3_K_M | 3.072 GB | very small, high quality loss |
|
| 50 |
+
| [CodeV-CL-7B-Q3_K_L.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q3_K_L.gguf) | Q3_K_L | 3.350 GB | small, substantial quality loss |
|
| 51 |
+
| [CodeV-CL-7B-Q4_0.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q4_0.gguf) | Q4_0 | 3.563 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
|
| 52 |
+
| [CodeV-CL-7B-Q4_K_S.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q4_K_S.gguf) | Q4_K_S | 3.592 GB | small, greater quality loss |
|
| 53 |
+
| [CodeV-CL-7B-Q4_K_M.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q4_K_M.gguf) | Q4_K_M | 3.801 GB | medium, balanced quality - recommended |
|
| 54 |
+
| [CodeV-CL-7B-Q5_0.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q5_0.gguf) | Q5_0 | 4.332 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
|
| 55 |
+
| [CodeV-CL-7B-Q5_K_S.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q5_K_S.gguf) | Q5_K_S | 4.332 GB | large, low quality loss - recommended |
|
| 56 |
+
| [CodeV-CL-7B-Q5_K_M.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q5_K_M.gguf) | Q5_K_M | 4.455 GB | large, very low quality loss - recommended |
|
| 57 |
+
| [CodeV-CL-7B-Q6_K.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q6_K.gguf) | Q6_K | 5.150 GB | very large, extremely low quality loss |
|
| 58 |
+
| [CodeV-CL-7B-Q8_0.gguf](https://huggingface.co/tensorblock/CodeV-CL-7B-GGUF/blob/main/CodeV-CL-7B-Q8_0.gguf) | Q8_0 | 6.669 GB | very large, extremely low quality loss - not recommended |
|
| 59 |
|
| 60 |
|
| 61 |
## Downloading instruction
|