# HuggingFaceModel create fails with no GPU

**URL:** <https://discuss.huggingface.co/t/huggingfacemodel-create-fails-with-no-gpu/159162>\
**Category:** Amazon SageMaker\
**Created:** [June 13, 2025, 2:46pm UTC](https://discuss.huggingface.co/t/huggingfacemodel-create-fails-with-no-gpu/159162 "2025-06-13T14:46:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [June 13, 2025, 3:54pm UTC](https://discuss.huggingface.co/t/huggingfacemodel-create-fails-with-no-gpu/159162/2 "2025-06-13T15:54:53Z")

</div>

Transoformers library is essentially a wrapper that uses PyTorch or TensorFlow as its backend, so PyTorch is absolutely necessary.

For example, the model class inherits from `torch.nn.Modules` basically…

> [@Setting up environment in Sagemaker Studio](https://discuss.huggingface.co/t/setting-up-environment-in-sagemaker-studio/32998):
>
> Hello everyone, I am currently working on finetuning a DETR object detection model in Sagemaker Studio using a Hugging Face Estimator. I have installed the libraries with pip, as shown below: !pip install transformers datasets huggingface\_hub evaluate timm albumentations wandb sagemaker However, when I tried to check the versions of Pytorch and transformers inside the SageMaker Studio notebook, I got the following error: import torch print(torch.\_\_version\_\_) \>\>\>ModuleNotFoundError: No module…

[https://stackoverflow.com/questions/64337550/neither-pytorch-nor-tensorflow-2-0-have-been-found-models-wont-be-available](https://stackoverflow.com/questions/64337550/neither-pytorch-nor-tensorflow-2-0-have-been-found-models-wont-be-available)

---

_[View the full topic](https://discuss.huggingface.co/t/huggingfacemodel-create-fails-with-no-gpu/159162)._
