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-isolationcd llm-benchmark/examples/BenchmarkModify LLM_BENCHMARK_PATH in the cmds.sh to the path to llm-benchmark, then:
./cmds.shimport llmbenchmark
llmbenchmark.train()