Closed Hanser14Forever closed 1 month ago
Hi @Hanser14Forever,
The MNTP training is working fine on my end with the current version of llm2vec
. Can you share more details of your setup? E.g. transformers version, llm2vec version, the exact command you are running
My transformers==4.39.3, evaluate==0.4.2 I just run
torchrun --nproc_per_node=4 experiments/run_mntp.py train_configs/mntp/Llama2.json
I just figured out this problem. The reason is I added this line in my script:
export HF_ENDPOINT=https://hf-mirror.com/
I cannot remove this line, otherwise i wouldn't be able to connect to HF on my server. (mainland China). So I clone 'evaluate' to my local path, and change this line:
metric = evaluate.load("accuracy", cache_dir=model_args.cache_dir)
to:
metric = evaluate.load(MY_PATH+"/evaluate/accuracy/accuracy.py")
It turns out to work well :>. Hope this could help others.
Glad you figured it out. Thanks for sharing your findings.
Hi, when I run MNTP task, I got the errors below:
How to fix it? I remember i dont have this problem when i reproduce it two weeks ago...