If the transfer switch transfers the neutral then you have an SDS and grounding/bonding is required at the generator, via the system bonding jumper.
If the transfer switch does not transfer the neutral then the grounding and bonding for the generator is done at the service, via the main bonding jumper.
IE where ever the bonding is done is where the neutral is grounded. Typically at the service but not always.