def transformer_base_v1(configs):
    """ Configuration of transformer_base_v1

    This is equivalent to `transformer_base_v1` in tensor2tensor
    """
    # model configurations
    model_configs = configs.setdefault("model_configs", {})
    model_configs['model'] = "Transformer"
    model_configs['n_layers'] = 6
    model_configs['n_head'] = 8
    model_configs['d_model'] = 512
    model_configs['d_word_vec'] = 512
    model_configs['d_inner_hid'] = 2048
    model_configs['dropout'] = 0.1
    model_configs['label_smoothing'] = 0.1
    model_configs["layer_norm_first"] = False
    model_configs['tie_input_output_embedding'] = True

    # optimizer_configs
    optimizer_configs = configs.setdefault("optimizer_configs", {})
    optimizer_configs['optimizer'] = "adam"
    optimizer_configs['learning_rate'] = 0.1
    optimizer_configs['grad_clip'] = - 1.0
    optimizer_configs['optimizer_params'] = {"betas": [0.9, 0.98], "eps": 1e-9}
    optimizer_configs['schedule_method'] = "noam"
    optimizer_configs['scheduler_configs'] = {"d_model": 512, "warmup_steps": 4000}

    return configs