[XPU][UT] Fix OOM and skip graph case - #49287
Conversation
Signed-off-by: mayuyuace <qiming1.zhang@intel.com>
|
@chaojun-zhang for the second part, I feel you should already fix it. |
I tested the latest vllm, but problem is not fixed yet. |
|
cc @chaojun-zhang @zhenwei-intel can you take a look? |
flash attn is supported by sycl graph in pytorch2.13 |
Thanks, I will try it with torch 2.13. |
Signed-off-by: mayuyuace <qiming1.zhang@intel.com>
Verified. |
| torch._dynamo.reset() | ||
| cleanup_dist_env_and_memory() | ||
| self._wait_for_rocm_memory_release(gpu_memory_utilization) | ||
| self._wait_for_xpu_memory_release(gpu_memory_utilization) |
There was a problem hiding this comment.
can merge _wait_for_rocm_memory_release and _wait_for_xpu_memory_release to single function _wait_for_memory_release
| # previous engine shuts down, so wait before constructing LLM. | ||
| from tests.utils import wait_for_xpu_memory_to_settle | ||
|
|
||
| wait_for_xpu_memory_to_settle(threshold_ratio=1.0 - gpu_memory_utilization) |
There was a problem hiding this comment.
can we merge wait_for_xpu_memory_to_settle and wait_for_rocm_memory_to_settle to single function wait_for_memory_to_settle ?
Signed-off-by: mayuyuace <qiming1.zhang@intel.com>
|
This pull request has merge conflicts that must be resolved before it can be |
Signed-off-by: Qiming Zhang <qiming1.zhang@intel.com>
|
/ci run |
|
✅ Triggered Buildkite CI #84025 for commit |
|
/ci run |
|
✅ Triggered Buildkite CI #84131 for commit |
|
/ci retry |
|
✅ Queued 1 failed job(s) for retry in Buildkite CI #84131. |
Signed-off-by: mayuyuace <qiming1.zhang@intel.com> Signed-off-by: Qiming Zhang <qiming1.zhang@intel.com> Co-authored-by: Kunshang Ji <kunshang.ji@intel.com>
Signed-off-by: mayuyuace <qiming1.zhang@intel.com> Signed-off-by: Qiming Zhang <qiming1.zhang@intel.com> Co-authored-by: Kunshang Ji <kunshang.ji@intel.com> Signed-off-by: Wyett <wyettzeng@gmail.com>
Fix UT on XPU:
gpu_memory_utilizationfor the XPU.