Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update GGML_HIP_UMA #536

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Djip007
Copy link
Contributor

@Djip007 Djip007 commented Aug 13, 2024

add the 2 changes needed for llamafile:

  • remove UMA build option
  • use it in all case if hipalloc failed with 'not have enough memory'

Note: with linux kernel 6.10+ hip_malloc use GGT memory for some APU (Ryzen 7940HS ...) so the limite size is easly configurable on linux with boot parameter. No more need for BIOS VRAM change.

#add at boot kernel param to have 16Go of GGT Memory. (default is 1/2 of free RAM)
amdgpu.gttsize=16384 

Note2: With this patch/UMA we can use all RAM without config.

(#439 (comment) update)

with the 2 changes needed for llamafile:
- remove UMA build option
- use it in all case if hipalloc failed with 'not have enough memory'
@Djip007 Djip007 mentioned this pull request Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant