GithubHelp home page GithubHelp logo

Comments (4)

hlky avatar hlky commented on July 28, 2024

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.

IdiotSandwichTheThird avatar IdiotSandwichTheThird commented on July 28, 2024

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.

hlky avatar hlky commented on July 28, 2024

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.

IdiotSandwichTheThird avatar IdiotSandwichTheThird commented on July 28, 2024

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.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.