# Can Unreal 5 run without the 10GiB PyTorch?

**URL:** <https://forums.unrealengine.com/t/can-unreal-5-run-without-the-10gib-pytorch/534155>\
**Category:** Pipeline & Plugins\
**Tags:** Python, unreal-engine, UE5-0, question\
**Created:** [April 20, 2022, 3:37am UTC](https://forums.unrealengine.com/t/can-unreal-5-run-without-the-10gib-pytorch/534155 "2022-04-20T03:37:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Online\_Learner\_uGWe1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/online_learner_ugwe1/32/476023_2.png) [@Online\_Learner\_uGWe1](https://forums.unrealengine.com/u/Online_Learner_uGWe1)\
**Post date:** [April 20, 2022, 3:37am UTC](https://forums.unrealengine.com/t/can-unreal-5-run-without-the-10gib-pytorch/534155/1 "2022-04-20T03:37:45Z")

</div>

I have limited SSD space and won’t use Machine Learning. Can I run UE5 with PyTorch deleted?

---

<div class="post-metadata">

**Author:** ![tim\_daoust](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tim\_daoust](https://forums.unrealengine.com/u/tim_daoust)\
**Post date:** [April 29, 2022, 2:59pm UTC](https://forums.unrealengine.com/t/can-unreal-5-run-without-the-10gib-pytorch/534155/2 "2022-04-29T14:59:08Z")

</div>

Yes - you can delete the PythonFoundationPackages plugin and run UE5. You will not be able to use certain experimental features such as the MLDeformer plugin.

---

<div class="post-metadata">

**Author:** ![Andrej730](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrej730/32/1194692_2.png) [@Andrej730](https://forums.unrealengine.com/u/Andrej730)\
**Post date:** [February 8, 2023, 4:44pm UTC](https://forums.unrealengine.com/t/can-unreal-5-run-without-the-10gib-pytorch/534155/3 "2023-02-08T16:44:20Z")

</div>

Actually you can’t. If you delete `PythonFoundationPackages` or just `torch` folders Unreal Engine (as for 5.1.1) will download them back.

The interesting thing (besides having 5.7 GB of PyTorch you’re not using) that Unreal also is saving 4.1 GB of PyTorch just for Linux (???) and 0.4 GB for Mac (???). In sum it’s 10.3 GB of PyTorch. Is it a bug? Is it neccessary?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/5/5a5a548466036991ac3c1816c1f8a6793c8356d2.png)

---

<div class="post-metadata">

**Author:** ![Andrej730](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrej730/32/1194692_2.png) [@Andrej730](https://forums.unrealengine.com/u/Andrej730)\
**Post date:** [February 10, 2023, 3:21pm UTC](https://forums.unrealengine.com/t/can-unreal-5-run-without-the-10gib-pytorch/534155/4 "2023-02-10T15:21:43Z")

</div>

I’ve found a solution for myself - wrote `.bat` file that replaces all files inside `torch` directories with empty files of the same names.  
I’ve checked - the next time you launch EGS it wouldn’t notice the difference and wouldn’t try to redownload them.

How it works:

1. Create `.bat` file with whatever name you find appropriate. I’ve named mine `reduce_to_atoms.bat`. Copy the contents below to your `.bat` file.

```auto
@echo off
echo This script will permanently empty all files in the current and child directories.
echo Be careful before using it!
echo.
pause
for /f "delims=" %%f in ('dir /s /b /a-d ^| findstr /v ".bat"') do (
  echo. > "%%f"
)
echo Done...
pause

```

1. Put `.bat` in one the three `torch` folders that you want to occupy less space (`UE_5.1\Engine\Plugins\Experimental\PythonFoundationPackages\Content\Python\Lib\Win64\site-packages\torch` or similar folders for Linux or Mac`)

2. Run it, press any button to confirm. Be careful - this `.bat` will actually _empty_ all files in current directory and children folders wherever you run it.

3. Voila, you just saved 10GB of disk space. (probably until next big Unreal Engine update)

---

<div class="post-metadata">

**Author:** ![samm.tan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/samm.tan/32/713016_2.png) [@samm.tan](https://forums.unrealengine.com/u/samm.tan)\
**Post date:** [June 22, 2023, 1:15am UTC](https://forums.unrealengine.com/t/can-unreal-5-run-without-the-10gib-pytorch/534155/5 "2023-06-22T01:15:10Z")

</div>

Can we know what other plugins depend on it besides MLDeformer which you mentioned? I’m about to delete the PythonFoundationPackages, and we need to know it’s safe to be deleted.

---

<div class="post-metadata">

**Author:** ![arthur\_veber](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arthur\_veber](https://forums.unrealengine.com/u/arthur_veber)\
**Post date:** [October 4, 2024, 2:53pm UTC](https://forums.unrealengine.com/t/can-unreal-5-run-without-the-10gib-pytorch/534155/6 "2024-10-04T14:53:37Z")

</div>

for me it’s DazToUnreal plugin. It uses MLDeformer.

---

<div class="post-metadata">

**Author:** ![Andrej730](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrej730/32/1194692_2.png) [@Andrej730](https://forums.unrealengine.com/u/Andrej730)\
**Post date:** [March 21, 2025, 10:58am UTC](https://forums.unrealengine.com/t/can-unreal-5-run-without-the-10gib-pytorch/534155/7 "2025-03-21T10:58:15Z")

</div>

In Unreal Engine 5.5 by default this folder is now 402KB instead of 10GB, so Unreal fixed it 🥳🥳
