git clone https://github.com/AaronZLT/llm-benchmark.git
# (option) conda & pypi mirror site
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
# install llmbenchmark
cd llm-benchmark
pip install .
# install flash-attn
pip install flash-attn --no-build-isolation
cd llm-benchmark/examples/Benchmark
Modify LLM_BENCHMARK_PATH in the cmds.sh to the path to llm-benchmark, then:
./cmds.sh
import llmbenchmark
llmbenchmark.train()