How to download the pt file because I want to run the model offline in my device.

Hello! The best way to get a pt file is to train a model on your own GPU or cloud GPU. We have 20+ open source notebooks with video/written guides on doing this: https://github.com/roboflow/notebooks

With that resource, you can use your Roboflow dataset to train the model.