Comment by einsteinx2

Comment by einsteinx2 2 days ago

5 replies

> what such a token is

An API token from Hugging Face

> what it takes to get one

You generate them in your Hugging Face account

> where it would be placed in get_checkpoints.py.

Line 59 in the empty quotes where it says token = “”

CamperBob2 2 days ago

Ah, I see it now, thanks.

That's the kind of thing that, stylistically speaking, it's good to define at the very top of the module.

  • einsteinx2 2 days ago

    Agreed. I’m not part of the project I just saw your comment and figured I’d try and help.

Dwedit 2 days ago

Leaving off the "API" part from "API Token" causes confusion, since AI models tokenize all text into "tokens" before running the model. It's using the same word to describe two very different things.

  • einsteinx2 2 days ago

    Yep totally. Fwiw I’m not part of the project I just saw the comment and figured I’d try and help.