Instructions to use Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF") sentences = [ "A dog is in the water.", "The woman is wearing green.", "The dog is rolling around in the grass.", "A brown dog swims through water outdoors with a tennis ball in its mouth." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama cli -hf Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0
Use Docker
docker model run hf.co/Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0
- LM Studio
- Jan
- Ollama
How to use Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF with Ollama:
ollama run hf.co/Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0
- Unsloth Studio
How to use Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF to start chatting
- Docker Model Runner
How to use Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF with Docker Model Runner:
docker model run hf.co/Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0
- Lemonade
How to use Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF:Q8_0
Run and chat with the model
lemonade run user.distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF-Q8_0
List all available models
lemonade list
- Atomic Chat
language:
- en
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:101762
- loss:TripletLoss
- llama-cpp
- gguf-my-repo
base_model: ravi259/distilroberta-base-sentence-transformer_finetuned
widget:
- source_sentence: A dog is in the water.
sentences:
- The woman is wearing green.
- The dog is rolling around in the grass.
- >-
A brown dog swims through water outdoors with a tennis ball in its
mouth.
- source_sentence: A dog is swimming.
sentences:
- a black dog swimming in the water with a tennis ball in his mouth
- A dog with yellow fur swims, neck deep, in water.
- A brown dog running through a large orange tube.
- source_sentence: A dog is swimming.
sentences:
- A dog with golden hair swims through water.
- A golden haired dog is lying in a boat that is traveling on a lake.
- A dog with golden hair swims through water.
- source_sentence: A dog is swimming.
sentences:
- A tan dog splashes as he swims through the water.
- A man and young boy asleep in a chair.
- A dog in a harness chasing a red ball.
- source_sentence: A dog is in the water.
sentences:
- A big brown dog jumps into a swimming pool on the backyard.
- Wet brown dog swims towards camera.
- The dog is rolling around in the grass.
datasets:
- embedding-data/QQP_triplets
- sentence-transformers/all-nli
pipeline_tag: sentence-similarity
library_name: sentence-transformers
metrics:
- cosine_accuracy
model-index:
- name: SentenceTransformer based on distilbert/distilroberta-base
results:
- task:
type: triplet
name: Triplet
dataset:
name: all nli dev
type: all-nli-dev
metrics:
- type: cosine_accuracy
value: 0.9556500315666199
name: Cosine Accuracy
- task:
type: triplet
name: Triplet
dataset:
name: all nli test
type: all-nli-test
metrics:
- type: cosine_accuracy
value: 0.9048267602920532
name: Cosine Accuracy
Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF
This model was converted to GGUF format from ravi259/distilroberta-base-sentence-transformer_finetuned using llama.cpp via the ggml.ai's GGUF-my-repo space.
Refer to the original model card for more details on the model.
Use with llama.cpp
Install llama.cpp through brew (works on Mac and Linux)
brew install llama.cpp
Invoke the llama.cpp server or the CLI.
CLI:
llama-cli --hf-repo Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF --hf-file distilroberta-base-sentence-transformer_finetuned-q8_0.gguf -p "The meaning to life and the universe is"
Server:
llama-server --hf-repo Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF --hf-file distilroberta-base-sentence-transformer_finetuned-q8_0.gguf -c 2048
Note: You can also use this checkpoint directly through the usage steps listed in the Llama.cpp repo as well.
Step 1: Clone llama.cpp from GitHub.
git clone https://github.com/ggerganov/llama.cpp
Step 2: Move into the llama.cpp folder and build it with LLAMA_CURL=1 flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
cd llama.cpp && LLAMA_CURL=1 make
Step 3: Run inference through the main binary.
./llama-cli --hf-repo Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF --hf-file distilroberta-base-sentence-transformer_finetuned-q8_0.gguf -p "The meaning to life and the universe is"
or
./llama-server --hf-repo Sleem247/distilroberta-base-sentence-transformer_finetuned-Q8_0-GGUF --hf-file distilroberta-base-sentence-transformer_finetuned-q8_0.gguf -c 2048