Uploading YoloV8 Model to Hugging Face

I am completely new to Hugging Face and want to use Hugging Face as a model host to use for CVAT annotations.

I have a Hugging Face API key, my pytorch YOLOv8 model uploaded as .pt, a basic config.json file with the id2label and model_type as yolos.

The error when attempting to run inference from the model card is Pipeline cannot infer suitable model classes from .

What do I need to do to make my model work?