The hardware you need to fine tune an LLM depends on the method more than anything else. For a QLoRA adapter on an 8B model, one NVIDIA GPU with 8 to 12 GB of memory is enough; Unsloth lists 6 GB as the absolute minimum. A 16 bit LoRA on the same model needs about 22 GB, so a 24 GB card. Full fine tuning needs roughly 18 bytes of GPU memory per parameter before activations, which puts even a 7B model past 100 GB and onto several data center GPUs. Around the GPU, plan for system RAM at least as large as the model files, SSD space of two to three times the model size, and a recent CUDA setup.

That covers the fine tune LLM hardware requirements in brief. Below, each part is broken down with numbers from the tool makers' own documentation, checked on November 14, 2026. We did not run these configurations ourselves; every figure comes from the linked sources or from simple arithmetic on them.

Fine tune LLM hardware requirements: GPU memory first

GPU memory (VRAM) is the hard limit: a run that does not fit stops with an out of memory error.

The Hugging Face Transformers guide to GPU memory usage in training breaks full training in mixed precision with the Adam optimizer down like this:

What is storedBytes per parameter
Model weights (16 bit working copy plus 32 bit main copy)6
Adam optimizer states (momentum and variance)8
Gradients4
ActivationsVaries with batch size and sequence length

That is 18 bytes per parameter before activations. For a 7B model, the arithmetic gives 126 GB; for an 8B model, 144 GB. That is why almost everyone uses adapters instead. The same guide notes that a quantized Adam optimizer from bitsandbytes can shrink the optimizer state to 2 bytes per parameter.

Adapter methods change the math. With LoRA, the base model is frozen and only small adapter matrices get gradients and optimizer state. The frozen weights still sit in GPU memory: about 2 bytes per parameter in 16 bit, or about half a byte per parameter when QLoRA loads them in 4 bit.

Published VRAM figures by model size

Two projects publish their own tables. Unsloth lists absolute minimums for its optimized training stack on its requirements page. LlamaFactory publishes estimates in its README for a more general setup. Both were checked on November 14, 2026.

Model sizeUnsloth QLoRAUnsloth LoRALlamaFactory QLoRA 4 bitLlamaFactory LoRALlamaFactory full (mixed precision)
7B5 GB19 GB6 GB16 GB120 GB
14B8.5 GB33 GB12 GB32 GB240 GB
32B (Unsloth) / 30B (LlamaFactory)26 GB76 GB24 GB64 GB600 GB
70B41 GB164 GB48 GB160 GB1,200 GB

LlamaFactory's rule of thumb for a model of x billion parameters is about 2x GB for 16 bit LoRA, x/2 GB for 4 bit QLoRA and 18x GB for full fine tuning in mixed precision. Its table also lists 8 bit QLoRA at about x GB and 2 bit QLoRA at about x/4 GB. Unsloth warns that some models need more than its minimums and that the most common cause of running out of memory is a batch size set too high; it suggests a batch size of 1, 2 or 3.

For a deeper look at choosing between the adapter methods, see our QLoRA vs LoRA vs DoRA guide. If you are sizing a GPU for running models rather than training them, how much VRAM you need for an LLM covers inference.

How context length changes the requirement

The tables above assume short training examples. Long examples cost far more, because activations and attention scores grow with sequence length. The Transformers guide points out that attention score matrices grow with the square of the sequence length, which is why a batch can run out of memory even when the model fits.

Unsloth's benchmark page shows how much this matters. It trained Llama 3.1 8B Instruct with 4 bit QLoRA, rank 32 and batch size 1, padding every example to a fixed length, and recorded the longest context that fit:

GPU memoryUnsloth max contextHugging Face with FlashAttention 2
8 GB2,972 tokensOut of memory
12 GB21,848 tokens932 tokens
16 GB40,724 tokens2,551 tokens
24 GB78,475 tokens5,789 tokens
48 GB191,728 tokens15,502 tokens
80 GB342,733 tokens28,454 tokens

So an 8 GB card trains an 8B model only on short examples, and a 12 or 16 GB card is the more comfortable minimum. The library matters too: in Unsloth's own test, the same 16 GB GPU fits about 40,000 tokens in one stack and about 2,500 in another.

What each GPU size can realistically train

Reading the Unsloth minimums against common card sizes gives a practical map. Treat it as a starting point, since your model, sequence length and batch size move the numbers.

GPU memoryQLoRA (4 bit)LoRA (16 bit)
8 GBUp to about 8B, short examplesSmall models under 3B
12 GBUp to about 14B3B
16 GBUp to about 14B with longer examples3B, with room for longer examples
24 GBUp to about 27BUp to about 9B
48 GBUp to about 70BUp to about 14B
80 GB70B with longer contextUp to about 32B

If you plan to train in BF16 on a GeForce RTX 30 series card, our RTX 3090 BF16 guide explains why those cards run BF16 tensor math at half rate.

GPU brand, drivers and software

NVIDIA is still the easiest path. Unsloth Core supports NVIDIA GPUs from 2018 onward with a minimum CUDA compute capability of 7.0, which covers the V100, T4, Titan V, RTX 20 series, A100, H100, L40 and the RTX 50 series. It says a GTX 1070 or 1080 works but is slow. On Linux and WSL it recommends CUDA toolkit 12.4 or newer, and 12.8 or newer for Blackwell cards, with Python 3.11 up to but not including 3.14.

AMD and Intel GPUs can train with Unsloth by following its vendor specific guides, and Unsloth Studio training now runs on NVIDIA, AMD, Intel and Mac. Other tools such as Axolotl, torchtune and Hugging Face TRL with PEFT run on the Transformers and PyTorch stack, so your GPU needs a working PyTorch build first. On Windows, Unsloth Studio needs Windows 10 or 11 (64 bit) with NVIDIA drivers installed, without WSL.

