This includes the starter code for the LLM-Merging competition.
conda env create -f environment.yml --name llm-merging
conda activate llm-merging
-
To add a new merging method, create a new file in
llm_merging/merging
.This file should implement
__init__.py
andmerge.py
functions and extendllm_merging/merging/Merges
.See
llm_merging/merging/FlanT5Avg.py
orllm_merging/merging/LlamaAvg.py
for examples. -
Modify
setup.py
and add an entry with the merging method inllm_merging.merging.Merges
.For example, the entry
llama_avg = llm_merging.merging.LlamaAvg:LlamaAvg
indicates the method is calledllama_avg
and the file is atllm_merging/merging/LlamaAvg
Authentication tokens are requied for certain models like Llama2 which require user agreeing to some terms. The authentication token can be found here export HF_AUTH_TOKEN=""
python llm_merging/setup.py install
python llm_merging/main.py -m {merging_method}