File size: 3,575 Bytes
dd38d87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f3dbf62
2d170de
3fa9519
13eee35
dd38d87
 
3fa9519
dd38d87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
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)