mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-04 08:16:42 +08:00
[Feature] support bad_words (#3055)
* support bad_words * support online infer bad_words * update * add CI test * update * update * update --------- Co-authored-by: Yuanle Liu <yuanlehome@163.com>
This commit is contained in:
@@ -180,7 +180,7 @@ void token_penalty_multi_scores_kernel(
|
||||
int64_t token_num = shape[0];
|
||||
int64_t length = shape[1];
|
||||
int64_t length_id = pre_ids.shape()[1];
|
||||
int64_t length_bad_words = bad_tokens.shape()[0];
|
||||
int64_t length_bad_words = bad_tokens.shape()[1];
|
||||
|
||||
int64_t end_length = eos_token_id.shape()[0];
|
||||
|
||||
|
Reference in New Issue
Block a user