Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add evaluations for LLAMA2 #5

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

enigma9981
Copy link

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

@enigma9981
Copy link
Author

enigma9981 commented Mar 25, 2024

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.

None yet

1 participant