Instructions to use ChrisGVE/codebert-base-Q8_0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ChrisGVE/codebert-base-Q8_0-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible embeddings server: llama serve -hf ChrisGVE/codebert-base-Q8_0-GGUF:Q8_0 --embeddings
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible embeddings server: llama serve -hf ChrisGVE/codebert-base-Q8_0-GGUF:Q8_0 --embeddings
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 embeddings server: ./build/bin/llama serve -hf ChrisGVE/codebert-base-Q8_0-GGUF:Q8_0 --embeddings
- Llama new
- LM Studio
- Jan
- Ollama
How to use ChrisGVE/codebert-base-Q8_0-GGUF with Ollama:
ollama run hf.co/ChrisGVE/codebert-base-Q8_0-GGUF:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use ChrisGVE/codebert-base-Q8_0-GGUF with Docker Model Runner:
docker model run hf.co/ChrisGVE/codebert-base-Q8_0-GGUF:Q8_0
- Lemonade
How to use ChrisGVE/codebert-base-Q8_0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ChrisGVE/codebert-base-Q8_0-GGUF:Q8_0
Run and chat with the model
lemonade run user.codebert-base-Q8_0-GGUF-Q8_0
List all available models
lemonade list
- Atomic Chat
Add Q8_0 GGUF + model card
Browse files- .gitattributes +1 -0
- README.md +50 -0
- codebert-base-Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ 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 |
+
codebert-base-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
base_model: microsoft/codebert-base
|
| 4 |
+
base_model_relation: quantized
|
| 5 |
+
library_name: gguf
|
| 6 |
+
pipeline_tag: feature-extraction
|
| 7 |
+
tags:
|
| 8 |
+
- gguf
|
| 9 |
+
- embeddings
|
| 10 |
+
- code
|
| 11 |
+
- llama.cpp
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# CodeBERT base — GGUF Q8_0
|
| 15 |
+
|
| 16 |
+
[`microsoft/codebert-base`](https://huggingface.co/microsoft/codebert-base) converted to GGUF at Q8_0 for
|
| 17 |
+
llama.cpp's `llama-server --embeddings`.
|
| 18 |
+
|
| 19 |
+
| | |
|
| 20 |
+
|---|---|
|
| 21 |
+
| File | `codebert-base-Q8_0.gguf` (135 MB) |
|
| 22 |
+
| SHA-256 | `01a85fb726bf4dc063aaac34b33fde08f991b96b3f9f76ff10e28fa2269df5ea` |
|
| 23 |
+
| Source revision | `99d7ef814601faaf7bdc2f774ffa7dade4f4d828` (safetensors) |
|
| 24 |
+
| Context | 512 tokens |
|
| 25 |
+
| Pooling | mean (stored in the file, no `--pooling` flag needed) |
|
| 26 |
+
| Dimensions | 768 |
|
| 27 |
+
|
| 28 |
+
```sh
|
| 29 |
+
llama-server -m codebert-base-Q8_0.gguf --embeddings --port 8080
|
| 30 |
+
curl -s localhost:8080/v1/embeddings -H 'Content-Type: application/json' -d '{"input":["def f(): pass"]}'
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
## How it was converted
|
| 34 |
+
|
| 35 |
+
`convert_hf_to_gguf.py` (llama.cpp, 2026-10-01) with `--outtype q8_0`, after two additions to the source
|
| 36 |
+
directory:
|
| 37 |
+
|
| 38 |
+
- a `tokenizer.json`, written by `RobertaTokenizerFast.save_pretrained`. The upstream repo ships only
|
| 39 |
+
`vocab.json` + `merges.txt`, and without `tokenizer.json` the converter falls back to a WordPiece
|
| 40 |
+
vocabulary and tokenizes code wrongly;
|
| 41 |
+
- a sentence-transformers `modules.json` + `1_Pooling/config.json` declaring mean pooling, so the pooling
|
| 42 |
+
type is written into the GGUF.
|
| 43 |
+
|
| 44 |
+
## Verification
|
| 45 |
+
|
| 46 |
+
40 random code/console/output blocks (first 600 characters), embedded by this file on llama-server (CPU) and
|
| 47 |
+
by the original model in PyTorch fp32 with masked mean pooling over the last hidden state. Token ids are
|
| 48 |
+
identical; cosine similarity min 0.9998, median 0.99994.
|
| 49 |
+
|
| 50 |
+
The weights and their licence (MIT) are Microsoft's; see the [CodeBERT paper](https://arxiv.org/abs/2002.08155).
|
codebert-base-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:01a85fb726bf4dc063aaac34b33fde08f991b96b3f9f76ff10e28fa2269df5ea
|
| 3 |
+
size 135099360
|