mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-28 15:02:37 +00:00
increase max_new_tokens
This commit is contained in:
parent
cb5829901f
commit
91b43600f7
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ class LlamaGuardShield(ShieldBase):
|
|||
prompt_len = input_ids.shape[1]
|
||||
output = self.model.generate(
|
||||
input_ids=input_ids,
|
||||
max_new_tokens=20,
|
||||
max_new_tokens=50,
|
||||
output_scores=True,
|
||||
return_dict_in_generate=True,
|
||||
pad_token_id=0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue