by vintagedave · 12mo ago · 0 comments
That would be a real issue. I vaguely recall methods to work around this - various mappings, some Intel extension for high memory addressing, etc: https://learn.microsoft.com/en-us/windows/win32/memory/addre...
Maybe unrealistic :( I doubt this is drop-in code.
The problemis that llama.cpp would need to be substantially rewritten to use it. We're talking:
cAllocateUserPhysicalPages()
MapUserPhysicalPages()
// do your tensor ops on this chunk
UnmapUserPhysicalPages()
// slide the window, repeat
You'd basically be implementing your own memory manager that swaps chunks of the model weights in and out of your addressable space. It's not impossible, but it's a pretty gnarly undertaking for what amounts to "running AI on a museum piece."