Instructions to use Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix") model = AutoModelForCausalLM.from_pretrained("Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix 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 Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix:Q5_K_S # Run inference directly in the terminal: llama cli -hf Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix:Q5_K_S
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix:Q5_K_S # Run inference directly in the terminal: llama cli -hf Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix:Q5_K_S
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 server with a web UI: ./build/bin/llama serve -hf Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix:Q5_K_S # Run inference directly in the terminal: ./build/bin/llama cli -hf Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix:Q5_K_S
Use Docker
docker model run hf.co/Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix:Q5_K_S
- Llama new
- LM Studio
- Jan
- vLLM
How to use Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix:Q5_K_S
- SGLang
How to use Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix with Ollama:
ollama run hf.co/Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix:Q5_K_S
- Unsloth Desktop
- Docker Model Runner
How to use Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix with Docker Model Runner:
docker model run hf.co/Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix:Q5_K_S
- Lemonade
How to use Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Clevyby/DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix:Q5_K_S
Run and chat with the model
lemonade run user.DarkSapling-v2.0-7B-Q5_K_S-GGUF-iMatrix-Q5_K_S
List all available models
lemonade list
- Atomic Chat
Note:
This repo hosts only a Q5_K_S iMatrix of Dark Sapling v2.0 7B. GGUF quant is from Lewdiculous/DarkSapling-7B-v2.0-GGUF-IQ-Imatrix. The additional files in this GGUF repo is for personal usage using Text Gen Webui with llamacpp_hf.
- Downloads last month
- 356
5-bit