# I fine tuned PaliGemma model by watching your video

**URL:** https://discuss.roboflow.com/t/i-fine-tuned-paligemma-model-by-watching-your-video/6104
**Category:** 🤝  Community Help
**Created:** [June 7, 2024, 6:31am UTC](https://discuss.roboflow.com/t/i-fine-tuned-paligemma-model-by-watching-your-video/6104 "2024-06-07T06:31:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Babasaheb](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/babasaheb/32/2688_2.png) [@Babasaheb](https://discuss.roboflow.com/u/Babasaheb)
#### Post date: [June 7, 2024, 6:31am UTC](https://discuss.roboflow.com/t/i-fine-tuned-paligemma-model-by-watching-your-video/6104/1 "2024-06-07T06:31:02Z")

</div>

I fine tuned PaliGemma model by watching your video. I fined tune in colab and stored the file in Google Drive now I want to use the ‘.npz’ file to check with images whether it is working or not. So how can I use it.

As I am using Roboflow’s Self-Hosted Inference on Local machine then it is giving error api key error for following code:  
Install inference.

```auto
pip install inference

```

If you have an NVIDIA GPU that supports CUDA

```auto
pip install inference-gpu

```

Add your Roboflow API Key as an environment variable or in a `.env` file.

```auto
export ROBOFLOW_API_KEY="api key"

```

Use it in your python project.

```auto
import inference
model = inference.get_model("plans-hq5d7/1")
model.infer(image="YOUR_IMAGE.jpg")

```

but I am using correct api key.

Is there any way to run it locally and does anyone has documentation please share. It would be very helpful.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)
#### Post date: [June 28, 2024, 6:31am UTC](https://discuss.roboflow.com/t/i-fine-tuned-paligemma-model-by-watching-your-video/6104/2 "2024-06-28T06:31:10Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
