Run this model with HF Jobs
Run mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF", device_map="auto") - sentence-transformers
How to use mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF with sentence-transformers:
from sentence_transformers import SparseEncoder model = SparseEncoder("mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF") queries = ["Which planet is known as the Red Planet?"] documents = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", ] query_embeddings = model.encode_query(queries) document_embeddings = model.encode_document(documents) similarities = model.similarity(query_embeddings, document_embeddings) print(similarities) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-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 mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF:Q4_K_M --embeddings
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible embeddings server: llama serve -hf mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF:Q4_K_M --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 mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF:Q4_K_M --embeddings
- Llama new
- LM Studio
- Jan
- Ollama
How to use mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF with Ollama:
ollama run hf.co/mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/opensearch-neural-sparse-encoding-doc-v2-mini-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.opensearch-neural-sparse-encoding-doc-v2-mini-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat