Skip to content

Commit

Permalink
Defaultflash (#2537)
Browse files Browse the repository at this point in the history
* set flash as default
* remove model_opt from test
  • Loading branch information
vince62s authored Dec 18, 2023
1 parent f01bea1 commit 23f7916
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 8 additions & 2 deletions onmt/opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1826,15 +1826,21 @@ def translate_opts(parser, dynamic=False):
"Necessary for models whose output layers can assign "
"zero probability.",
)

group.add(
"--self_attn_type",
"-self_attn_type",
type=str,
default="scaled-dot-flash",
help="Self attention type in Transformer decoder "
'layer -- currently "scaled-dot", "scaled-dot-flash" or "average" ',
)
group = parser.add_argument_group("Data")
group.add(
"--data_type",
"-data_type",
default="text",
help="Type of the source input. Options: [text].",
)

group.add(
"--src",
"-src",
Expand Down
1 change: 0 additions & 1 deletion onmt/tests/test_inference_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def _get_parser():
parser = ArgumentParser(description="simple_inference_engine_py.py")
opts.config_opts(parser)
opts.translate_opts(parser, dynamic=True)
opts.model_opts(parser)
return parser


Expand Down

0 comments on commit 23f7916

Please sign in to comment.