Logging in to Huggingface

Viewed 69

Does anybody have experience running huggingface transformers on Databricks? I can download datasets, model checkpoints, tokenizers, etc without a problem. However, once I have a model fine-tuned (it is a text classification task) I want to upload it to the huggingface hub I haven't found a way to log in via the Databricks notebook.

I tried

from huggingface_hub import notebook_login
notebook_login()

but, like when the model is training, the notebook doesn't display HTML. So I tried

displayHTML(notebook_login())

but this gives me a java null pointer exception.

0 Answers
Related