DELLA-Merging: Reducing Interference in Model Merging through Magnitude-Based Sampling
Paper • 2406.11617 • Published • 10
How to use Casual-Autopsy/RP-Spectrum-24B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Casual-Autopsy/RP-Spectrum-24B")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Casual-Autopsy/RP-Spectrum-24B")
model = AutoModelForCausalLM.from_pretrained("Casual-Autopsy/RP-Spectrum-24B")
messages = [
{"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))How to use Casual-Autopsy/RP-Spectrum-24B with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Casual-Autopsy/RP-Spectrum-24B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Casual-Autopsy/RP-Spectrum-24B",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/Casual-Autopsy/RP-Spectrum-24B
How to use Casual-Autopsy/RP-Spectrum-24B with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Casual-Autopsy/RP-Spectrum-24B" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Casual-Autopsy/RP-Spectrum-24B",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "Casual-Autopsy/RP-Spectrum-24B" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Casual-Autopsy/RP-Spectrum-24B",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use Casual-Autopsy/RP-Spectrum-24B with Docker Model Runner:
docker model run hf.co/Casual-Autopsy/RP-Spectrum-24B
A merge of some of the best RP finetunes the community has to offer.
Note: This model can be very creative, due to this I wouldn't recommend a temp over 0.7.
This model was merged using the DELLA merge method using mistralai/Mistral-Small-3.2-24B-Instruct-2506 as a base.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
models:
- model: mistralai/Mistral-Small-3.2-24B-Instruct-2506
- model: zerofata/MS3.2-PaintedFantasy-v3-24B # Pink/Red
parameters:
weight: 0.3
density: 1.0
epsilon: 0.0
- model: TheDrummer/Cydonia-24B-v4 # Black
parameters:
weight: 0.3
density: 0.4
epsilon: 0.25
- model: CrucibleLab/M3.2-24B-Loki-V1.3 # Green
parameters:
weight: 0.3
density: 0.4
epsilon: 0.25
- model: Gryphe/Codex-24B-Small-3.2 # Blue (Yes, blue. Fuck you.)
parameters:
weight: 0.3
density: 0.4
epsilon: 0.25
- model: ReadyArt/Dark-Nexus-24B-v2.0 # Orange
parameters:
weight: 0.3
density: 0.4
epsilon: 0.25
- model: Doctor-Shotgun/MS3.2-24B-Magnum-Diamond # White
parameters:
weight: 0.3
density: 0.4
epsilon: 0.25
# Seed: 199803
merge_method: della
parameters:
lambda: 0.9
normalize: true
int8_mask: false
base_model: mistralai/Mistral-Small-3.2-24B-Instruct-2506
dtype: float32
out_dtype: bfloat16
tokenizer:
source: zerofata/MS3.2-PaintedFantasy-v3-24B