DELLA-Merging: Reducing Interference in Model Merging through Magnitude-Based Sampling
Paper • 2406.11617 • Published • 10
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("sequelbox/Qwen3-14B-Esper3Math")
model = AutoModelForCausalLM.from_pretrained("sequelbox/Qwen3-14B-Esper3Math")
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]:]))This is a merge of pre-trained language models created using mergekit, combining the specialty skills of Esper 3 14b and Cobalt 2 14b.
This model was merged using the DELLA merge method using Qwen/Qwen3-14B as a base.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
merge_method: della
dtype: bfloat16
parameters:
normalize: true
models:
- model: ValiantLabs/Qwen3-14B-Esper3
parameters:
density: 0.5
weight: 0.3
- model: ValiantLabs/Qwen3-14B-Cobalt2
parameters:
density: 0.5
weight: 0.25
base_model: Qwen/Qwen3-14B
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sequelbox/Qwen3-14B-Esper3Math") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)