Skip to content

Chapter 2- Trainer code runs for hours on end on Kaggle without any output #152

@Emmanuel-Ibekwe

Description

@Emmanuel-Ibekwe

from transformers import Trainer

trainer = Trainer(model=model, args=training_args,
compute_metrics=compute_metrics, train_dataset=emotions_encoded['train'],
eval_dataset=emotions_encoded['validation'], tokenizer=tokenizer)

trainer.train()

The code seems to run hours on end without giving an output. Also the GPU's and CPU's don't seem to be utilized why running this code. The percentage of them being used is zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions