Instructions to use Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-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 Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M # Run inference directly in the terminal: llama cli -hf Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M # Run inference directly in the terminal: llama cli -hf Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M
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 Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M
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 Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M
Use Docker
docker model run hf.co/Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-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": "Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M
- SGLang
How to use Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-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 "Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-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": "Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-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 "Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-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": "Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix with Ollama:
ollama run hf.co/Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M
- Unsloth Studio
How to use Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix 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 Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix 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 Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix to start chatting
- Docker Model Runner
How to use Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix with Docker Model Runner:
docker model run hf.co/Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M
- Lemonade
How to use Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Lewdiculous/Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix:Q4_K_M
Run and chat with the model
lemonade run user.Loyal-Toppy-Bruins-Maid-7B-DARE-GGUF-Imatrix-Q4_K_M
List all available models
lemonade list
- Atomic Chat
GGUF-Imatrix quantizations for SanjiWatsuki/Loyal-Toppy-Bruins-Maid-7B-DARE.
What does "Imatrix" mean?
It stands for Importance Matrix, a technique used to improve the quality of quantized models.
The Imatrix is calculated based on calibration data, and it helps determine the importance of different model activations during the quantization process. The idea is to preserve the most important information during quantization, which can help reduce the loss of model performance.
One of the benefits of using an Imatrix is that it can lead to better model performance, especially when the calibration data is diverse.
For --imatrix data, imatrix-Loyal-Toppy-Bruins-Maid-7B-DARE-F16.dat was used.
Base⇢ GGUF(F16)⇢ Imatrix-Data(F16)⇢ GGUF(Imatrix-Quants)
The new IQ3_S quant-option has shown to be better than the old Q3_K_S, so I added that instead of the later. Only supported in koboldcpp-1.59.1 or higher.
If you want any specific quantization to be added, feel free to ask.
All credits belong to the creator.
Original model information:
Description
This repository hosts FP16 files for Loyal-Toppy-Bruins-Maid-7B, a 7B model aimed at having engaging RP with solid character card adherence and being a smart cookie at the same time.
Its foundation is Starling-LM-7B-alpha, notable for its performance in the LMSYS Chatbot Arena, even surpassing GPT-3.5-Turbo-1106. The model incorporates rwitz/go-bruins-v2, a Q-bert/MetaMath-Cybertron-Starling derivative with Alpaca RP data tuning.
The other foundational model is chargoddard/loyal-piano-m7, chosen for its strong RP performance and Alpaca format training, with a diverse dataset including PIPPA, rpbuild, and LimaRP.
Undi95/Toppy-M-7B, known for its creativity, brings in useful RP data from various sources. It ranks first among 7B models on OpenRouter for a good reason.
NeverSleep/Noromaid-7b-v0.1.1, a Mistral finetune with unique RP data not present in other models, was also added for bringing in a unique RP dataset and being a well-regarded RP model.
The models were merged using the DARE ties method, with a targeted 1.2 absolute weight and high density (0.5-0.6), as discussed in the MergeKit GitHub Repo.
Currently, this model ranks at the top of my personal RP unit test benchmark and scored a very solid 20 on lilblam's LLM Logic Test. My first impressions of it for RPing are very good but, admittedly, this model came out of the oven today so I haven't played it with it too much 😊
The sauce
models: # Top-Loyal-Bruins-Maid-DARE-7B_v2
- model: mistralai/Mistral-7B-v0.1
# no parameters necessary for base model
- model: rwitz/go-bruins-v2 # MetamathCybertronStarling base
parameters:
weight: 0.5
density: 0.6
- model: chargoddard/loyal-piano-m7 # Pull in some PIPPA/LimaRP/Orca/rpguild
parameters:
weight: 0.5
density: 0.6
- model: Undi95/Toppy-M-7B
parameters:
weight: 0.1
density: 0.5
- model: NeverSleep/Noromaid-7b-v0.1.1
parameters:
weight: 0.1
density: 0.5
merge_method: dare_ties
base_model: mistralai/Mistral-7B-v0.1
parameters:
normalize: false
int8_mask: true
dtype: bfloat16
Prompt template: Custom format, or Alpaca
Custom format:
I found the best SillyTavern results from using the Noromaid template.
SillyTavern config files: Context, Instruct.
Otherwise, I tried to ensure that all of the underlying merged models were Alpaca favored.
Alpaca:
Below is an instruction that describes a task. Write a response that appropriately completes the request.
### Instruction:
{prompt}
### Response:
- Downloads last month
- 432
3-bit
4-bit
5-bit
6-bit
8-bit
