Skip to content

[Bug] Unsloth Desktop crashes when I try to load the LTX-2-GGUF video model on Windows. exit code: 0xc0000005 #9977

Closed

Description

@yoomoogii

Summary

Unsloth Desktop crashes when I try to load the LTX-2-GGUF video model on Windows.

The backend exits with:

Windows fatal exception: access violation
exit code: 0xc0000005

This happens while loading the video pipeline, before video generation starts.

Environment

  • Unsloth Desktop: 0.1.804-beta
  • OS: Windows 11 x86_64
  • GPU: NVIDIA GeForce RTX 5070 Ti 16GB
  • RAM: 32GB
  • CPU: 32 logical cores
  • Python: 3.13
  • PyTorch: 2.10.0+cu130
  • CUDA branch: cu130
  • xFormers: 0.0.34
  • torchao: 0.17.0

Model

  • Repository: unsloth/LTX-2-GGUF
  • Quantization: UD-Q2_K_XL

The model download completes successfully.

Unsloth also downloads/loads the companion base repository:

Lightricks/LTX-2

Steps to reproduce

  1. Open Unsloth Desktop.
  2. Go to the Video generation page.
  3. Select LTX-2-GGUF.
  4. Select quantization UD-Q2_K_XL.
  5. Start loading the model.
  6. Wait for the video pipeline to initialize.

Actual behavior

The backend process crashes during model loading.

The Desktop UI eventually reports:

Server stopped unexpectedly

The backend exits with:

exit code: 0xc0000005

The log repeatedly contains:

Windows fatal exception: access violation

Relevant warnings before the crash

The following warning appears before loading the video model:

Skipping import of cpp extensions due to incompatible torch version.
Please upgrade to torch >= 2.11.0 (found 2.10.0+cu130).

Also:

Unable to import `torchao` Tensor objects.
This may affect loading checkpoints serialized with `torchao`

Crash location

The crash appears to occur while Transformers / Diffusers are loading and materializing model weights.

Relevant stack frames include:

transformers\core_model_loading.py
  _materialize_copy
  convert_and_load_state_dict_in_model

transformers\modeling_utils.py
  _load_pretrained_model
  from_pretrained

diffusers\pipelines\pipeline_loading_utils.py
  load_sub_model

diffusers\pipelines\pipeline_utils.py
  from_pretrained

studio\backend\core\inference\video.py
  load_pipeline
  _run_load

Example excerpt:

Windows fatal exception: access violation

Current thread:
  File "...transformers\core_model_loading.py", line 787 in _materialize_copy
  File "...transformers\core_model_loading.py", line 801 in _job
  File "...transformers\modeling_utils.py", line 4252 in _load_pretrained_model
  File "...transformers\modeling_utils.py", line 4132 in from_pretrained
  File "...diffusers\pipelines\pipeline_loading_utils.py", line 904 in load_sub_model
  File "...diffusers\pipelines\pipeline_utils.py", line 1056 in from_pretrained
  File "...studio\backend\core\inference\video.py", line 3755 in load_pipeline
  File "...studio\backend\core\inference\video.py", line 1621 in _run_load

Native crash details

One crash also produced this native PyTorch stack:

Exception Code: 0xC0000005

...torch\lib\torch...
...torch\lib\torch_py...
...safetensors\_safetensors_...

Possible non-ASCII Windows username/path issue

My Windows user profile path contains Japanese (non-ASCII) characters:

C:\Users\<Japanese username>\

The Unsloth log also contains:

Disabling llama.cpp slot persistence because its Windows path contains non-ASCII characters

The crash itself also occurs while Python / Transformers / Diffusers are working under the same Windows user profile path.

Could the non-ASCII Windows user profile path be related to this crash?

If so, is an ASCII-only Windows username/profile path currently required or recommended for Unsloth Desktop on Windows?

Additional observations

Image generation works correctly on the same machine.

For example:

unsloth/Z-Image-Turbo-unsloth-bnb-4bit

loads and generates images successfully.

Relevant log:

diffusion.loaded:
repo=unsloth/Z-Image-Turbo-unsloth-bnb-4bit
device=cuda
offload=model
tiling=True

Image generation completes successfully, including 8-step generations.

This suggests that:

  • CUDA is generally working
  • the RTX 5070 Ti is detected correctly
  • the problem seems specific to the video/LTX loading path, or to the PyTorch/torchao/Transformers combination used by that path
  • a non-ASCII Windows user profile path may also be relevant and should be ruled out

Another related issue

Before trying LTX-2-GGUF, I also tried:

unsloth/LTX-2.3-FP8

but loading failed because Unsloth Desktop tried to fetch:

https://huggingface.co/unsloth/LTX-2.3-FP8/resolve/main/model_index.json

and received:

404 Client Error
Entry Not Found

Expected behavior

The model should either:

  1. load successfully with CPU/GPU offloading appropriate for a 16GB GPU, or
  2. fail gracefully with a Python/CUDA OOM or compatibility error

Instead, the entire Unsloth backend process crashes with a Windows access violation.

Questions

Could this be caused by the current Windows dependency combination?

Python 3.13
PyTorch 2.10.0+cu130
torchao 0.17.0
xFormers 0.0.34

In particular, the log says torchao cpp extensions require PyTorch >= 2.11.0, while Unsloth Desktop installs PyTorch 2.10.0+cu130.

Is there a recommended PyTorch / torchao combination for LTX-2 video generation on Windows?

Also, could the non-ASCII Windows user profile path be contributing to the crash?

Full diagnostics

I can provide the full Unsloth Support Diagnostics report if needed.

Activity

  1. added
    feature request
    on Aug 29, 2026
  2. changed the title [-][Bug] Please fill in your issue title here.[/-] [+][Bug] Unsloth Desktop crashes when I try to load the LTX-2-GGUF video model on Windows. exit code: 0xc0000005[/+] on Aug 29, 2026
  3. 173787247 commented on Aug 30, 2026

    @173787247
    Contributor

    Local retest (cannot reproduce)

    Environment

    • Windows 11, Unsloth Desktop 0.1.804-beta
    • NVIDIA GeForce RTX 5080 (16 GB), ~256 GB system RAM
    • Model: unsloth/LTX-2-GGUF · UD-Q2_K_XL

    Steps

    1. Downloaded LTX-2-GGUF + required Lightricks/LTX-2 assets
    2. Loaded the video model in Desktop (Videos)
    3. Generated a 5.0s · 768×512 · 24 fps · 40 steps clip from a text prompt

    Result

    • Load succeeded (video.loaded: unsloth/LTX-2-GGUF, offload=model, attention _native_cudnn)
    • Generate completed; preview + Download available
    • No Desktop crash / no 0xc0000005 on this machine

    Happy to retest if there is a more specific recipe (quant, resolution, or a particular asset set) that still crashes on Windows.

  4. danielhanchen commented on Oct 13, 2026

    @danielhanchen
    Member

    Fixed! Sorry on the delay. The LTX-2 text encoder is stored in fp32 (about 49 GB), and on Windows loading it mapped every file at once, which uses up Windows' memory budget on a 32 GB machine and crashes the backend with 0xc0000005. Studio now reads those files piece by piece on Windows instead (same weights), fixed in #13432. Your non-ASCII username was not the cause. It will be in the next release.
    To update: Unsloth Desktop will have an update banner. For Studio, use unsloth studio update. For Docker, use docker exec <container> unsloth-studio-update. Reopen if it still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugfeature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions