Skip to content

Commit fefa30b

Browse files
authored
add prompt for text2text-generation (#290)
1 parent e1c54e2 commit fefa30b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOGS.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Change Logs
44
0.8.1
55
+++++
66

7+
* :pr:`290`: adds one prompt for text2text-generation
78
* :pr:`289`: adds command line options ``--exppo`` to give the exporter additional options
89
* :pr:`287`: adds input ``'inputs_prompt'`` to test a LLM, meant to be used during validation
910
* :pr:`288`: add .contiguous in torch.cond branch (attention patch for sdpa implementation)

onnx_diagnostic/tasks/text2text_generation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def get_inputs(
151151
assert (
152152
add_second_input > 0
153153
), f"Not implemented for add_second_input={add_second_input}."
154+
res["inputs_prompt"] = dict(input_ids=torch.randint(1000, 30000, (1, 11)))
154155
res["inputs2"] = get_inputs(
155156
model=model,
156157
config=config,

0 commit comments

Comments
 (0)