[KongchangAI]
ConceptLayer-Streamed QLoRA

Layer-wise Streaming QLoRA

A QLoRA variant that dynamically moves model layers between CPU memory and GPU memory, reducing peak memory requirements at the cost of data transfer efficiency.

Timeline (last 90 days)

Dec 3

Among the twelve configurations, standard QLoRA and layer-by-layer streaming QLoRA used the same GPU in ten configurations, and only the two largest standard QLoRA runs used a second GPU.

Unverified50%
Dec 3

The largest benchmark gap between the two methods was 0.0099 on GSM8K and 0.0026 on MMLU, with no consistent direction favoring either side.

Unverified50%
Dec 3

The relative difference in final evaluation loss across initial runs remained below 0.003.

Unverified50%
Dec 3

The streaming method and standard QLoRA are not numerically identical in logits and training checkpoints, and the checkpoints cannot be used interchangeably.

Unverified50%
Dec 3

In every configuration, layer-by-layer streaming QLoRA reduced peak GPU memory usage.

Unverified50%
Dec 3

On the same GPU, layer-by-layer streaming QLoRA lengthened training time to 1.05 to 4.99 times that of standard QLoRA.

Unverified50%
Dec 3

Layer-by-layer streaming training relies on backpropagation's reverse-order dependence on intermediate activations, and implementations typically use a fixed-size layer buffer (e.g., prefetching 2 layers) with independent CUDA streams for asynchronous copying.

Unverified50%
Dec 3

The wide range of training time multipliers depends on the ratio of per-layer parameter count to activation size, the PCIe generation and lane count, whether the prefetch depth is sufficient to hide transfer latency, and the number of synchronizations brought about by the number of layers.

Unverified50%
Dec 3

On NVLink or high-bandwidth unified memory architectures, the transfer overhead of the layer-by-layer streaming strategy is noticeably lower.

Unverified50%

All Facts (9)

Unverified

Among the twelve configurations, standard QLoRA and layer-by-layer streaming QLoRA used the same GPU in ten configurations, and only the two largest standard QLoRA runs used a second GPU.

50%
Unverified

The largest benchmark gap between the two methods was 0.0099 on GSM8K and 0.0026 on MMLU, with no consistent direction favoring either side.

50%
Unverified

The relative difference in final evaluation loss across initial runs remained below 0.003.

50%
Unverified

The streaming method and standard QLoRA are not numerically identical in logits and training checkpoints, and the checkpoints cannot be used interchangeably.

50%
Unverified

In every configuration, layer-by-layer streaming QLoRA reduced peak GPU memory usage.

50%
Unverified

On the same GPU, layer-by-layer streaming QLoRA lengthened training time to 1.05 to 4.99 times that of standard QLoRA.

50%
Unverified

Layer-by-layer streaming training relies on backpropagation's reverse-order dependence on intermediate activations, and implementations typically use a fixed-size layer buffer (e.g., prefetching 2 layers) with independent CUDA streams for asynchronous copying.

50%
Unverified

The wide range of training time multipliers depends on the ratio of per-layer parameter count to activation size, the PCIe generation and lane count, whether the prefetch depth is sufficient to hide transfer latency, and the number of synchronizations brought about by the number of layers.

50%
Unverified

On NVLink or high-bandwidth unified memory architectures, the transfer overhead of the layer-by-layer streaming strategy is noticeably lower.

50%

Source Articles