# Converting HFT Checkpoint to CoreML

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconverting-hft-checkpoint-to-coreml%2F62916%3E%5C
**Category:** Intermediate\
**Created:** [November 20, 2023, 9:05pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconverting-hft-checkpoint-to-coreml%2F62916 "2023-11-20T21:05:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjtheranj](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@sanjtheranj](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsanjtheranj)%5C
**Post date:** [November 20, 2023, 9:05pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fconverting-hft-checkpoint-to-coreml%2F62916%2F1 "2023-11-20T21:05:28Z")

</div>

I used transfer learning on the facebook/detr-resnet-50 model, and fine-tuned it to my data set. I now have a “checkpoint-{run#}” folder, with the following files:

- config.json
- model.safetensors
- optimizer.pt
- preprocessor\_config.json
- rng\_state.pth
- scheduler.pt
- trainer\_state.json
- training\_args.bin

I’d like to transform this checkpoint into a CoreML model format. [Transformers-to-coreml](https://huggingface.co/spaces/coreml-projects/transformers-to-coreml) did not load. I have looked into [Hugging Face Exporters](https://github.com/huggingface/exporters/tree/main), but have not found an example matching mine.
