If another player gains control of the tokens created this way, the ability that causes you to sacrifice them will still trigger. However, any tokens you no longer control can't be sacrificed and will remain on the battlefield.