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

confused with the pooling strategy? #5

Open
rxqy opened this issue Jun 14, 2024 · 0 comments
Open

confused with the pooling strategy? #5

rxqy opened this issue Jun 14, 2024 · 0 comments

Comments

@rxqy
Copy link

rxqy commented Jun 14, 2024

Hi, I'm confused with the pooling strategy you used here.

For training, you use the avg token

--pooling_strategy avg \

While for evaluation, you are not specifing any pooling flag here,

BeLLM/README.md

Lines 99 to 105 in 9da9269

2) evaluate on STS benchmark
```bash
BiLLM_START_INDEX=31 CUDA_VISIBLE_DEVICES=0 python eval_sts.py \
--model_name_or_path NousResearch/Llama-2-7b-hf \
--lora_name_or_path SeanLee97/bellm-llama-7b-nli \
--apply_bfloat16 0
```

so this should be default value [cls], right?
parser.add_argument("--pooling_strategy", type=str, default='cls')

As for the paper, you mentioned that you used the representative word as the pivot, so this should be the last non-padding token, right? So I'm wondering which token should I use or does it make no difference in a decoder based model like llama?

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

No branches or pull requests

1 participant