This page shows how to integrate Weights & Biases (W&B) with Simple Transformers so you can visualize and track Transformer model training. By the end, you’ll know how to enable W&B logging from a Simple Transformers model and where to find examples for common NLP tasks. Simple Transformers is based on the Transformers library by Hugging Face and lets you train and evaluate Transformer models. You need only three lines of code to initialize a model, train the model, and evaluate a model. It supports sequence classification, token classification (NER), question answering, language model fine-tuning, language model training, language generation, T5 model, Seq2Seq tasks, multi-modal classification, and conversational AI. To use W&B for visualizing model training, set a project name for W&B in theDocumentation Index
Fetch the complete documentation index at: https://wb-21fd5541-style-guide-models-integrations-20260527-015516.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
wandb_project attribute of the args dictionary. This logs all hyperparameter values, training losses, and evaluation metrics to the given project.
wandb.init() as wandb_kwargs.
Structure
The following section outlines how Simple Transformers organizes its classes, so you know which module to import for a given task. The library is designed to have a separate class for every NLP task. The classes that provide similar functionality are grouped together.simpletransformers.classification- Includes all classification models.ClassificationModelMultiLabelClassificationModel
simpletransformers.ner- Includes all named entity recognition models.NERModel
simpletransformers.question_answering- Includes all question answering models.QuestionAnsweringModel
wandb_project argument.