Skip to content

Add evaluations for LLAMA2 - #5

Open
enigma9981 wants to merge 3 commits into
sophgo:mainfrom
enigma9981:main
Open

Add evaluations for LLAMA2#5
enigma9981 wants to merge 3 commits into
sophgo:mainfrom
enigma9981:main

Conversation

@enigma9981

Copy link
Copy Markdown

This pull request incorporates the metrics from TruthfulQA for LLAMA2, but it excludes the MC1 and MC2 metrics.

@enigma9981

enigma9981 commented Mar 25, 2024

Copy link
Copy Markdown
Author

To manually run it, the repository should contain a .env file in the directory harness/Llama2 structured like this:

PROJECT_PATH=/workspace/llm/LLM-TPU
LLAMA2_BMODEL_PATH=${PROJECT_PATH}/bmodels/test2.bmodel
LLAMA2_TOKENIZER_PATH=${PROJECT_PATH}/models/Llama2/support/tokenizer.model
LLAMA2_LIB_PATH=${PROJECT_PATH}/harness/Llama2/build/libllama2.so
LLAMA2_LOGITS_LIB_PATH=${PROJECT_PATH}/harness/Llama2/build/libllama2_logits.so

EVA_QUESTION_PATH=${PROJECT_PATH}/harness/TruthfulQA/TruthfulQA_demo.csv

LLAMA2_BMODEL_LOGITS_PATH=${PROJECT_PATH}/bmodels/test_logits.bmodel

The variable LLAMA2_BMODEL_PATH represents the path to the normal bmodel file, which is identical to the bmodels downloaded from the FTP server, while the variable LLAMA2_BMODEL_LOGITS_PATH represents the path to the bmodel file that generates logits as the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant