Docker, Intel Arc performance tanked from ~11 It/s to ~5 It/s after updating docker container #2673
Replies: 11 comments
-
Update IPEX with But the new version of MKL and DPCPP are not compatible with IPEX 2.0. Also i dropped support for IPEX 2.0 in dev branch so update before the next release cycle. Changelog: https://github.com/vladmandic/automatic/blob/master/CHANGELOG.md
|
Beta Was this translation helpful? Give feedback.
-
Wrote a new Dockerfile: Build it:
Run it:
Dockerfile:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply and work, but since I am pretty new to docker and learning as I go along, and need to do something, which appears to be now unless I make another attempt at a native install today. I'm not sure if you're suggesting to do a 'native' install using the script method? Or to modify the docker image? If it's the docker image, Ill need to do some reading to figure out how to access the image contents and modify them, as Im doing this all CLI ATM. I had briefly considered using podman but decided best not to layer complications of podman on top of docker when I haven't used either, the former not at all, and docker about 2w... either way, w/no 'latent' (I guess thats what you call a stopped image?), I fresh start vladmandic via:
I think that all I might need to do is replace starting up the webui/etc. w/bash, and go from there. Building it natively, on OpenSUSE Tumbleweed also requires a modification for the Intel Arc card, there is, Im trying to remember either a boot variable or some other variable needs to be set. I remember reading about it several weeks ago, but since I ran into some dependency problems, I decided on the docker container image shortcut, since I was able to get it up and running fairly easily/quickly. Thanks again for your reply. Happy New Year. |
Beta Was this translation helpful? Give feedback.
-
Nuullll's docker image is pretty old. If you can install If you can't, use the docker image in the message above: #2673 (comment) Copy the Dockerfile into a text file named |
Beta Was this translation helpful? Give feedback.
-
Thanks again! I'll give it a shot, and I think that you're teaching me something about docker, by giving me the above file, which I figured was probably how to try it. So docker containers are NOT entirely reliant on what is contained in their own 'images'? This gives me some avenues for what I probably should look at next wrt docker, might move on to podman if I feel like Im comfortable enough w/docker itself at that point as I get the feeling that SUSE prefer podman over docker, as presumably does Fedora since that's where it originated, or so I gather. |
Beta Was this translation helpful? Give feedback.
-
Docker images you install with docker are prebuilt ones. Dockerfile is the source code for them. You can use Ubuntu 22.04 image and manually follow the commands in the Dockerfile too. |
Beta Was this translation helpful? Give feedback.
-
Thanks again! Gotcha, that's more what I expected but wasn't entirely certain. There is a SLES repo from Intel for SuSE that I added as IIRC the standard OpenSuSE repos were rather lacking in Intel software, for whatever reason. Also have the pacman repo for native codecs, primarily. And the MS VS Code repo... I probably should make the Intel repo a bit higher priority than the OpenSuSE repos, e.g. pacman suggests prio 99 IIRC whereas standard repos are prio 90, such that pacman packages take precedence over the opensuse repos. |
Beta Was this translation helpful? Give feedback.
-
Thanks again, but ran into a new problem where I can't seem to see where it went wrong... I's pretty familiar w/ubuntu systems and from I can infer about how dockerfiles work, the one that you provided appears to be fine although I could be easily missing fine details since Im a complete docker newb, well almost... Building the image goes w/o errors, however running ends up with this oddity:
where when I look at the docker file, puthon3 is explicitly installed to the image, or so I am doing the dangerous thing of assuming it is. and the image status ends up being,
as I would expect since it cannot run the startup python program. I cloned the github repo and the webui.sh looks OK to me. So now Im at a loss until I do some research, maybe something got skipped in the dockerfile specification? Im just running on by the seat of my pants, as it were ATM, and need to go look at docker file specs I guess... Maybe while Im at it, Ill take another stab at building 'natively'... just need to relook up whatever that environment variable or boot variable was that needed to be set and double check installed Intel APIs... as I think that my python3 setup is fine although IIRC I went w/latest 311 available in repos as there shouldn't be any breaking changes... |
Beta Was this translation helpful? Give feedback.
-
Try adding Took another look and it seems like your issue isn't from ipexrun. Try deleting deps volume: |
Beta Was this translation helpful? Give feedback.
-
Ill retry the docker in a few minutes(maybe hours depending). Took a stab at 'native' again and seem to be running into the same problem as #2627 , however Ive only gotten it to run w/CPU, so right now Im trying:
looks like it keeps trying to run CUDA for some reason:
guess Ill give the docker a retry EDIT: whoops just noticed that that huggingface directory had root ownership from somewhere, changed that and rerunning native, but that CUDA stuf... eh... EDIT2: decided to clean re-install, trying this as initial run:
EDIT3: well that resulted in the same EDIT4: did rm deps, and yep docker version runs now, still same 5 It/s though... I think that the 'native' install may be dependencies, Ill look into it tomorrow. |
Beta Was this translation helpful? Give feedback.
-
OK, did a little more testing managed to hit 6 It/s so it's a slight improvement. also I noticed:
after doing an upscale (Realesrgan 4x+ or whatever its called) then clicking on the save button. It also happened to me once on the txt2img 'front' page when clicking on save, however it did NOT happen every time... very strange Take these with a grain of salt as my damned iGPU managed to re-enable itself, so I need to reboot again and check out what happened in BIOS... known problem at least on ASROCK boards where this happens occasionally... EDIT: crashing in launch.py
|
Beta Was this translation helpful? Give feedback.
-
Looking at btop CPU is NOT being used.
Looking at Mission Control it also looks like GPU is not being used either, but I have my doubts wrt Mission Control Intel Arc support(as in I dont think that it really works well, or maybe at all).
See nothing really odd in the docker output... or at least nothing that I recall being different from my earlier original docker container installation from roughly 2.5w ago.
I would try native, but I ran into some dependency problems which I didn't feel like resolving(SUSE quirks and idiosyncrasies) so I decided to give the container version a shot which originally worked fairly well... ~11 It/s.
Progress 5.81it/s ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 0:01:08
versus earlier (not the best run but, similar prompt, same model)
Progress 10.09it/s ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00 0:00:39
EDIT: Also Im brand new to even trying docker, so be somewhat specific if you want me to try something beyond the basics, as Ive been at it for a whole 2w and haven't had a great deal of need to troubleshoot, delve into its inner plumbing etc. It was just a shortcut for now since I was too lazy to work around SUSE quirks... (which worked for me for a while as I had fun messing around with SD last week, try models, prompts, etc. was going to try a LORA but w/this perf no thanks...)...
EDIT2: I did also see these for the docker container ...
but it looks like it updates all of those....
Beta Was this translation helpful? Give feedback.
All reactions