Editing Models with Task Arithmetic
Paper • 2212.04089 • Published • 8
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)This is a merge of pre-trained language models created using mergekit.
This model was merged using the task arithmetic merge method using paulml/NeuralOmniBeagleMBX-v3-7B as a base.
The following models were included in the merge:
The following YAML configuration was used to produce this model:
models:
- model: paulml/NeuralOmniWestBeaglake-7B
parameters:
weight: 1
- model: FelixChao/Faraday-7B
parameters:
weight: 1
- model: flemmingmiguel/MBX-7B-v3
parameters:
weight: 1
- model: paulml/NeuralOmniBeagleMBX-v3-7B
parameters:
weight: 1
merge_method: task_arithmetic
base_model: paulml/NeuralOmniBeagleMBX-v3-7B
parameters:
normalize: true
int8_mask: true
dtype: float16
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Kquant03/Samlagast-7B-GGUF", filename="", )