Hansda's picture
Publish EdgeCoder-Multilingual-61M-Q2_K.gguf
3fa9519 verified
|
Raw History Blame Contribute Delete
3.58 kB
---
license: apache-2.0
base_model: knowledgator/EdgeCoder-Multilingual-61M
base_model_relation: quantized
pipeline_tag: feature-extraction
language:
- multilingual
- en
- ru
- zh
- es
- de
- fr
- ja
- it
- pt
- pl
- nl
- vi
- id
- ar
- cs
- tr
- hu
- sv
- ro
- uk
- ko
- el
- 'no'
- da
- fi
- sk
- bg
- hi
- hr
- bs
- lt
- sl
- he
- bn
- sr
- lv
- et
- ms
- ur
- mk
- la
- be
- mt
- sw
- ga
- yi
tags:
- gguf
- deberta-v2
- encoder
---
# EdgeCoder-Multilingual-61M GGUF
GGUF conversion of Knowledgator Engineering’s multilingual text encoder with 16 DeBERTa-v2 layers and 384-dimensional token features. [Pinned source checkpoint](https://huggingface.co/knowledgator/EdgeCoder-Multilingual-61M/tree/d2b4066c768e16b763c0693f6ad474c520ce64e3)
## Files
<!-- GGUF_FILES:START -->
| File | Component | Quantization | Size | Status |
| --- | --- | --- | --- | --- |
| [EdgeCoder-Multilingual-61M-Q4_K_S.gguf](./EdgeCoder-Multilingual-61M-Q4_K_S.gguf) | text encoder checkpoint | Q4_K_S | 81,203,328 bytes | Available |
| [EdgeCoder-Multilingual-61M-Q6_K.gguf](./EdgeCoder-Multilingual-61M-Q6_K.gguf) | text encoder checkpoint | Q6_K | 117,583,872 bytes | Available |
| [EdgeCoder-Multilingual-61M-Q3_K_S.gguf](./EdgeCoder-Multilingual-61M-Q3_K_S.gguf) | text encoder checkpoint | Q3_K_S | 62,461,920 bytes | Available |
| [EdgeCoder-Multilingual-61M-Q2_K.gguf](./EdgeCoder-Multilingual-61M-Q2_K.gguf) | text encoder checkpoint | Q2_K | 52,672,896 bytes | Available |
| [EdgeCoder-Multilingual-61M-Q8_0.gguf](./EdgeCoder-Multilingual-61M-Q8_0.gguf) | text encoder checkpoint | Q8_0 | 151,759,136 bytes | Available |
<!-- GGUF_FILES:END -->
Q8_0 uses the highest bit depth of the five builds. The `Q3_K_S` and `Q4_K_S` builds use a single K-quant block format on the tensors they quantize. The mixed `Q2_K` build uses `Q2_K` blocks for the vocabulary tables and `Q3_K` blocks for the other eligible matrices. Tensors outside the selected matrix layouts retain their source BF16 values. The bundled loader restores the original tensor shapes.
## Run locally
Install `torch`, `transformers==5.17.0`, `gguf==0.19.0`, `sentencepiece`, and `huggingface_hub`. The bundled Python loader expands the GGUF blocks for Transformers inference.
```python
from pathlib import Path
import sys
import torch
from huggingface_hub import snapshot_download
filename = "EdgeCoder-Multilingual-61M-Q8_0.gguf"
folder = Path(snapshot_download(
"Hansda/EdgeCoder-Multilingual-61M-GGUF",
allow_patterns=[
filename, "edgecoder_gguf.py", "config.json", "spm.model",
"tokenizer_config.json", "tokenizer.json.gz",
"special_tokens_map.json", "added_tokens.json",
],
))
sys.path.insert(0, str(folder))
from edgecoder_gguf import load_encoder, load_tokenizer
tokenizer = load_tokenizer(folder)
encoder = load_encoder(folder / filename)
inputs = tokenizer("नमस्ते दुनिया", return_tensors="pt")
with torch.inference_mode():
features = encoder(**inputs).last_hidden_state
print(features.shape)
```
The checkpoint also includes the generator and pretraining heads. The GGUF keeps all of those tensors, and the included loader returns the discriminator encoder for feature extraction.
## Validation
Each build passed source tensor coverage, tokenizer parity, and CPU inference checks against the pinned source encoder. The runtime uses the original tokenizer files and DeBERTa-v2 configuration. See `model-manifest.json` for the file sizes and SHA-256 hashes.
## License
Apache-2.0. Credit to Knowledgator Engineering. [License](LICENSE)