Is embedding layer different from linear layer

That’s correct. nn.Sequential expects one input and will yield one output.
You can check other topics discussing this feature (e.g. here) which describe some workarounds.