mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-07-07 05:21:52 -07:00
parent
9165bae910
commit
2914ca278d
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class CodeGenProxy:
|
|||
if stop_words is None:
|
||||
stop_words = []
|
||||
if stop_words:
|
||||
stop_word_list = np.repeat(to_word_list_format([stop_words], self.tokenizer), input_start_ids.shape[0],
|
||||
stop_word_list = np.repeat(self.to_word_list_format([stop_words], self.tokenizer), input_start_ids.shape[0],
|
||||
axis=0)
|
||||
else:
|
||||
stop_word_list = np.concatenate([np.zeros([input_start_ids.shape[0], 1, 1]).astype(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue