Comments (4)
Refer to the documentation for compilation instructions.
Expected VRAM usage will be a multiple of batch size 1 usage listed on the huggingface page.
It may be better for AITemplate be integrated into batched VAE Decode/Encode and used with lower resolution higher batch size modules.
from ait.
Hmm, I'm following the documentation on windows, in a default comfyUI venv with diffusers + click added.
But after running the example command
python vae.py --hf-hub-or-path "runwayml/stable-diffusion-v1-5" --width 64 1024 --height 64 1024 --batch-size 1 1 --model-name "v1_vae_64_1024" --work-dir "./tmp/"
It ends up crashing with:
2023-06-26 23:26:26,775 INFO <aitemplate.backend.builder> linking 7 profiler executables
2023-06-26 23:26:26,790 WARNING <aitemplate.backend.builder> CACHE: Could not determine version of host compiler.
2023-06-26 23:26:26,832 INFO <aitemplate.backend.builder> make stdout:
2023-06-26 23:26:26,833 INFO <aitemplate.backend.builder> make stderr:
The system cannot find the path specified.
Traceback (most recent call last):
File "F:\ComfyUI\ComfyUI\custom_nodes\AIT\AITemplate\vae.py", line 143, in <module>
compile_diffusers()
File "F:\ComfyUI\ComfyUI\venv\lib\site-packages\click\core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "F:\ComfyUI\ComfyUI\venv\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "F:\ComfyUI\ComfyUI\venv\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "F:\ComfyUI\ComfyUI\venv\lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "F:\ComfyUI\ComfyUI\custom_nodes\AIT\AITemplate\vae.py", line 117, in compile_diffusers
compile_vae(
File "F:\ComfyUI\ComfyUI\custom_nodes\AIT\AITemplate\ait\compile\vae.py", line 119, in compile_vae
compile_model(
File "F:\ComfyUI\ComfyUI\venv\lib\site-packages\aitemplate\utils\misc.py", line 93, in inner_function
return f(*args, **kwargs)
File "F:\ComfyUI\ComfyUI\venv\lib\site-packages\aitemplate\compiler\compiler.py", line 276, in compile_model
compiler.transform.profile(
File "F:\ComfyUI\ComfyUI\venv\lib\site-packages\aitemplate\compiler\transform\profile.py", line 90, in profile
compile_engine.make_profilers(generated_profilers, profiler_dir)
File "F:\ComfyUI\ComfyUI\venv\lib\site-packages\aitemplate\backend\builder.py", line 835, in make_profilers
_run_make_cmds(
File "F:\ComfyUI\ComfyUI\venv\lib\site-packages\aitemplate\backend\builder.py", line 183, in _run_make_cmds
raise RuntimeError("Build has failed.")
RuntimeError: Build has failed.
Do you have any idea whats going wrong?
from ait.
You need Visual Studio 2022, Community edition will do, only build tools will not be detected by CMake.
Run from x64 Native Tools Command Prompt for VS 2022
and run set AIT_USE_CMAKE_COMPILATION=1
.
You also need my Cutlass 2.x/Windows branch of AITemplate but it is not published at the moment, and I should revert the logging changes before I publish it.
I'm compiling more VAE batch sizes now, they'll be available on huggingface soon.
from ait.
You need Visual Studio 2022, Community edition will do, only build tools will not be detected by CMake.
Run from
x64 Native Tools Command Prompt for VS 2022
and runset AIT_USE_CMAKE_COMPILATION=1
.You also need my Cutlass 2.x/Windows branch of AITemplate but it is not published at the moment, and I should revert the logging changes before I publish it.
I'm compiling more VAE batch sizes now, they'll be available on huggingface soon.
Thank you for your hard work once again! I will patiently wait and be happy with my current rebatch option.
from ait.
Related Issues (20)
- Compilation fails after fb84060 HOT 2
- ""log_vml_cpu" not implemented for 'Half'" when using AITemplate on certain models
- module 'comfy.sd' has no attribute 'ModelPatcher' HOT 1
- Unable to compile modules after update HOT 2
- issue: compatibility patch required HOT 2
- Error Running Workflows HOT 3
- [Bug] ddim, uni_pc, uni_pc_bh2
- [Bug] Conditioning Combine node error
- [Bug] ControlNet issues
- [Bug] LoRA issues
- [Bug] Batch size > 1
- [Bug] LoRAs handled incorrectly
- Issues with Inpainting pipeline
- FreeU support?
- Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! HOT 9
- After the last update, an error occurred. HOT 1
- Missing Nodes after updating HOT 3
- AITemplate -v?
- AITemplate if-else
- Cannot import HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ait.