# Having an error while loading model on hosted inference api

**URL:** <https://discuss.huggingface.co/t/having-an-error-while-loading-model-on-hosted-inference-api/33912>\
**Category:** Models\
**Created:** [March 16, 2023, 5:04am UTC](https://discuss.huggingface.co/t/having-an-error-while-loading-model-on-hosted-inference-api/33912 "2023-03-16T05:04:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![badmatr11x](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@badmatr11x](https://discuss.huggingface.co/u/badmatr11x)\
**Post date:** [March 16, 2023, 5:04am UTC](https://discuss.huggingface.co/t/having-an-error-while-loading-model-on-hosted-inference-api/33912/1 "2023-03-16T05:04:00Z")

</div>

I fine tuned the “distilroberta-base” model for my text classification project.

After pushing my model to the hub, I am getting the following error on Hosted Inference API;  
`Can't load config for 'None'. Make sure that: - 'None' is a correct model identifier listed on 'https://huggingface.co/models' - or 'None' is the correct path to a directory containing a config.json file`

Would anyone help me out with this??

This is the [dataset](https://huggingface.co/datasets/badmatr11x/hate-offensive-speech) I used and here is the link to my [model](https://huggingface.co/badmatr11x/distilroberta-base-offensive-hateful-speech-multiclassification/tree/main), if anyone wants to check my files.

Thanks for helping me out guys!!
