mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
Improve multi-gpu handling at the limit
Still not complete, needs some refinement to our prediction to understand the discrete GPUs available space so we can see how many layers fit in each one since we can't split one layer across multiple GPUs we can't treat free space as one logical block
This commit is contained in:
parent
206797bda4
commit
6fd04ca922
11 changed files with 390 additions and 90 deletions
|
@ -27,7 +27,7 @@ const (
|
|||
GPUTotalMemoryFileGlob = "mem_banks/*/properties" // size_in_bytes line
|
||||
|
||||
// Direct Rendering Manager sysfs location
|
||||
DRMDeviceDirGlob = "/sys/class/drm/card[0-9]/device"
|
||||
DRMDeviceDirGlob = "/sys/class/drm/card*/device"
|
||||
DRMTotalMemoryFile = "mem_info_vram_total"
|
||||
DRMUsedMemoryFile = "mem_info_vram_used"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue