Instructions to use Hansda/GLiNER2.5-multi-Decide-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER2
How to use Hansda/GLiNER2.5-multi-Decide-GGUF with GLiNER2:
from gliner2 import AutoExtractor extractor = AutoExtractor.from_pretrained("Hansda/GLiNER2.5-multi-Decide-GGUF") # Extract entities text = "Apple CEO Tim Cook announced iPhone 15 in Cupertino yesterday." result = extractor.extract_entities(text, ["company", "person", "product", "location"]) print(result) - Notebooks
- Google Colab
- Kaggle
Download gliner-quant-loader.patch from Hansda/GLiNER2.5-multi-Decide-GGUF: direct link, hf CLI and curl.
- Browser
- Download file 802 Bytes
-
https://huggingface.co/Hansda/GLiNER2.5-multi-Decide-GGUF/resolve/main/gliner-quant-loader.patch
- Command line
-
hf download hf://Hansda/GLiNER2.5-multi-Decide-GGUF/gliner-quant-loader.patch
-
curl -L -o gliner-quant-loader.patch https://huggingface.co/Hansda/GLiNER2.5-multi-Decide-GGUF/resolve/main/gliner-quant-loader.patch
802 Bytes
| diff --git a/src/gguf.cpp b/src/gguf.cpp | |
| index 4f3e0f4..f9293e0 100644 | |
| --- a/src/gguf.cpp | |
| +++ b/src/gguf.cpp | |
| ggml_tensor * GgufFile::tensor(ggml_context * ctx, const std::string & name, | |
| const int64_t id = gguf_find_tensor(ctx_, stored.c_str()); | |
| if (id < 0) throw std::runtime_error("Missing tensor: " + name); | |
| const ggml_type type = gguf_get_tensor_type(ctx_, id); | |
| - if (type != GGML_TYPE_F32 && type != GGML_TYPE_F16) { | |
| + if (type != GGML_TYPE_F32 && type != GGML_TYPE_F16 && | |
| + type != GGML_TYPE_Q2_K && type != GGML_TYPE_Q3_K && type != GGML_TYPE_Q4_K && | |
| + type != GGML_TYPE_Q6_K && type != GGML_TYPE_Q8_0) { | |
| throw std::runtime_error("Unsupported tensor type: " + name); | |
| } | |
| const int64_t * dims = gguf_get_tensor_ne(ctx_, id); | |