# HuggingFaceModel create fails with no GPU

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingfacemodel-create-fails-with-no-gpu%2F159162%3E%5C
**Category:** Amazon SageMaker\
**Created:** [June 13, 2025, 2:46pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingfacemodel-create-fails-with-no-gpu%2F159162 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [June 13, 2025, 3:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingfacemodel-create-fails-with-no-gpu%2F159162%2F2 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsetting-up-environment-in-sagemaker-studio%2F32998)%3A
>
> 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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhuggingfacemodel-create-fails-with-no-gpu%2F159162)._
