We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
loaded_reranker_model = LayerWiseFlagLLMReranker( 'path_to_original_bge-reranker-v2-minicpm-layerwise', model_class='decoder-only-layerwise', query_max_length=256, passage_max_length=1024, use_fp16=True, devices=['cuda:1'] )
推理: scores = compute_score(pairs, cutoff_layers=[28],normalize=True)
添加教师分数: scores = compute_score(pairs, cutoff_layers=[28])
这样得到的教师分数可以用于finetune吗?cutoff_layers、normalize是需要的吗?
The text was updated successfully, but these errors were encountered:
可以用scores = compute_score(pairs, cutoff_layers=[28])获得教师分数,normalize是不需要的,cutoff_layers视情况而定
scores = compute_score(pairs, cutoff_layers=[28])
normalize
cutoff_layers
Sorry, something went wrong.
No branches or pull requests
加载Reranker模型
loaded_reranker_model = LayerWiseFlagLLMReranker(
'path_to_original_bge-reranker-v2-minicpm-layerwise',
model_class='decoder-only-layerwise',
query_max_length=256,
passage_max_length=1024,
use_fp16=True,
devices=['cuda:1']
)
推理:
scores = compute_score(pairs, cutoff_layers=[28],normalize=True)
添加教师分数:
scores = compute_score(pairs, cutoff_layers=[28])
这样得到的教师分数可以用于finetune吗?cutoff_layers、normalize是需要的吗?
The text was updated successfully, but these errors were encountered: