transformer implementation and config.