Hello, I am facing this basic issue where I have created a fine tuned model using user interface of Google AI Studio and I got the model name as well but when I put that model name in my python code. I am getting the following error “403 doesn’t have access to this model”
model = genai.get_tuned_model(f'tunedModels/{my_fine_tuned_model_name}')
Welcome to the forum. For access to the finetuned model, the API key is not enough. You will need OAuth authentication, as the introduction to fine tuning documentation states: Menyesuaikan dengan Gemini API | Google for Developers
1 Like
I already have setup the auth and all i can use the fine tuned model I create through code, the main concern is the models I created using Google AI Studio user interface in not being shown in the code or list of my tuned models.
For some reason tuned models you create from AI Studio don’t show up in API. I’ve done this in the past as I was building an SDK and no luck. Even if you authenticate with service account it won’t make the magic happen. The only solution is to re-tune from API.
2 Likes
Thank You, this is although a big blunder from google atleast they should mention somewhere that we can’t use the fine tuned model from the google ai studio into the python code through apis.
1 Like
Are you saying that they’re not showing up if you call genai.list_tuned_models()
?
No they don’t show. The last time I used the SDK all I know is a tuned model created from Ai Studio doesn’t show among the list of tuned models in the API. I didn’t raise an issue because I thought maybe they have a very clear reason why they won’t allow that. Unless an update was made this month that brings Ai Studio’s tuned models to the API