Skip to content
Agentmart
Submit a tool

rocm-vram-profiler-diagnostic

Core runbook for diagnosing memory ceiling limits on AMD's ROCm toolkit natively.

Skill by carlosfundora

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying rocm-vram-profiler-diagnostic?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/carlosfundora-rocm-vram-profiler-diagnostic

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Core runbook for diagnosing memory ceiling limits on AMD's ROCm toolkit natively. Details mitigation parameters and context-limiting configurations explicitly tailored for the Radeon RX 6700 XT.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/rocm-vram-profiler-diagnostic

What's inside

Skill name
rocm-vram-profiler-diagnostic
Description
Core runbook for diagnosing memory ceiling limits on AMD's ROCm toolkit natively. Details mitigation parameters and context-limiting configurations explicitly tailored for the Radeon RX 6700 XT.
License
MIT
Instructions
65 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (5)

  • SKILL.md
  • sglang-safe-launch.sh · examples/
  • vllm-safe-launch.sh · examples/
  • monitor-vram.sh · scripts/
  • verify-rocm-smi.sh · tests/

SKILL.md (first lines)

# ROCm System & VRAM Diagnostics

Use this skill when the local LLM processes (vLLM, SGLang, PyTorch code) crash with out-of-memory errors on the AMD hardware, or when assessing parameters prior to model loading.

## Execution Resources

This skill bundle includes practical execution resources alongside this file:
- `scripts/monitor-vram.sh`: A wrapper to continuously monitor VRAM limits.
- `examples/vllm-safe-launch.sh`: Reference implementation for safe vLLM memory boundaries.
- `examples/sglang-safe-launch.sh`: Reference implementation for safe SGLang memory boundaries.
- `tests/verify-rocm-smi.sh`: A validation mechanism to ensure ROCm environment availability.

## 1. Hardware Constriction Assessment

The target device operates with **12 GB of GDDR6 VRAM**.
- OS Baseline (X11/Wayland + Chrome): ~1.2 GB.
- Container Overhead: ~0.5 GB.
- **Max Theoretical Free Bandwidth:** 10.3 GB.

This forces a harsh boundary. A common Q5 quantized 8-billion parameter model takes exactly 5.5 to 6.3 GB just to sit idle. This leaves ~4.0 GB for the KV Cache.

## 2. Debugging Native Commands

If the user reports system freezing or agents outputting empty blocks, immediately run:
```bash
watch -d -n 1 rocm-smi
```
*Tip: You can use the provided script at `scripts/monitor-vram.sh` to run this natively.*

Watch the specific VRAM% output and Memory Temp fields. If VRAM exceeds 98%, the system driver will usually aggressively kill the python interpreter to prevent graphics server crashes.

## 3. Context Length and KV Cache Slicing

If generation length causes failure, you must limit the context windows. Memory for text inference works exponentially on context scales.

**In vLLM Launch Strings:**
1. Decrease the max-model-len: `--max-model-len 4096` instead of `8192`.
2. Apply strict GPU utilization scaling: `--gpu-memory-utilization 0.85` forces the engine to cap RAM limits, returning clean `503 Service Unavailable` instead of halting the root shell.

**In SGLang Launch Strings:**
```bash
SGLANG_USE_AITER=1 python3 -m sglang.launch_server \
  --model meta-llama/Llama-3-8B-Instruct \
  --dtype float16 \
  # backend unforced — native AITER attention works on patched gfx1030 (SGLANG_USE_AITER=1);
  # the old "Aiter does NOT work on RDNA2" claim was false. Keep cuda-graph on triton until the
  # aiter+hgb_decode_pool capture lane is wired.
  --mem-fraction-static 0.8 \
  --context-length 4096 \
  --host 0.0.0.0 \
  --port 30000
```

## 4. DType Fatalities

The RX 6700 XT (gfx1030 / RDNA2) lacks the matrix instructions necessary for native `bfloat16`. 
If a Python repository forces `bfloat16` under the hood without your knowledge, PyTorch will fallback to incredibly slow emulation modes or instantly crash producing an `Illegal instruction (core dumped)` error.

Always inject the `--dtype float16` constraint whenever parsing any Transformers-based execution wrapper.

## Verification

Before asserting that ROCm constraints are causing the issue or assuming environment capabilities, run `tests/verify-rocm-smi.sh` to check tool availability and current VRAM usage boundaries.

From carlosfundora/gfxGRAPH, MIT.

More from carlosfundora/gfxGRAPH

Signals

Stars
1
Forks
2
Open issues
0
Last commit (this folder)
Jul 24, 2026 (3 months ago)
Last release
Jun 15, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from carlosfundora

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get rocm-vram-profiler-diagnostic running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying rocm-vram-profiler-diagnostic?

CallGet help
Cite this page

rocm-vram-profiler-diagnostic skill. Agent Mart. https://agentmart.dev/skills/carlosfundora-rocm-vram-profiler-diagnostic (last updated 2026-10-24)