Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
Paper • 2203.05482 • Published • 8
How to use tklohj/70b2_merged_windyLLM with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="tklohj/70b2_merged_windyLLM") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("tklohj/70b2_merged_windyLLM")
model = AutoModelForSequenceClassification.from_pretrained("tklohj/70b2_merged_windyLLM")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:
dtype: float16
merge_method: linear
slices:
- sources:
- layer_range: [0, 80]
model: meta-llama/Meta-Llama-3-70B
parameters:
weight: 1.0
- layer_range: [0, 80]
model: meta-llama/Meta-Llama-3-70B
parameters:
weight: 0.3
- layer_range: [0, 80]
model: meta-llama/Meta-Llama-3-70B
parameters:
weight: 0.5
Base model
meta-llama/Meta-Llama-3-70B