Trained a model using trainer.train() and trainer.push().
training_args = Seq2SeqTrainingArguments(
output_dir=fine_tuned_model, # same name as model
per_device_train_batch_size=16,
gradient_accumulation_steps=1,
learning_rate=1e-5,
warmup_steps=50,
max_steps=max_steps,
gradient_checkpointing=True,
fp16=True,
evaluation_strategy="steps",
per_device_eval_batch_size=8,
predict_with_generate=True,
generation_max_length=225,
save_steps=200,
eval_steps=200,
logging_steps=200,
report_to=["tensorboard"],
load_best_model_at_end=True,
metric_for_best_model="wer",
greater_is_better=False,
push_to_hub=True,
save_total_limit=1,
hub_strategy="all_checkpoints"
)
from transformers import Seq2SeqTrainer
from transformers.integrations import TensorBoardCallback
trainer = Seq2SeqTrainer(
args=training_args,
model=model,
train_dataset=audio_dataset["train"],
eval_dataset=audio_dataset["test"],
data_collator=data_collator,
compute_metrics=compute_metrics,
tokenizer=processor.feature_extractor,
callbacks=[TensorBoardCallback()]
)
The logs messages show tf events files are pushed to hub.
Upload 2 LFS files: 0%| | 0/2 [00:00<?, ?it/s]
events.out.tfevents.1708962517.57b658957df3.26.1: 0%| | 0.00/9.64k [00:00<?, ?B/s]
events.out.tfevents.1708962517.57b658957df3.26.0: 0%| | 0.00/9.64k [00:00<?, ?B/s]
I can view tensorboard on local computer
However when I open tensorboard on hub it errors out
### No dashboards are active for the current data set.
Probable causes:
* You haven’t written any data to your event files.
* TensorBoard can’t find your event files.
Any pointers to load tensorboard on hub ?