mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
presence_mask should be sampling only (#14275)
This commit is contained in:
parent
cc7799835e
commit
16e39807e0
1 changed files with 7 additions and 6 deletions
|
|
@ -1537,13 +1537,14 @@ def convert_generation_model(args: argparse.Namespace, generation_type: Generati
|
|||
else:
|
||||
inputs.append("")
|
||||
|
||||
if is_sampling and args.custom and args.presence_mask:
|
||||
inputs.append("presence_mask")
|
||||
else:
|
||||
inputs.append("")
|
||||
if is_sampling:
|
||||
if args.custom and args.presence_mask:
|
||||
inputs.append("presence_mask")
|
||||
else:
|
||||
inputs.append("")
|
||||
|
||||
if is_sampling and args.seed:
|
||||
inputs.append("seed")
|
||||
if args.seed:
|
||||
inputs.append("seed")
|
||||
|
||||
outputs = ["sequences"]
|
||||
if args.output_sequences_scores:
|
||||
|
|
|
|||
Loading…
Reference in a new issue