Skip to content

Conversation

@nickhuang99
Copy link
Contributor

…greatly speedup loading huge model when system has enough RAM to pre-allocate hugetlbfs model file

Make sure to read the contributing guidelines before submitting a PR

As using argument is too much code change and also mmap with hugepage support not available in all platform, so, I decide to use compiler option to switch on this feature. i.e. cmake .. -DGGML_USING_HUGE_PAGE_1G=1
The hugepage feature requires model file must exist in hugetlbfs, and also Linux kernel command to boot with designate hugepagesz to be set. Also "copy" normal model file to hugetlbfs mount point requires also using a small tool with mmap. Therefore this is considered to be an advanced feature.

…greatly speedup loading huge model when system has enough RAM to pre-allocate hugetlbfs model file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant