Implementation of a transformer using MLX