CoOp icon indicating copy to clipboard operation
CoOp copied to clipboard

About PromptLearner

Open YangGangZhiQi opened this issue 4 months ago • 0 comments

Hi, thanks for this great works! When reading the source code of CoOp,I have an question about 'token_prefix' and 'token_suffix' in PromptLearner class. How to under this two variables? PromptLearner_problem

Why embedding[:, :1, :] could represent SOS and embedding[:, 1:1+n_ctx, : ] could represent CLS, EOS? I would appreciate it if anyone could help me.

YangGangZhiQi avatar Feb 29 '24 06:02 YangGangZhiQi