Instructions to use cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF", filename="sfr-iterative-dpo-llama-3-8b-r.Q8_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-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 cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-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 cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF:Q8_0
Use Docker
docker model run hf.co/cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF:Q8_0
- LM Studio
- Jan
- Ollama
How to use cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF with Ollama:
ollama run hf.co/cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF:Q8_0
- Unsloth Studio new
How to use cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-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 cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-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 cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-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 cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF to start chatting
- Docker Model Runner
How to use cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF with Docker Model Runner:
docker model run hf.co/cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF:Q8_0
- Lemonade
How to use cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF:Q8_0
Run and chat with the model
lemonade run user.SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF-Q8_0
List all available models
lemonade list
Model
[cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q4_K_M-GGUF] was converted to GGUF format from Salesforce/SFR-Iterative-DPO-LLaMA-3-8B-R using llama.cpp via the ggml.ai's GGUF-my-repo space. Refer to the original model card for more details on the model.
Update: Link to the original model card is no longer available. SFR-Iterative-DPO-LLaMA-3-8B-R model appears to be taken down from HF, see reddit1, reddit2 for more details.
Use with llama.cpp
Clone and Build llama.cpp
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
mkdir build
cd build
cmake ..
make
Login to Hugging Face
pip install huggingface_hub
huggingface-cli login
Download the model using Hugging Face CLI
huggingface-cli download cminja/SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF --repo-type model
Usage
Run the model
./bin/main --model ~/.cache/huggingface/hub/models--cminja--SFR-Iterative-DPO-LLaMA-3-8B-R-Q8_0-GGUF/snapshots/2a2dadb2c78cc3d59e8ed4cd7d6b4f635bcd3f12/sfr-iterative-dpo-llama-3-8b-r.Q8_0.gguf -p "Few interesting nuances about WoW leveling are"
- Downloads last month
- -
8-bit