lightseq icon indicating copy to clipboard operation
lightseq copied to clipboard

The perem of infer() not working

Open smallv0221 opened this issue 5 years ago • 1 comments

I follow the quick start of tranformer infer in readme. And I want to change beam_size for beam search. But inputing beam_size to infer() function don't work. image The printed generate config says the beam_size is still 4. And the second dim of output is 4 two.

smallv0221 avatar Sep 03 '21 13:09 smallv0221

The "beam_size" argument in the infer() api is not work currently. You can set it in https://github.com/bytedance/lightseq/blob/master/lightseq/inference/proto/transformer.proto#L101 when you export your model to lightseq pb format.

neopro12 avatar Sep 06 '21 02:09 neopro12