Spaces:
Runtime error
Runtime error
File size: 1,320 Bytes
c19ca42 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# DirectML
SD.Next includes support for PyTorch-DirectML.
## How to
Add `--use-directml` on commandline arguments.
For details, go to [Installation](https://github.com/vladmandic/automatic/wiki/Installation#general-installation).
## Performance
The performance is quite bad compared to ROCm.
If you are familiar with Linux system, we recommend ROCm.
## FAQ
### DirectML does not collect garbage memory.
PyTorch-DirectML does not access graphics memory by indexing. Because PyTorch-DirectML's tensor implementation extends [OpaqueTensorImpl](https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/OpaqueTensorImpl.h), we cannot access the actual storage of a tensor.
### An error occurs with no error message.
If you met `RuntimeError` with no error message (or empty), please report us via GitHub issue or Discord. (please check whether there's a duplicated issue)
### It does not work properly with FP16.
If it works with FP32, please report us via GitHub issue or Discord. (please check whether there's a duplicated issue)
### The terminal is suddenly frozen during generation.
Please report us via GitHub issue or Discord. (please check whether there's a duplicated issue)
# Olive (experimental support)
Refer to [ONNX Runtime](https://github.com/vladmandic/automatic/wiki/ONNX-Runtime-&-Olive). |