fix: segmentation fault on Vulkan (gfx1031 radv)#38
Conversation
-calling prefill_fast causes segmentation faults in Archlinux. -reproducible by loading any layers to GPU on latest Vulkan/radv as of this commit. YMMV between different architextures on driver versions. -0 layers on GPU or compiling for CPU backend fixes this.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughGeneration now calls ChangesGeneration prefill
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Upon further investigation this appears to be an OOM issue.
I think chunking on the CPU would do more harm than good, so despite this realization I think the current PR is optimal. However, for very long generations (Like entire pages, audiobook-type load) this CPU chunking might be desirable also if the allocations are heavy. |
Calling prefill_fast causes segmentation faults in Archlinux when using on an RX 6700 (Latest radv as of this PR).
Reproducible by loading any layers to GPU when using Vulkan. YMMV between different GPU architectures and driver versions, this was the only way to successfully generate for me.
0 layers on GPU or compiling for CPU backend fixes/works around this, but that essentially disables GPU benefit.
Summary by CodeRabbit