lightseq
lightseq copied to clipboard
The perem of infer() not working
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.
The printed generate config says the beam_size is still 4. And the second dim of output is 4 two.
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.