AGI-Edgerunners / LLM-Adapters

Code for our EMNLP 2023 Paper: "LLM-Adapters: An Adapter Family for Parameter-Efficient Fine-Tuning of Large Language Models"
https://arxiv.org/abs/2304.01933
Apache License 2.0
1.02k stars 92 forks source link

Can not reproduce GSM8K zero-shot result #16

Open simplelifetime opened 1 year ago

simplelifetime commented 1 year ago

Thanks for your work! I try to reproduce the GSM8K results within this project. I simply removed the code of tranferring models to peft to achieve this. However, I can't reproduce the results on LLaMa-7B, which reaches 11.0 on GSM8K. I'm wondering if the evaluation procedure is standard as in the original LLaMa paper or if I'm doing wrong somewhere.

HZQ950419 commented 1 year ago

Hi, If my understanding is correct, you are trying to reproduce the LLaMA-7B performance on GSM8K in the LLaMA paper. But I believe this project's prompt or experiment setting differs from the original LLaMA paper. Thus, you need to check out the original LLaMA paper to reproduce the results instead of simply removing the code of getting the peft model.

Thanks!

dptam commented 1 year ago

Thanks for your work! I try to reproduce the GSM8K results within this project. I simply removed the code of tranferring models to peft to achieve this. However, I can't reproduce the results on LLaMa-7B, which reaches 11.0 on GSM8K. I'm wondering if the evaluation procedure is standard as in the original LLaMa paper or if I'm doing wrong somewhere.

@simplelifetime What numbers are you getting? I am also trying to reproduce the results on LLaMa-7B from the original paper but cannot match it. The original paper says they use the prompt from Chain of Thought. Doing so, I get around 9.0.

HuangOwen commented 1 year ago

Thanks for your work! I try to reproduce the GSM8K results within this project. I simply removed the code of transferring models to peft to achieve this. However, I can't reproduce the results on LLaMa-7B, which reaches 11.0 on GSM8K. I'm wondering if the evaluation procedure is standard as in the original LLaMa paper or if I'm doing wrong somewhere.

@simplelifetime What numbers are you getting? I am also trying to reproduce the results on LLaMa-7B from the original paper but cannot match it. The original paper says they use the prompt from Chain of Thought. Doing so, I get around 9.0.

Hi @dptam I am also reproducing LLaMa-7B on GSM8K and can only get around 3% accuracy. Your results (~9%) seem to be very close to the original paper. May I know what is the prompt you are using? If you are using few-shot-cot, how many shots are used and how is cot generated?

dptam commented 1 year ago

I use this prompt from the original CoT paper:

Q: There are 15 trees in the grove. Grove workers will plant trees in the grove today. After they are done, there will be 21 trees. How many trees did the grove workers plant today?
A: There are 15 trees originally. Then there were 21 trees after some more were planted. So there must have been 21 - 5 = 6. The answer is 6.\n
Q: If there are 3 cars in the parking lot and 2 more cars arrive, how many cars are in the parking lot?
A: There are originally 3 cars. 2 more cars arrive. 3 + 2 = 5. The answer is 5.\n
Q: Leah had 32 chocolates and her sister had 42. If they ate 35, how many pieces do they have left in total?
A: Originally, Leah had 32 chocolates. Her sister had 42. So in total they had 32 + 42 = 74. After eating 35, they had 74 - 35 = 39. The answer is 39.\n
Q: Jason had 20 lollipops. He gave Denny some lollipops. Now Jason has 12 lollipops. How many lollipops did Jason give to Denny?
A: Jason started with 20 lollipops. Then he had 12 after giving some to Denny. So he gave Denny 20 - 12 = 8. The answer is 8.\n
Q: Shawn has five toys. For Christmas, he got two toys each from his mom and dad. How many toys does he have now?
A: Shawn started with 5 toys. If he got two toys each from his mom and dad, then that is 4 more toys. 5 + 4 = 9. The answer is 9.\n
Q: There were nine computers in the server room. Five more computers were installed each day, from monday to thursday. How many computers are now in the server room?
A: There were originally 9 computers. For each of 4 days, 5 more computers were added. So 5 + 4 = 20 computers were added. 9 + 20 is 29. The answer is 29.\n
Q: Michael had 58 golf balls. On tuesday, he lost 23 golf balls. On wednesday, he lost 2 more. How many golf balls did he have at the end of wednesday?
A: Michael started with 58 golf balls. After losing 23 on tuesday, he had 58 - 23 = 35. After losing 2 more, he had 35 - 2 = 33 golf balls. The answer is 33.\n
Q: Olivia has $23. She bought five bagels for $3 each. How much money does she have left?
A: Olivia had 23 dollars. 5 bagels for 3 dollars each will be 5 x 3 = 15 dollars. So she has 23 - 15 dollars left. 23 - 15 is 8. The answer is 8.\n\n