EdgeCoder-31M GGUF

GGUF conversion of Knowledgator Engineering’s English text encoder with 8 DeBERTa-v2 layers and 384-dimensional token features. Pinned source checkpoint

Files

File Component Quantization Size Status
EdgeCoder-31M-Q4_K_S.gguf text encoder checkpoint Q4_K_S 17,536,288 bytes Available
EdgeCoder-31M-Q6_K.gguf text encoder checkpoint Q6_K 25,527,168 bytes Available
EdgeCoder-31M-Q3_K_S.gguf text encoder checkpoint Q3_K_S 13,419,776 bytes Available
EdgeCoder-31M-Q2_K.gguf text encoder checkpoint Q2_K 10,810,976 bytes Available
EdgeCoder-31M-Q8_0.gguf text encoder checkpoint Q8_0 33,033,728 bytes Available

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 gives eligible matrices in the final third of encoder layers Q3_K storage. 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.

from pathlib import Path
import sys

import torch
from huggingface_hub import snapshot_download

filename = "EdgeCoder-31M-Q8_0.gguf"
folder = Path(snapshot_download(
    "Hansda/EdgeCoder-31M-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("A compact encoder produces contextual token features.", return_tensors="pt")
with torch.inference_mode():
    features = encoder(**inputs).last_hidden_state
print(features.shape)

The checkpoint contains the trained encoder for feature extraction and downstream fine-tuning.

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

Downloads last month
124
GGUF
Model size
31M params
Architecture
deberta-v2
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

6-bit

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Hansda/EdgeCoder-31M-GGUF

Quantized
(1)
this model