# Issue: Fine-Tuning SAM2.1 Model on Kaggle Free Tier

**URL:** <https://discuss.roboflow.com/t/issue-fine-tuning-sam2-1-model-on-kaggle-free-tier/8118>\
**Category:** 🤝  Community Help\
**Tags:** bugs\
**Created:** [January 2, 2025, 7:05pm UTC](https://discuss.roboflow.com/t/issue-fine-tuning-sam2-1-model-on-kaggle-free-tier/8118 "2025-01-02T19:05:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Faris-Faiz](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/faris-faiz/32/6235_2.png) [@Faris-Faiz](https://discuss.roboflow.com/u/Faris-Faiz)\
**Post date:** [January 2, 2025, 7:05pm UTC](https://discuss.roboflow.com/t/issue-fine-tuning-sam2-1-model-on-kaggle-free-tier/8118/1 "2025-01-02T19:05:32Z")

</div>

Hello everyone,

I’m attempting to fine-tune the SAM2.1 model following the RoboFlow tutorial on fine-tuning SAM2.1. I’m using Kaggle as the cloud platform for training, leveraging the free tier with 2× T4 GPUs.

The issue arises when I try to start the training process using the following command:

```bash
!python training/train.py -c 'configs/training_new.yaml' --use-cluster 0 --num-gpus 2

```

I’ve tried various approaches to resolve the issue, including modifying the YAML configuration file. I even attempted to use the built-in YAML file from the SAM2 Git repository (`sam2/sam2/configs/sam2.1_training/sam2.1_hiera_b+_MOSE_finetune.yaml`) by adjusting the `img_folder` and `gt_folder` paths to fit my use case. Unfortunately, none of these attempts have resolved the error.

The dataset I am using is from [Roboflow Universe](https://universe.roboflow.com/robocup-9jdud/black-parts-panorama-image).

Before this, I encountered an issue related to Roboflow, which has been addressed in another post. However, I’m now facing this new error during the training step.

Could someone please guide me on how to resolve this issue? Any help would be greatly appreciated!

Thank you for your time and support.

---

<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:** [January 23, 2025, 7:06pm UTC](https://discuss.roboflow.com/t/issue-fine-tuning-sam2-1-model-on-kaggle-free-tier/8118/2 "2025-01-23T19:06:18Z")

</div>

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