Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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 = “”



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.


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


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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: