arXiv:2610.25048cs.LGOct 2026

Manuscript Offprint

arXiv:2610.25048

PACT: NVFP4 Data-Flow LoRA Fine-Tuning on Consumer GPUs

Lei Gao, Hossein Entezari Zarch, Chaoyi Jiang, Murali Annavaram

PACT: NVFP4 Data-Flow LoRA Fine-Tuning on Consumer GPUs

Lei Gao, Hossein Entezari Zarch, Chaoyi Jiang, Murali Annavaram

University of Southern California

{leig, entezari, chaoyij, annavara}@usc.edu

Abstract

Fine-tuning language models on consumer GPUs is constrained by computation and memory. Although LoRA reduces trainable parameters and optimizer state, frozen projections remain expensive, and activations retained for backward can dominate memory usage. We present PACT, a LoRA fine-tuning system that accelerates frozen projections with native NVFP4 GEMMs while reducing quantization and dequantization overhead and limiting quantization error. To reduce activation memory, PACT reuses quantized RMSNorm outputs and saves gate/up activations in NVFP4 for backward. To limit numerical error, it preserves BF16 inputs for forward nonlinear operations and calibrates frozen weights offline using GPTQ adapted to NVFP4 scales and quantized activations. Fused nonlinear kernels and cached forward and backward weight layouts reduce quantization and dequantization overhead. Evaluations across multiple models and tasks on a 16 GB RTX 5080 show lower memory usage and faster LoRA fine-tuning with competitive accuracy, enabling model adaptation on resource-constrained consumer hardware.

1 Introduction

Large language models (LLMs) are increasingly fine-tuned to adapt to a user's private data, personal writing style, or specialized downstream task (Hu et al., 2022; Gao et al., 2025; Tan et al., 2024). Performing this adaptation on the device that holds the data keeps sensitive data local, avoids the latency and recurring cost of cloud round trips, and enables continual learning (Xu et al., 2024; Zhu et al., 2023). In this setting, the practical target is often a small language model (SLM) in the 1B to 3B range, which can fit on a consumer GPU before fine-tuning but still faces severe training-time compute and memory pressure.

Low-rank adaptation (LoRA) (Hu et al., 2022)

Figure

Figure 1: GPU memory composition during BF16 LoRA fine-tuning at batch size 4. Activations dominate memory at longer sequence lengths.

reduces the number of trainable parameters by freezing pretrained weights and optimizing small adapter matrices. This substantially reduces gradient and optimizer storage, but the frozen projections are still evaluated in the forward pass and used to propagate input gradients during backward. Standard BF16 LoRA therefore retains substantial computation, while saved activations become a major memory cost as the batch size and sequence length grow. Figure 1 illustrates this activation-dominated regime on a consumer GPU.

Existing methods address these costs through different mechanisms. QLoRA (Dettmers et al., 2023) compresses frozen weights to four bits while retaining higher-precision computation and activations. Mixed-precision training accelerates matrix multiplications by quantizing their operands (DeepSeekAI, 2024; NVIDIA, 2025b), but it does retain quantized activations for backward computation. Consequently, retained activations can remain a substantial memory cost even when weights and computation use low precision. These approaches motivate jointly designing the computation and storage of a fine-tuning system.

NVIDIA Blackwell GPUs provide native

NVFP4 matrix multiplication, offering a hardware basis for this design. At batch size 4 and sequence length 1,024, our representative linear-layer measurements show that NVFP4 GEMMs are approximately 6–7× faster than BF16 GEMMs (Table 1). Realizing this benefit during training requires carefully designing the data flow to reduce the overhead of quantization and dequantization operations while limiting quantization error across both the forward and backward passes.

Layerdin×doutd_{\text{in}} \times d_{\text{out}}BF16NVFP4Speedup
query3072 × 30720.690 ms0.113 ms6.1×
gate/up3072 × 81921.778 ms0.304 ms5.8×
down8192 × 30721.818 ms0.267 ms6.8×

Table 1: GEMM latency for representative Llama-3B projections. NVFP4 provides approximately 6–7× acceleration over BF16 on a RTX 5080 GPU.

We introduce PACT, an NVFP4-based LoRA fine-tuning system that combines accelerated frozen projections with compressed activation storage. To accelerate computation, PACT uses native NVFP4 GEMMs for the forward and input-gradient computations of all seven frozen projections in each decoder layer. To reduce activation memory, PACT reuses quantized RMSNorm outputs for backward and saves separate NVFP4 copies of the gate/up activations. To reduce quantization error, SiLU-multiply uses the original BF16 gate/up values in forward, which are released after use. To reduce overhead caused by quantization and dequantization operations, fused kernels are implemented to produce both the compressed backward state and the quantized inputs required by subsequent projections, avoiding additional GPU memory traffic.

Frozen base weights provide a complementary opportunity to further reduce quantization error at the offline phase. PACT adapts GPTQ (Frantar et al., 2023) to NVFP4 by evaluating representable block scales and constructing calibration statistics from quantized activations. This aligns weight calibration with the activation precision used during training. To further improve computation efficiency, PACT caches quantized weight representations in the layouts required by forward and input-gradient GEMMs, avoiding repeated weight quantization during training.

Our contributions are:

  • We design an NVFP4 LoRA data flow that combines accelerated frozen projections with compressed activation storage. It reuses quantized RMSNorm outputs and saves gate/up activations in NVFP4 for backward while preserving BF16 inputs for forward nonlinear computation.

  • We reduce quantization and dequantization overhead through fused Triton kernels and cached weight layouts. We also adapt GPTQ to NVFP4 block scales and quantized calibration inputs to reduce weight quantization error offline.

  • We evaluate PACT across language and vision-language tasks on a 16 GB consumer GPU. Compared with BF16 LoRA, PACT reduces peak memory by 47%47\% to 51%51\% and achieves 1.7×1.7 \times to 1.9×1.9 \times training-step speedups at matched batch shapes, with an average classification accuracy gap of at most 2.6 percentage points.

References (30)