# MarvinLabs vram_fit

> MarvinLabs vram_fit is an MCP server for ai models and llm tooling. GPU memory measurements for QLoRA fine-tuning of gemma-3-4b-it on AMD and NVIDIA cards. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API, Web
- **Website:** https://marvinlabs.org/vram
- **MCP Registry name:** org.marvinlabs/vram-fit
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

The data behind this server comes from a hands-on training program rather than a spec sheet. It records peak GPU memory for fine-tuning unsloth/gemma-3-4b-it with 4-bit nf4 QLoRA on a single 8 GB NVIDIA consumer card, with a second NVIDIA card and a 24 GB AMD Radeon RX 7900 XTX used for one-step probes.

Each row notes the mode (a full training run, a one-step probe or a model load), LoRA rank, dropout, DoRA, sequence length and peak memory, along with out-of-memory failures and what each fix saved, for example moving the language-model head to bf16 cut pre-training use from 4502 MB to 3221 MB. A calibration section scales probe results by a measured over-estimate of about 4.7 percent against a real run.

The page lists ranks up to 128 and sequence lengths up to 16384 for the AMD card, and flags a case where Windows spilled into shared memory and ran about four times slower. The registry describes the server as returning fit verdicts for that model on your GPU. The measurements are for one model and recipe.

## Features

- **Measured peaks:** Peak VRAM by rank, dropout, DoRA, bf16 and sequence length.
- **Failure records:** OOM cases with allocation sizes.
- **Cross-GPU probes:** One-step probes on an AMD RX 7900 XTX and NVIDIA cards.
- **Calibration:** Scales probe readings using a measured over-estimate.
- **Memory fixes:** Records the savings from changes such as a bf16 head.
- **Markdown and JSON:** Data available as vram.md and vram.json.

## Good for

- Check if a QLoRA run will fit an 8 GB card
- Choose a LoRA rank for a given GPU
- Compare AMD and NVIDIA memory use
- Estimate VRAM for longer sequences

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http vram-fit https://marvinlabs.org/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "vram-fit": {
      "type": "http",
      "url": "https://marvinlabs.org/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://marvinlabs.org/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "vram-fit": {
      "url": "https://marvinlabs.org/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "vram-fit": {
      "type": "http",
      "url": "https://marvinlabs.org/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://marvinlabs.org/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add vram-fit --url https://marvinlabs.org/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.vram-fit]
url = "https://marvinlabs.org/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "vram-fit": {
      "httpUrl": "https://marvinlabs.org/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http vram-fit https://marvinlabs.org/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "vram-fit": {
      "serverUrl": "https://marvinlabs.org/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "vram-fit": {
      "url": "https://marvinlabs.org/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "vram-fit": {
      "type": "streamableHttp",
      "url": "https://marvinlabs.org/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "vram-fit": {
      "url": "https://marvinlabs.org/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "vram-fit": {
      "url": "https://marvinlabs.org/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "vram-fit": {
      "url": "https://marvinlabs.org/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "vram-fit": {
      "url": "https://marvinlabs.org/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://marvinlabs.org/mcp
```

Enter a Name (for example "MarvinLabs vram_fit"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "vram-fit": {
      "type": "http",
      "url": "https://marvinlabs.org/mcp"
    }
  }
}
```

## FAQ

### Which model is covered?

unsloth/gemma-3-4b-it with 4-bit nf4 QLoRA.

### Which GPUs were measured?

An RTX 3070 Ti and RTX 3060 Ti with 8 GB, and an AMD RX 7900 XTX with 24 GB.

### How accurate is a probe?

The calibration anchor shows the probe over-estimated the real run by 4.7 percent.

### Can I download the data?

Yes, as Markdown and JSON.

### How do I add MarvinLabs vram_fit to Claude Code?

Run this command in your terminal: claude mcp add --transport http vram-fit https://marvinlabs.org/mcp

### What are the best alternatives to MarvinLabs vram_fit?

The closest alternatives to MarvinLabs vram_fit are headroom, omniget, next-ai-draw-io, mcp-for-blender and Claude Code Ultimate Guide.

## Where this comes from

- Description: written from the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [headroom](https://ai-powered.com/mcp/headroom-3): headroom is an open-source MCP server for ai models and llm tooling.
- [omniget](https://ai-powered.com/mcp/omniget): omniget is an open-source MCP server for ai models and llm tooling.
- [next-ai-draw-io](https://ai-powered.com/mcp/next-ai-draw-io-2): next-ai-draw-io is an open-source MCP server for ai models and llm tooling.
- [mcp-for-blender](https://ai-powered.com/mcp/mcp-for-blender): mcp-for-blender is an open-source MCP server for design and media.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [tyk](https://ai-powered.com/mcp/tyk): tyk is an open-source MCP server for developer tools.
- [unity-mcp](https://ai-powered.com/mcp/unity-mcp-2): unity-mcp is an open-source MCP server for ai models and llm tooling.
- [AiSOC](https://ai-powered.com/mcp/aisoc): AiSOC is an open-source MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/marvinlabs-vram-fit
