Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
Paper • 2203.05482 • Published • 8
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("MrRobotoAI/X2")
model = AutoModelForCausalLM.from_pretrained("MrRobotoAI/X2")This is a merge of pre-trained language models created using mergekit.
This model was merged using the Linear merge method.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
models:
- model: MrRobotoAI/X1+Samhita-kolluri/mistral-paper-critique-lora
- model: MrRobotoAI/Huldra-R1-v2.2-8b-DEEPSEEK
parameters:
weight: 1.0
merge_method: linear
normalize: true
dtype: float16
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MrRobotoAI/X2")