System RAM and CPU

The CPU barely matters for GPU training. It feeds data and runs the Python process, so any recent desktop or server processor is fine.

System RAM matters more than people expect, for two reasons:

  • Loading. Model files can pass through system memory on the way to the GPU. As a planning rule, have at least as much RAM as the size of the model files you load, plus headroom for your dataset and the operating system. That makes 32 GB a sensible floor for 7B to 14B work.
  • Offloading. DeepSpeed ZeRO-Offload moves the optimizer state and its computation from the GPU to the CPU. Its tutorial says this lets models with up to 13 billion parameters train on a single GPU. The cost moves to system RAM: at 8 bytes per parameter for Adam states, a 7B model needs about 56 GB of RAM for the optimizer alone.

If you have no usable GPU at all, training on the CPU works for very small models. Our guide to fine tuning an LLM without a GPU has measured times and memory for 135M and 0.5B models.

Disk space

Plan disk space in three layers:

  1. The base model. A 16 bit checkpoint takes about 2 bytes per parameter, so roughly 16 GB for an 8B model and 140 GB for a 70B model.
  2. Your outputs. A LoRA adapter is small, because it holds only the trained matrices. But merging it back into the base model writes a second full size copy, and exporting to GGUF for Ollama or llama.cpp writes a third.
  3. Checkpoints. Training saves intermediate checkpoints. Adapter checkpoints stay small; full fine tuning checkpoints include optimizer state and get large fast.

A fast NVMe SSD with free space of two to three times the base model size covers most adapter projects. Use a fast drive for the Hugging Face cache, because slow disks make every model load painful.

Fine tuning on a MacBook Pro or other Mac

On Apple Silicon, the GPU shares the machine's unified memory, so the RAM figure is also your training memory. mlx-lm supports LoRA and QLoRA. Its LoRA documentation gives a concrete example: on an M1 Max with 32 GB, training Mistral 7B with batch size 1 and 4 adapted layers runs at about 250 tokens per second.

The same document lists the memory levers: use a quantized model for QLoRA, lower the batch size from its default of 4, adapt fewer layers than the default of 16, split long examples, and turn on gradient checkpointing. As our own rule of thumb, a 16 GB Mac suits models up to a few billion parameters, and 32 GB or more is the comfortable starting point for 7B models. Our MLX vs PyTorch guide covers the framework side.

When to rent instead of buy

Buying a 24 GB card makes sense if you fine tune often. For a first project, free notebooks are enough to learn on: Kaggle offers T4 and P100 GPUs with 16 GB each under a weekly quota, and Google Colab offers a free GPU with unpublished limits. Our Google Colab vs Kaggle GPU comparison explains the limits, and how to fine tune an LLM in Google Colab walks through a run.

Past about 32B with LoRA, or for full fine tuning at any useful size, you need more than one GPU. Axolotl's multi GPU documentation supports DeepSpeed ZeRO stages 1 to 3, PyTorch FSDP (its recommended option) and DDP, plus FSDP with QLoRA. At that point renting cloud GPUs by the hour is usually cheaper than owning them.

Which setup to aim for

For learning, a free notebook GPU or any 8 to 12 GB NVIDIA card running QLoRA on an 8B or smaller model is enough. For serious single GPU work, a 24 GB card with 32 to 64 GB of system RAM and a 1 to 2 TB NVMe SSD covers QLoRA up to about 27B. Mac users should start at 32 GB of unified memory for 7B models, and anything bigger than that belongs on rented multi GPU servers.

Once you have the hardware, follow our step by step guide to fine tune an LLM locally, or see how to fine tune an LLM for code generation for a task focused example.

FAQ

What GPU do I need to fine tune an LLM?

For most people, an NVIDIA GPU with 12 to 24 GB of memory. A 12 GB card handles QLoRA on models up to about 14B according to Unsloth's minimums, and a 24 GB card adds 16 bit LoRA up to about 9B. Unsloth Core needs CUDA compute capability 7.0 or higher.

How much VRAM do I need to fine tune a 7B model?

Unsloth lists 5 GB as the minimum for QLoRA and 19 GB for 16 bit LoRA on a 7B model. LlamaFactory estimates 6 GB and 16 GB. Full fine tuning in mixed precision is about 120 GB by LlamaFactory's estimate. Longer examples and bigger batches add to all of these.

Can I fine tune an LLM with 8 GB of VRAM?

Yes, with QLoRA on models up to about 8B and short examples. Unsloth's test fit about 2,972 tokens of context for Llama 3.1 8B on an 8 GB card. Keep the batch size at 1 or 2 and use gradient checkpointing.

How much RAM do I need to fine tune an LLM?

There is no single official number. Plan for at least as much system RAM as the model files you load, plus headroom, which makes 32 GB a sensible floor for 7B to 14B models. If you offload optimizer state to the CPU with DeepSpeed, you need far more: about 8 bytes per parameter for the Adam states alone.

Can I fine tune an LLM on a MacBook Pro?

Yes. Apple Silicon Macs can train LoRA and QLoRA adapters with mlx-lm, and Unsloth Studio now supports training on Mac. The mlx-lm docs show Mistral 7B training at about 250 tokens per second on a 32 GB M1 Max with batch size 1 and 4 adapted layers.

Is full fine tuning worth the hardware?

Rarely for individuals. At about 18 bytes per parameter before activations, full fine tuning of a 7B model needs well over 100 GB of GPU memory. LoRA and QLoRA get close for most narrow tasks on a single card, which is why the guides on this site start there.