# SFTrainer doesn't show added column

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsftrainer-doesnt-show-added-column%2F86335%3E%5C
**Category:** 🤗Transformers\
**Created:** [May 12, 2024, 12:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsftrainer-doesnt-show-added-column%2F86335 "2024-05-12T12:29:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brand17](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@brand17](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbrand17)%5C
**Post date:** [May 12, 2024, 12:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsftrainer-doesnt-show-added-column%2F86335%2F1 "2024-05-12T12:29:27Z")

</div>

I am trying to add info about learning rate to my trainer log:

```python
from trl import SFTTrainer
from transformers import TrainingArguments
from typing import Dict

class MyTrainer(SFTTrainer):
    def log(self, logs: Dict[str, float]) -> None:
        logs["learning_rate"] = self._get_learning_rate()
        super().log(logs)

trainer = MyTrainer(
    model = model,
    tokenizer = tokenizer,
    train_dataset = train_dataset,
    dataset_text_field = "text",
    max_seq_length = max_seq_length,
    dataset_num_proc = 2,
    packing = False,
    args = TrainingArguments(
        per_device_train_batch_size = 2,
        gradient_accumulation_steps = 4,
        warmup_steps = 5,
        max_steps = 64,
        learning_rate = 2e-4,
        fp16 = not torch.cuda.is_bf16_supported(),
        bf16 = torch.cuda.is_bf16_supported(),
        logging_steps = 1,
        optim = "adamw_8bit",
        weight_decay = 0.01,
        lr_scheduler_type = "linear",
        seed = 3407,
        output_dir = "outputs",
    ),
)

```

But it still shows the loss only:

```auto
Step Training Loss
1 2.191700
2 2.246300
3 2.154900
4 1.919800
5 1.667400

```
