AITemplate icon indicating copy to clipboard operation
AITemplate copied to clipboard

Can't finish running compile.py on Stable diffusion example(same issue on others)

Open ptrprkr opened this issue 2 years ago • 7 comments

File "\aitemplate\examples\07_how_to_run_pt_model\how_to_run_pt_model.py", line 131, in verify_simple_model() File "\aitemplate\examples\07_how_to_run_pt_model\how_to_run_pt_model.py", line 97, in verify_simple_model with compile_model( File "\AppData\Local\Programs\Python\Python310\lib\site-packages\aitemplate\compiler\compiler.py", line 200, in compile_model compiler.transform.profile( File "\AppData\Local\Programs\Python\Python310\lib\site-packages\aitemplate\compiler\transform\profile.py", line 88, in profile compile_engine.make_profilers(generated_profilers, profiler_dir) File "\AppData\Local\Programs\Python\Python310\lib\site-packages\aitemplate\backend\builder.py", line 364, in make_profilers self._gen_makefile_for_profilers(file_pairs, build_dir) File "\AppData\Local\Programs\Python\Python310\lib\site-packages\aitemplate\backend\builder.py", line 355, in _gen_makefile_for_profilers with open(dumpfile, "w+") as f: FileNotFoundError: [Errno 2] No such file or directory: "'./tmp\profiler'\Makefile"

Could I get some help with this? I apologize if this isn't the right place for this.

ptrprkr avatar Nov 13 '22 18:11 ptrprkr

I guess you are using Windows. If you are using Windows please use AIT in WSL linux mode.

antinucleon avatar Nov 13 '22 18:11 antinucleon

thank you! however now i get this raise RuntimeError("Unsupported platform") RuntimeError: Unsupported platform

ptrprkr avatar Nov 13 '22 18:11 ptrprkr

Which gpu are you using?

On Sun, Nov 13, 2022 at 10:57 ptrprkr @.***> wrote:

thank you! however now i get this raise RuntimeError("Unsupported platform") RuntimeError: Unsupported platform

— Reply to this email directly, view it on GitHub https://github.com/facebookincubator/AITemplate/issues/83#issuecomment-1312797292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJTLXTGK6M33ZRVEVWAD7TWIE2ZJANCNFSM6AAAAAAR7EVX4I . You are receiving this because you commented.Message ID: @.***>

-- Bing Xu

antinucleon avatar Nov 13 '22 18:11 antinucleon

3060 TI

ptrprkr avatar Nov 13 '22 18:11 ptrprkr

You need to install CUDA in WSL

https://docs.nvidia.com/cuda/wsl-user-guide/index.html

antinucleon avatar Nov 13 '22 18:11 antinucleon

I have, i tried installing again in a different way but still no change, thank you for your time and help though.

ptrprkr avatar Nov 13 '22 19:11 ptrprkr

@ptrprkr you need to ensure that you have Windows 21H2 or later, and /usr/lib/wsl/lib/nvidia-smi is in your wsl $PATH

hoamle avatar Nov 16 '22 11:11 hoamle