Skip to content

Conversation

@mudler
Copy link
Owner

@mudler mudler commented Dec 28, 2025

An example output of rocm-smi --showproductname --showmeminfo vram --showuniqueid --csv:

device,Unique ID,VRAM Total Memory (B),VRAM Total Used Memory (B),Card Series,Card Model,Card Vendor,Card SKU,Subsystem ID,Device Rev,Node ID,GUID,GFX Version
card0,0x9246____________,17163091968,692142080,Navi 21 [Radeon RX 6800/6800 XT / 6900 XT],0x73bf,Advanced Micro Devices Inc. [AMD/ATI],001,0x2406,0xc1,1,45534,gfx1030
card1,N/A,67108864,26079232,Raphael,0x164e,Advanced Micro Devices Inc. [AMD/ATI],RAPHAEL,0x364e,0xc6,2,52156,gfx1036

Total memory is actually showed before the total used memory as can be seen as an example in LostRuins/koboldcpp#1104 (comment).

This PR fixes #7724

Notes for Reviewers

I don't have an AMD card yet (I should buy it, yeap, but I've just got new gear that I could use it for) to test it, but according to outputs this looks the correct fix. If someone with a real card can test it meanwhile, that'd be great!

Signed commits

  • Yes, I signed my commits.

An example output of `rocm-smi --showproductname --showmeminfo vram --showuniqueid --csv`:

```
device,Unique ID,VRAM Total Memory (B),VRAM Total Used Memory (B),Card Series,Card Model,Card Vendor,Card SKU,Subsystem ID,Device Rev,Node ID,GUID,GFX Version
card0,0x9246____________,17163091968,692142080,Navi 21 [Radeon RX 6800/6800 XT / 6900 XT],0x73bf,Advanced Micro Devices Inc. [AMD/ATI],001,0x2406,0xc1,1,45534,gfx1030
card1,N/A,67108864,26079232,Raphael,0x164e,Advanced Micro Devices Inc. [AMD/ATI],RAPHAEL,0x364e,0xc6,2,52156,gfx1036
```

Total memory is actually showed before the total used memory as can be seen in LostRuins/koboldcpp#1104 (comment).

This PR fixes #7724

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
@netlify
Copy link

netlify bot commented Dec 28, 2025

Deploy Preview for localai ready!

Name Link
🔨 Latest commit 761065d
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/695190bee0d5e70008f4a687
😎 Deploy Preview https://deploy-preview-7761--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mudler mudler added the bug Something isn't working label Dec 28, 2025
@mudler mudler merged commit 185a685 into master Dec 29, 2025
35 checks passed
@mudler mudler deleted the fix/amd-gpu-mem-detection branch December 29, 2025 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Swapped GPU usage on Amd GPU

2 participants