I would like to use the model microsoft/Phi-4-multimodal-instruct, but I am consistently receiving a 401 Unauthorized error in Colab. There is no “Request access” button visible on the model page.
Could you please confirm whether the model is gated and how I can request access?
When using Colab, it is common to encounter a 401 error related to tokens (Colab has various quirks…), so let’s try to find a workaround from below and test various options. In general, directly passing the token is the top priority, but using the login() function is a stable alternative (the advantage is that the rest of the code remains unchanged).The next option is setting the HF_TOKEN environment variable (preferably as a secret for security).