Repository navigation
Conversation
|
|
ORippler
left a comment
There was a problem hiding this comment.
- IMO, the pruning for mmvf/fattn-tile.cuh should follow the logic of MMQ (i.e.
ggml_cuda_*_configfor host/device side (potentially shared) that is used to gate both host and device side of things). - That batched compilation seems a bit arbitrary/potentially brittle. How much of perf is gained from pruning vs. batching?
65b042f to
06589a1
Compare
JohannesGaessler
left a comment
There was a problem hiding this comment.
Is there a reason why we are not using the built-in UNITY_BUILD?
|
@JohannesGaessler no at all. Thanks for point on it. I take a look. |
06589a1 to
a3b4377
Compare
|
@JohannesGaessler Thank you for this pointer to UNITY_BUILD. I used this since its cleaner change in CMake. I explored this approach with NVRTC tetherto#488 AmanG applies NVRTC where in short:
This feature without doubt minimize the project-build time significantly. I do PoC on side that in short use NVRTC to compile the templated-instances on-demand. Dependent on the model the binaries are build during the model load. I need to invest my time to something else till begin of next week. I write update during next week. |
Overview
This branch reduce the build time of cold un-cached ggml-cuda project.
Applied are two major approaches to speed up build times:
65b042f7that batch TUs increases the reuse of parsed big headers such ascommon.cuh.7ba40e2f518, ccbd39377027171Why
It should reduce pressure on CI/CD pipelines with cold-caches. This can be seen as simple low-hanging fruit PR with non invasive code changes that reduce build-time.
Other more involved ideas such as: quant-specific build options in cmake reduce significantly build time. However they modify more TUs and headers and can be seen as follow PRs.
Additional information
Tests on Linux and Windows systems show ~ 20% reduction independent on platform.
The tests on AMD-Backend are also safe without regressions.
Requirements