The Mayonnaise
Collection
A collection of 7B models made with mergekit. β’ 6 items β’ Updated
How to use kaitchup/Mayonnaise-4in1-02 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="kaitchup/Mayonnaise-4in1-02") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("kaitchup/Mayonnaise-4in1-02")
model = AutoModelForCausalLM.from_pretrained("kaitchup/Mayonnaise-4in1-02", device_map="auto")How to use kaitchup/Mayonnaise-4in1-02 with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf kaitchup/Mayonnaise-4in1-02:Q4_0 # Run inference directly in the terminal: llama cli -hf kaitchup/Mayonnaise-4in1-02:Q4_0
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf kaitchup/Mayonnaise-4in1-02:Q4_0 # Run inference directly in the terminal: llama cli -hf kaitchup/Mayonnaise-4in1-02:Q4_0
# 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 kaitchup/Mayonnaise-4in1-02:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf kaitchup/Mayonnaise-4in1-02:Q4_0
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 kaitchup/Mayonnaise-4in1-02:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf kaitchup/Mayonnaise-4in1-02:Q4_0
docker model run hf.co/kaitchup/Mayonnaise-4in1-02:Q4_0
How to use kaitchup/Mayonnaise-4in1-02 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "kaitchup/Mayonnaise-4in1-02"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "kaitchup/Mayonnaise-4in1-02",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/kaitchup/Mayonnaise-4in1-02:Q4_0
How to use kaitchup/Mayonnaise-4in1-02 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "kaitchup/Mayonnaise-4in1-02" \
--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": "kaitchup/Mayonnaise-4in1-02",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "kaitchup/Mayonnaise-4in1-02" \
--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": "kaitchup/Mayonnaise-4in1-02",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use kaitchup/Mayonnaise-4in1-02 with Ollama:
ollama run hf.co/kaitchup/Mayonnaise-4in1-02:Q4_0
How to use kaitchup/Mayonnaise-4in1-02 with Unsloth Studio:
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 kaitchup/Mayonnaise-4in1-02 to start chatting
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 kaitchup/Mayonnaise-4in1-02 to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for kaitchup/Mayonnaise-4in1-02 to start chatting
How to use kaitchup/Mayonnaise-4in1-02 with Docker Model Runner:
docker model run hf.co/kaitchup/Mayonnaise-4in1-02:Q4_0
How to use kaitchup/Mayonnaise-4in1-02 with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kaitchup/Mayonnaise-4in1-02:Q4_0
lemonade run user.Mayonnaise-4in1-02-Q4_0
lemonade list
This is a mixture of experts created with mergekit and based on mistralai/Mistral-7B-v0.1.
The model was created using a recipe detailed in this article: The Mayonnaise: Rank First on the Open LLM Leaderboard with TIES-Merging
Created with mergekit with this configuration:
models:
- model: mncai/mistral-7b-dpo-v5
# no parameters necessary for base model
- model: flemmingmiguel/MBX-7B
parameters:
density: 0.5
weight: 0.3
- model: BarryFutureman/NeuralTurdusVariant1-7B
parameters:
density: 0.5
weight: 0.5
merge_method: ties
base_model: mncai/mistral-7b-dpo-v5
parameters:
normalize: true
dtype: float16
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 75.21 |
| AI2 Reasoning Challenge (25-Shot) | 73.38 |
| HellaSwag (10-Shot) | 88.51 |
| MMLU (5-Shot) | 64.89 |
| TruthfulQA (0-shot) | 69.04 |
| Winogrande (5-shot) | 84.37 |
| GSM8k (5-shot) | 71.04 |