MARLIN: Mixed-Precision Auto-Regressive Parallel Inference on Large Language Models
Paper · 2024 · Elias Frantar, Roberto L. Castro, Jiale Chen et al.
Summary
Compressing a language system’s weights can make generation faster because the processor has less data to fetch. The difficulty is preserving that advantage when a server handles several requests together. Batching reuses the same weights across multiple inputs, increasing the amount of arithmetic associated with each memory transfer. Earlier compressed-weight implementations could accelerate generation for an individual user, yet their advantage frequently diminished as more requests ran together. MARLIN investigates whether this loss of speed is unavoidable or whether a more carefully organized GPU kernel can retain the benefits of compression.
The paper introduces MARLIN, short for Mixed-precision Auto-Regressive LINear, a family of kernels for the matrix multiplications inside language generation. Its principal configuration keeps activations in FP16 while storing weights in INT4. Weights therefore travel through memory in a compact representation and are converted into floating-point values shortly before multiplication. The contribution lies in coordinating that conversion with memory transfers, Tensor Core operations, cache use, and work distribution. MARLIN also prepares weight layouts before inference so that the running kernel can fetch and decode them efficiently.
On an NVIDIA A10, the authors report roughly 3.9× acceleration over FP16 for large matrices at batch sizes of 16-32. Their more detailed benchmark accounts for scale storage and identifies 3.87× as the compression-based ceiling for its configuration. MARLIN stays close to that ceiling over the useful range before arithmetic becomes the dominant cost. Its advantage decreases at larger batches, reaching about 1.5× at batch size 128 in the introductory account. The paper also presents Sparse-MARLIN, which combines quantization with NVIDIA’s 2:4 structured sparsity. This extension changes the weight and metadata layouts to use sparse Tensor Cores and provides further acceleration.
The authors test complete generation through integration with vLLM, a serving engine, instead of relying exclusively on isolated matrix multiplications. Their introductory deployment results include up to 2.8× acceleration for MARLIN at batch size 16 and up to 3.2× for Sparse-MARLIN. Separate simulated-serving experiments report approximately 2.8× lower per-output-token latency for MARLIN and about 3.3× acceleration for its sparse counterpart. These gains depend on the workload: the tests deliberately use short sequences in part of the evaluation, and operations outside the accelerated linear layers limit the benefit for complete generation. The central finding is that compressed weights can remain valuable well beyond single-request execution when the kernel is designed around the full movement and computation pipeline.
Deep dive: MARLIN: Mixed-Precision Auto-Regressive Parallel Inference on Large Language Models
How MARLIN accelerates batched language generation with compressed weights, GPU pipelines, and an extension for structured sparsity. · about 38 minutes to read
The problem and its context
Why moving weights can dominate generation
The paper concerns the execution cost of large language models, especially the repeated computation involved in generating text. During autoregressive generation, a system extends a sequence using its existing context. Much of the relevant computation passes through linear layers, where incoming activations are multiplied by stored weights.
For a small number of inputs, the arithmetic associated with each weight can be modest. Nonetheless, the weight must still reach the processor. When the weight collection is much larger than the available cache, repeated generation requires substantial traffic from device memory. The processor may consequently spend more time waiting for data than performing useful multiplication.
This situation is described as memory-bound execution. The term identifies the resource that limits progress: faster arithmetic alone would provide little benefit if the required operands cannot arrive any sooner. It does not mean that arithmetic is absent or inexpensive in an absolute sense. It means that, for the workload under consideration, transferring the operands determines the effective pace.
Weight compression addresses this problem directly. If fewer bits represent each weight, fewer bits must be transferred before the corresponding multiplication can happen. The compressed representation need not be used throughout the arithmetic pipeline. A kernel can load compact values and reconstruct floating-point operands locally, close to the computing units.
That distinction underlies the paper’s use of mixed precision. The stored weights and the incoming activations have different representations. The kernel’s responsibility includes bridging those representations without spending the memory savings on conversion overhead.
This places MARLIN within efficient inference and compression, but its main question is about execution. An accurate compression method establishes that weights can be represented compactly while retaining useful behavior. A fast kernel must establish that the representation can be consumed efficiently on actual hardware.
Why batching changes the calculation
A serving system typically has opportunities to group requests. Rather than processing an isolated input, it can apply the same weight matrix to several inputs together. This increases reuse: a weight fetched for the operation contributes to more arithmetic.
The resulting increase in arithmetic intensity is usually desirable. Arithmetic intensity describes the amount of computation associated with a quantity of memory traffic. Greater intensity can improve hardware utilization because the processor does more work with the data it has already received.
For compressed-weight execution, however, batching changes the balance that originally made compression attractive. The kernel must now carry out more multiplication during the interval saved by reading fewer weight bits. It must also manage larger activation and output arrays. An implementation that worked well for an individual input may no longer overlap these demands effectively.
The authors describe this as a weakness of earlier mixed-precision implementations. They could deliver substantial gains in the small-input regime, but the gains declined rapidly as the batch grew. The paper asks whether the hardware had already reached its fundamental limit or whether the implementations were leaving considerable performance unused.
The hardware balance suggests that room should remain. The paper places the FP16 compute-to-memory ratio of contemporary Ampere GPUs in the range of 100 to 200. Such devices can perform substantial arithmetic during the time needed to fetch a small amount of data. Compressing weights therefore need not immediately turn a moderately batched operation into a computation-bound workload.
The practical challenge is using that capacity. A theoretical balance between bytes and floating-point operations does not account automatically for decoding instructions, cache behavior, synchronization, or uneven work assignment. Each of these can create a bottleneck before either the memory system or the Tensor Cores reaches its useful limit.
What earlier compression methods contributed
The paper treats accurate quantization as an established starting point. GPTQ and AWQ are prominent examples in its account of prior work. They provide ways to reduce weight precision while controlling the resulting damage to prediction quality. The authors also discuss direct rounding, describing it as generally less accurate than more carefully designed alternatives.
GPTQ matters particularly because the authors use a modified version to produce MARLIN-compatible weights. Its role is to compensate for quantization error using second-order information. MARLIN’s execution strategy is intended to apply more broadly than that particular preparation method, provided the resulting representation can be supported by the kernel.
Other approaches compress both weights and activations. The paper names SmoothQuant and QuaRot in this connection. It explains that activation compression introduces additional difficulty because unusually large activation values can be hard to represent accurately at low precision. Methods may therefore use a different precision target or add processing such as rotations.
MARLIN’s primary design avoids making activation compression a prerequisite. Activations remain in FP16 while the weights use a compact integer format. This narrows the immediate implementation problem to moving, decoding, scaling, and multiplying compressed weights efficiently.
The earlier GPU programming work is equally relevant. The authors build on the hierarchical organization used in CUTLASS for matrix multiplication. They also relate their distribution of work across the GPU to stream-k partitioning. MARLIN combines these established directions with layouts and instruction schedules tailored to mixed precision.
The hardware resources that must cooperate
The relevant GPU and parallel computing hierarchy contains several different storage and execution resources. Global device memory holds the large arrays. An L2 cache is shared across the GPU, while individual streaming multiprocessors have access to smaller, faster local resources.
A streaming multiprocessor, abbreviated SM, is a hardware unit that executes groups of threads. Within it, shared memory offers explicitly managed storage that cooperating threads can use. Registers hold values immediately needed by individual threads and their arithmetic instructions.
CUDA organizes execution into threads, warps, and thread blocks. A warp contains 32 threads that proceed together under the scheduling arrangement described by the paper. Thread blocks collect warps that execute on the same SM. Available registers, shared memory, and scheduling resources constrain how much work can remain active simultaneously.
Tensor Cores provide specialized matrix multiply-and-accumulate operations. Rather than expressing every multiplication and addition separately through ordinary floating-point instructions, a kernel supplies appropriately arranged matrix fragments to these units. The paper reports that Ampere Tensor Cores can offer up to 16× the FP16 performance of fused multiply-add operations on the ordinary floating-point units.
The operand arrangement is therefore part of the algorithm’s implementation. It is insufficient for the right numbers to be somewhere in memory. They must arrive in the thread registers and fragment layouts expected by the specialized instructions.
Ampere also provides asynchronous copying into shared memory. This allows a kernel to request data and continue useful work while the transfer proceeds. MARLIN’s design depends heavily on this opportunity to overlap stages that would otherwise execute sequentially.
The method, step by step
Begin with the operation the kernel must perform
The basic task is a matrix multiplication. The incoming activation matrix has a row for each input processed together. The weight matrix connects the incoming features to the output features. Their product gives the outgoing activations.
A B → C
A is the activation matrix, B is the weight matrix, and C is the output. A has shape M × K, B has shape K × N, and C has shape M × N. M denotes the number of inputs handled together, K the shared inner dimension, and N the output width.
In the main MARLIN configuration, A uses FP16 and B is stored as INT4. The output is also represented in FP16. The weight matrix has been quantized before inference, so the kernel does not search for a good compression while processing requests. It consumes an existing compact representation.
The method can be understood as arranging a continuous supply chain. Compressed weights must move from global memory into shared memory, then into registers, then through dequantization and scaling, and finally into matrix instructions. At the same time, activations must be available in the right places, and partial outputs must accumulate without excessive traffic.
From compressed weights to generated activations
The steps in order.
The steps describe logically distinct responsibilities, but the performance comes from executing several of them concurrently. A strictly sequential implementation would repeatedly expose memory and conversion delays that MARLIN tries to hide.
Represent weights with integer levels and scales
The background section introduces uniform quantization through a vector of floating-point values. Its range is mapped onto a fixed collection of integer levels. A scale records the distance between neighboring levels, while an offset records the lower endpoint.
Q(v, b) = round(((v − min(v)) / (max(v) − min(v))) (2^b − 1))
Here, v is a real-valued vector and b is the number of bits assigned to each quantized value. Q denotes quantization. The functions min and max return the vector’s smallest and largest elements, and round selects the nearest integer. The expression 2^b − 1 gives the largest available integer level under this formulation.
The same mapping is written using a scale and an offset.
Q(v, b) = round((v − z) / s)
The symbols Q, v, and b retain their meanings. The offset z is the vector minimum, and s is the scale. Subtracting z shifts the range, while dividing by s expresses each value in units of the quantization interval.
s = (max(v) − min(v)) / (2^b − 1)
The scale s depends on the range of v and on the precision b. A larger value range requires wider intervals when the available integer levels stay fixed. The offset z is defined separately as min(v).
This background formulation should be distinguished from the precise format used by the main kernel. MARLIN’s kernel description assumes symmetric INT4 weights and FP16 scales. The general quantization discussion explains why scales are needed; the implementation section specifies the representation that the kernel actually supports.
The paper also writes an error expression.
ε_r = ‖v − Q(v, b)‖₂
The symbol ε_r denotes the stated reconstruction error, v is the original vector, and the subscript on the norm indicates the Euclidean norm. There is a notation issue worth recognizing: the preceding definition of Q produces integer levels, whereas comparison in the original value space ordinarily requires interpreting those levels through their scale and offset. The paper does not introduce a separate reconstruction operator in this expression. Its practical design nevertheless explicitly includes dequantization and scale application.
Grouping provides a way to make quantization more locally adaptive. Instead of forcing an entire long vector to share a range, the preparation procedure divides it into groups and assigns separate parameters. A group of 128 consecutive values is the example used in the paper.
The benefit is that a group’s representation can fit its own values more closely. The cost is additional metadata. The kernel must load the group scales and apply them at the appropriate points, so grouping affects execution as well as compression quality.
For the main symmetric format, the paper allows either a scale per output column or scales for groups along each column.
number of scales = ⌈K/G⌉ N
K is the weight matrix’s inner dimension, G is the number of consecutive weights in a quantization group, and N is the output width. The ceiling operation accommodates a final group that may not fill the specified group length. The expression gives the scale count for grouped quantization.
Prepare the weights before serving
The authors use GPTQ to determine the quantized weights, with modifications intended to preserve accuracy while matching MARLIN’s execution format. GPTQ uses information about the consequences of quantization errors rather than simply replacing every weight by an independently chosen nearest level.
The modifications include searching for suitable clipping thresholds within each group. Clipping changes the representable range before the final quantization levels are chosen. The authors relate this search to the approach used in AWQ.
They also allow calibration sequences of differing lengths. Calibration supplies representative activations for the preparation process. Supporting variable-length sequences changes the data handling available during this stage, although the paper does not provide a complete calibration-data recipe in its narrative.
The authors describe these adjustments as producing modest, consistent accuracy improvements over their original GPTQ comparison. They also provide a conversion utility between formats. These preparation changes support the kernel, but the kernel’s principal scheduling ideas are not tied to GPTQ.
Preparation includes substantial rearrangement of stored data. Because inference repeatedly uses the same weights, the system can perform this rearrangement once and reuse the result. MARLIN spends that opportunity on placing values in the order required by efficient loads and subsequent Tensor Core operations.
This is an important distinction between the weights and the activations. Weights can be reorganized beforehand. Activations depend on the current request and must be accommodated during execution. The kernel consequently uses different layout strategies for the static and dynamic operands.
Keep weight traffic as the dominant memory cost
The authors first account for the minimum data movement implied by the multiplication.
memory bits = 16MK + 4KN + 16MN
M is the input count, K the inner dimension, and N the output width. The first term represents reading FP16 activations, the middle term reading INT4 weights, and the final term writing FP16 outputs. This expression describes the principal operands and output; the implementation must also handle quantization metadata.
The arithmetic comprises MKN multiply-and-accumulate operations, with each such operation counted as 2 FLOPs. At small M, the compressed weights can still account for the main execution cost even though they are much smaller than FP16 weights.
The difficulty is avoiding unnecessary activation reloads. If many independent output tiles each fetch the same full-precision activation data from global memory, the actual traffic can exceed the simple accounting. The weight savings would then be partly replaced by repeated movement of another operand.
MARLIN chooses output tiles spanning the full batch dimension and a moderate number of output columns. The available output widths are 64, 128, and 256. A wider tile lets a loaded activation fragment serve more output calculations.
Wider tiles also reduce the number of independently assignable output regions. That can leave some SMs underused. The design therefore cannot maximize activation reuse without considering the distribution of work across the device.
The L2 cache provides part of the solution. Activations reused by several SMs can remain in this faster shared storage. Global weight transfers and cache-level activation transfers can overlap, allowing the activation traffic to be hidden when the relevant bandwidth condition holds.
(2 M K_sm + 0.5 K_sm N_sm) / B_l2 < (0.5 K_sm N_sm) / B_gl
M again denotes the input count. K_sm is the tile extent along the inner dimension, and N_sm is its output width. B_l2 denotes L2 bandwidth, while B_gl denotes global-memory bandwidth. The factors 2 and 0.5 express the bytes occupied by FP16 and INT4 values, respectively.
The left side estimates the time to supply activation and weight tiles from L2. The right side estimates the time to fetch the compressed weight tile from global memory. When the cache-side demand fits beneath the global weight-loading time, it need not become an additional exposed bottleneck.
For N_sm = 256, the authors state that global weight traffic can remain dominant even at M = 64. This is a configuration-specific explanation of the design, instead of a promise that every layer and GPU reaches the same balance.
Make memory accesses wide and predictable
Efficient bandwidth use requires well-arranged requests. The kernel aims to use 16-byte accesses per thread, corresponding to 128 bits. With compressed weights, such accesses carry many values, but only if those values are positioned appropriately.
MARLIN rearranges weight tiles of size 16 × 64 before inference. The rearrangement makes the data needed by a group of threads contiguous and simplifies the indexing used during repeated execution.
The activation side imposes its own requirements. The paper explains that K_sm must be at least 64 for the intended loading arrangement. This connects a low-level access requirement to the higher-level choice of tile shape.
Cache management also matters. The activations may be reused, while an individual weight element is accessed only once by the operation’s relevant loading path. Letting newly loaded weights displace activation data would undermine the intended reuse.
The kernel therefore uses an eviction hint with its asynchronous copy instruction. The hint gives the incoming weight data a lower retention priority. It does not eliminate the cache from the path; it influences which data should be discarded first.
This illustrates a broader feature of the design. MARLIN does not treat every byte as having the same future value. Its memory policy distinguishes transient weight traffic from activation data that other SMs may still need.
Arrange shared memory around the consuming instructions
After global loading, operands pass through shared memory. The asynchronous copy instruction moves data there without first occupying intermediate registers. This saves internal movement and helps the kernel overlap copying with arithmetic.
The prepared weight layout makes its shared-memory transfer relatively straightforward. Activations require more care because the subsequent register-loading instruction expects a particular distribution of values across threads.
Shared memory is divided into banks. When accesses conflict on those banks, the intended parallel load can become less efficient. The kernel therefore permutes activation locations so that the fragments needed together can be retrieved without those conflicts.
activation location: (i, j) → (i, i ⊕ j)
The symbols i and j identify the relevant activation-tile indices, and ⊕ denotes bitwise XOR. The transformation changes the shared-memory column assignment while preserving the association with the original activation data.
The purpose is operational rather than mathematical: the matrix multiplication is unchanged. What changes is where a value waits before the register-loading instruction requests it.
The authors also observe that the arrangement used during shared-memory writes affects conflicts. They report profiler evidence that a globally contiguous activation sub-tile should remain contiguous overall after permutation, even though its internal order changes.
Computing transformed addresses repeatedly would itself consume instructions. Because the relevant shared-memory locations are fixed through the main loop, MARLIN precomputes addressing information and uses loop unrolling to make repeated accesses static.
Overlap transfers at several levels
MARLIN’s pipeline operates across more than the global-memory boundary. It overlaps global-to-shared copies, shared-to-register loads, weight decoding, and matrix arithmetic.
At the outer level, a copy request fetches data for a future tile while the current tile is being processed. Multiple shared-memory buffers keep future operands separate from those still in use.
The authors choose pipeline depth P = 4. P denotes the number of pipeline stages. Future operands are prefetched P − 1 steps ahead, with storage also needed for the current stage.
The paper gives both capacity and scheduling reasons for this choice. In the tested configurations, the depth was sufficient to hide latency while fitting the required shared-memory allocation, including the M = 64 case. Its compatibility with the alternating register buffers also allows the loop to return regularly to a known buffer state.
At the next level, the kernel loads an upcoming fragment from shared memory before finishing arithmetic on the current fragment. The paper calls this double buffering. The central idea is that the current register contents and the next register contents have distinct storage, so preparation can advance without destroying operands still being consumed.
Unrolling helps the compiler preserve this arrangement. The authors emphasize that source-level intention is insufficient: the generated instruction order must actually place independent preparation work ahead of the point where its results are needed.
The resulting pipeline is therefore partly a resource-allocation design and partly an instruction-scheduling design. Buffers make overlap possible; the instruction stream must make use of that possibility.
Divide work across warps without shrinking it too far
Within an SM, several warps cooperate on an output region. A simple scheme would give each warp a narrow, independent slice of output columns. The problem is that narrow slices may provide too little independent arithmetic.
If successive Tensor Core instructions repeatedly update the same accumulators, dependencies can prevent the hardware from issuing them at its desired pace. More warps do not automatically solve that problem if every warp’s assigned fragment becomes too small.
MARLIN fixes the warp-level output width at 64 and divides additional work along the inner dimension. Several warps can therefore contribute partial sums to the same output region while retaining sufficiently wide local calculations.
Those partial sums must eventually be combined. The authors use a parallel reduction through shared memory. The reduction adds work, but it permits a warp arrangement that better supports the much larger main multiplication.
The paper seeks at least four warps because Ampere provides four warp schedulers, and it describes eight as desirable for further latency hiding. These choices remain subject to the registers and shared memory consumed by the overall tile and pipeline.
The important point is that the unit of parallel work need not correspond directly to a disjoint output rectangle. Partial computations can overlap in their destination if the cost of combining them is smaller than the benefit of a better execution layout.
Decode directly into a useful register layout
INT4 values cannot simply be handed to the FP16 Tensor Core operation used by the main kernel. They need conversion and scaling. A generic sequence of type conversions would make this stage too expensive.
The authors instead adapt a bit-manipulation technique. Masks isolate the relevant bits, and logical operations place them into a floating-point bit pattern from which a subtraction recovers the desired value. The signed interpretation is incorporated into that process.
This method uses the representation of floating-point values as an implementation tool. Its purpose is to replace an expensive general conversion path with a short sequence suited to the known bit width and packing arrangement.
Packed arithmetic provides another opportunity. The hardware can operate on paired 16-bit operands held in a 32-bit register, allowing the decoding procedure to handle values together.
The offline weight arrangement is coordinated with this conversion. A thread receives the quantized values needed for its forthcoming Tensor Core fragments, rather than a convenient but unrelated segment that would require further runtime rearrangement.
Within an INT32 word, the paper specifies the interleaving pattern 64,207,531. This ordering is a storage convention selected to support parallel decoding. It does not change which mathematical weight occupies a given position in the underlying matrix.
The innermost multiplication traverses output columns so that conversion for the next weight fragment can overlap Tensor Core execution for the current fragment. Here again, the order of an otherwise equivalent computation matters because it determines which stages can proceed independently.
Apply scales without disrupting the pipeline
Per-output scaling and grouped scaling have different execution consequences. If an output column shares a scale throughout the inner dimension, the kernel can apply that scale after accumulation. Grouped quantization requires scale changes during the main loop.
MARLIN rearranges scale storage to match the consuming threads, much as it rearranges weights. Scales required together can then be fetched in a wide shared-memory access.
A seemingly efficient implementation would load a scale only when it changes. The authors found that the resulting irregular instruction pattern could make the compiler schedule the inner loop poorly.
Their chosen implementation instead reloads scales from shared memory for each sub-tile. This performs redundant accesses, but the available shared-memory bandwidth can accommodate them. More regular scheduling preserves overlap among the more consequential operations.
The lesson within the method is specific: minimizing the count of local loads is not identical to minimizing execution time. An instruction stream with a few redundant operations can be faster when it keeps memory movement, conversion, and Tensor Core work aligned.
Balance the whole GPU with stripes
The previous choices make a local tile efficient. They do not guarantee that the complete matrix supplies equally sized tasks to every SM.
If work is assigned only by output-column tiles, real layer shapes may not divide evenly across the GPU. Some SMs finish while others still have substantial work. Conventional splitting along the inner dimension can improve balance, but may introduce many partial outputs and expensive global reductions.
MARLIN uses stripes that can cross output-tile boundaries. It determines an approximate tile budget for each SM and assigns tiles in a column-oriented traversal. If an SM’s allocation reaches the end of a tile column before filling its budget, the allocation continues into the next column.
T = ⌈#tiles / #SMs⌉
T is the target number of weight tiles assigned to an SM. The symbol #tiles denotes the tile count for the operation, and #SMs denotes the number of streaming multiprocessors. The ceiling operation supplies a sufficient integer allocation size.
This scheme seeks a more even amount of work while limiting the number of output regions shared between SMs. It is related to stream-k, as the authors acknowledge.
When stripes contribute to the same output, their partial results are reduced in a controlled order. The implementation proceeds from the bottom of a tile column towards its top and performs the combination in FP16 using the output buffer itself.
A small lock buffer provides synchronization. Reusing the output storage keeps the approach close to in-place execution and allows the reduction traffic to benefit from L2 locality.
For much larger batches, MARLIN extends its indexing scheme to cover input segments of size 64. The weight matrix is treated as virtually repeated for scheduling purposes, while modulo indexing maps accesses back to the actual stored weights. This changes the work distribution without physically duplicating the weight array.
Extend the same design to structured sparsity
Sparse-MARLIN combines INT4 storage with 2:4 sparsity. In each relevant group of four weight positions, two remain non-zero. Hardware support can then skip the arithmetic associated with the removed positions, provided the values and their locations obey the required format.
The sparse Tensor Core instruction expects the sparse matrix on its left-hand side. The dense formulation places weights on the right, so the implementation changes how the product is expressed internally.
C = (Bᵀ Aᵀ)ᵀ
A is the activation matrix, B the weight matrix, and C the output. The superscript ᵀ denotes transposition. The rearrangement gives the sparse instruction the operand orientation it requires while preserving the intended output.
Weights can again be transformed before inference. Activations are transposed during shared-memory loading through the instruction support described by the authors. The paper states that this handling does not impose a performance penalty in their design.
The sparse representation contains separate value and index structures. The value structure stores surviving INT4 weights. The index structure records where they belonged within each original group.
For the sparse weight orientation of shape N × K, the surviving-value array has shape N × K/2. Packing eight INT4 elements into a 32-bit storage value gives the representation described as N/8 × K/2. N and K retain their matrix-dimension meanings.
The metadata uses indices in the range 0~3, encoded with 2 bits. Its arrangement must satisfy both efficient memory access and the sparse instruction’s rules about which threads provide location information.
Sparse-MARLIN therefore reshuffles metadata offline as well as values. A shared-memory loading instruction distributes the information required for upcoming sparse operations among the appropriate threads. Compression, layout, and instruction ownership remain coordinated throughout the extension.
Experiments and results
What is measured
The evaluation separates isolated-kernel behavior from complete generation and simulated serving. These answer different questions.
An isolated matrix benchmark asks how effectively MARLIN executes the operation it directly controls. Full generation adds attention and other inference work. A serving benchmark further includes the consequences of request arrival intensity and the batch sizes that emerge while handling clients.
The main kernel comparisons use speedup relative to FP16. This is a timing comparison, not a prediction-quality score. The paper also discusses perplexity and task accuracy to examine the consequences of preparing compressed weights, but its central quantitative contribution concerns execution performance.
No language dataset is identified for the timing workload in the experimental narrative. The kernel tests use specified matrix shapes. The complete-generation tests specify input and output sequence lengths. The accuracy discussion refers to a table and a perplexity figure, but does not state their full underlying data recipe in the surrounding account.
That separation matters when interpreting “data” in this paper. The principal experiments are hardware workloads, so matrix dimensions, precision formats, GPU types, and request settings play the role that a dataset and split would play in a predictive benchmark.
The large-matrix benchmark
The authors first choose a matrix that is deliberately favorable to partitioning. Its size is 72k × 18k, and the target device is the NVIDIA A10. This setup reduces the confounding effect of awkward layer shapes and exposes how close a kernel can get to its best execution regime.
The comparisons include an optimized PyTorch implementation and an AWQ kernel. They also include ExLlamaV2 and bits-and-bytes. The compressed-kernel settings use 4-bit weights with group size 128.
The scale representations are not fully identical across methods. This does not invalidate a practical implementation comparison, but it limits claims that every method is executing precisely the same storage format.
For the tested grouping configuration, the paper identifies 0.125 bits of scale overhead per weight. Its ideal compression-based speedup is therefore 3.87×. This is the appropriate reference for the detailed benchmark, instead of treating the weight payload alone as the complete representation.
At batch size 1, earlier kernels already approach the favorable end of the comparison. Their relative performance then deteriorates as the batch increases. MARLIN maintains performance near the stated ideal through batch sizes around 16-32.
This is the experiment most directly aligned with the paper’s question. The result shows that the additional arithmetic of a moderate batch need not immediately consume the benefit of compressed weight movement. It also shows why a result measured only at batch size 1 would miss an important distinction among kernels.
The introductory account reports approximately 3.9× acceleration on large A10 matrices and about 1.5× at batch size 128. These are rounded statements made by the authors in their broader presentation. The detailed benchmark’s 3.87× reference additionally accounts for scale storage; the two descriptions should not be treated as competing measurements under an unspecified common condition.
Real layer shapes and different GPUs
An ideal partitioning case establishes potential, but practical networks contain smaller and less cooperative matrices. The authors therefore test linear layers associated with Llama and Falcon at batch size 16.
These comparisons use relative acceleration over FP16 across several GPU types. The reported pattern favors MARLIN on the real layer shapes, although the numerical values for each plotted layer are not stated in the experimental prose.
The authors observe larger relative gains on the GeForce RTX 3090 than on the A100. They attribute the difference to the balance between useful work and overhead. A faster device can finish the core operation quickly enough that startup costs and imperfect partitioning occupy a larger fraction of the total.
This result cautions against equating the strongest hardware specification with the largest compression speedup. A comparison against each device’s FP16 baseline measures relative benefit. It does not by itself rank the devices by absolute generation time.
The authors also vary clock conditions. They test sustained execution with the GPU fixed at its base clock, a setting intended to reflect longer-running operation rather than a brief favorable burst.
Earlier kernels lose relative advantage under the reduced-clock condition in the authors’ account. MARLIN remains close to its corresponding ideal at that clock setting. The claim concerns efficiency relative to the lower-clock baseline, rather than unchanged absolute runtime.
Large batches and the hardware ceiling
The evaluation includes prompt-processing workloads on the A100. These use much larger batches than the central decoding regime.
The authors report performance nearly matching an uncompressed compute-bound multiplication through batch size 1024. For still larger input shapes, they describe an approximately 10% slowdown. They leave additional optimization of that regime to future work.
This is a different success criterion from obtaining a large weight-compression speedup. Once arithmetic limits execution, reducing weight traffic may no longer shorten the operation substantially. Avoiding a major penalty while retaining compressed storage can still be useful, but it should not be described as the same result as the near-ideal memory-bound acceleration.
The roofline analysis makes this distinction explicit. It examines an A10 across weight-matrix sizes expressed as 2^12, 2^13, 2^14, and 2^15, with input counts ranging through the powers from 2^0 to 2^16.
The authors identify batches below 64 as predominantly memory-bound in that analysis. Larger batches move into the compute-bound region. MARLIN tracks the available hardware capacity well across the tested intensities, with larger matrices generally providing the strongest utilization.
Clock behavior affects the ceiling too. Long, intensive workloads can cause the device to reduce its clock rate, bringing observed arithmetic throughput toward the base-clock limit. A single fixed peak-performance reference would obscure that effect.
What sparsity adds
Sparse-MARLIN is compared against dense MARLIN, other kernels, and ideal reference lines under both peak and sustained conditions. The authors report strong performance in these comparisons and use them to support the claim that the kernel design can accommodate another compression format.
The introduction states that structured sparsity adds up to 65% acceleration relative to dense MARLIN. This is an additional gain over the already compressed dense implementation, instead of a comparison directly against an uncompressed baseline.
Its practical meaning depends on having weights that satisfy the sparse format and retain adequate quality. The performance experiment demonstrates the execution advantage of that representation; it does not make pruning behavior irrelevant.
Compression quality
The paper’s perplexity comparison places MARLIN-format GPTQ compression against uncompressed Llama2 variants. Perplexity is a predictive-quality measure for which lower values are preferable.
The authors report an approximately 3.33× reduction in storage at matched perplexity along the comparison they present. They contrast this with the ideal 3.87× storage benefit associated with their bit width and grouping.
These statements should be read as an efficiency-quality tradeoff. The compression does not preserve all behavior exactly. The relevant observation is that the authors can obtain a substantially smaller representation at the compared perplexity, while also using a format designed for fast inference.
The Llama-2-7B accuracy discussion compares the original network with quantized and sparse-quantized versions. MARLIN uses INT4 weights prepared by the authors’ GPTQ variant.
The sparse-quantized version is associated with SparseGPT and additional training on synthetic data through knowledge distillation. The table caption explains that this further training accounts for scores above the original baseline.
Accordingly, an apparent quality advantage for the sparse version would not isolate the effect of sparsity. It combines compression with an accuracy-recovery procedure. The paper does not print the individual benchmark scores in its surrounding discussion, so that discussion supports no precise task-by-task numerical comparison here.
Complete generation through vLLM
The authors integrate both kernel variants into vLLM and compare them with its default FP16 execution. Their complete-generation benchmark uses 64 input tokens per sequence and generates another 64 tokens per sequence.
The sequences are intentionally short. This allows the workload to fit on a broader set of GPUs and reduces the extent to which attention dominates total computation. It is therefore a useful test of whether faster linear layers survive integration, but it is not a neutral sample of every possible serving workload.
For Llama-2-7B on an A10, the generation-phase account reports up to approximately 3× acceleration for MARLIN. Sparse-MARLIN supplies a further 1.2× improvement over MARLIN in that experiment.
The introductory deployment account separately reports up to 2.8× for MARLIN at batch size 16 and up to 3.2× for Sparse-MARLIN. These statements belong to the paper’s respective descriptions of its results. They should retain their conditions instead of being collapsed into a single universal deployment multiplier.
The authors explain why complete-generation gains are smaller than their best linear-layer gains. The kernel accelerates only part of the inference path. Attention and other work still contribute to total runtime.
Additional experiments vary GPU type and include weight sharding across several devices for larger networks. The authors report improvements throughout those tested settings, with the largest relative benefits in memory-bound execution and when using weaker or fewer GPUs.
The detailed speedup table is referenced, but its cells are not reproduced in the narrative. The justified conclusion is the reported trend, rather than a reconstructed collection of device-specific numbers.
Serving under changing request intensity
The simulated-serving experiments vary queries per second, abbreviated QPS. Request intensity influences the batch sizes encountered while the server operates.
The main latency measure is time per output token, or TPOT. It describes the average time associated with producing an output token for a queried sequence. The authors also measure time to first token, or TTFT, which includes the work before the first generated token becomes available.
For Llama-2-7B on an NVIDIA RTX A6000, the TPOT discussion reports roughly 2.8× latency reduction with MARLIN and about 3.3× acceleration with Sparse-MARLIN.
Llama-2-7B on RTX A6000, TPOT acceleration over vLLM FP16
The sparse extension increases the reported serving-latency advantage over the dense kernel.
The numbers
| System or setting | TPOT speedup × |
|---|---|
| MARLIN | 2.8 |
| Sparse-MARLIN (this paper) | 3.3 |
These are acceleration factors, not absolute token latencies. The chart therefore does not establish a particular response time in seconds or a particular supported request rate.
The authors describe the gains as broadly maintained over QPS settings, while also observing increasing relative benefit as request intensity rises. Their proposed explanation is that faster processing changes the operating batch size.
If requests finish sooner, fewer remain outstanding together. MARLIN can then execute at a smaller average batch than FP16 under the same incoming load, keeping it in a regime where weight-traffic savings are especially valuable.
This is the authors’ interpretation of the serving behavior. It connects kernel execution to the dynamics of a running service, but it is not presented as a separately isolated causal measurement.
The TTFT comparison also shows an improvement according to the paper. No exact TTFT values appear in its discussion, so the supported statement is qualitative.
What the ablations show
A design analysis rather than a complete removal study
The paper does not provide a systematic numerical ablation that removes every optimization in turn; it offers targeted implementation observations, controlled workload comparisons, clock experiments, and a roofline analysis.
That distinction matters because MARLIN contains many interacting choices. Strong final performance does not establish an independent contribution for every layout, hint, buffer, and partitioning rule.
Some techniques also enable one another. A useful pipeline depth depends on shared-memory capacity. A wide tile affects activation reuse and available parallelism. Offline weight layout supports both efficient loading and efficient dequantization. Removing a component may require redesigning the rest of the kernel before the comparison is meaningful.
The paper’s explanatory evidence is therefore strongest when tied to a specific bottleneck or reported implementation observation, rather than treated as a complete accounting of additive gains.
Scale loading reveals the cost of irregular scheduling
The most concrete local comparison concerns grouped scales. The authors initially consider avoiding loads when a scale has not changed. This would reduce the number of accesses in the source-level operation count.
In some shape settings, however, they observe a 10-20% slowdown associated with unfavorable compiler ordering. Their final design reloads the relevant scales more regularly from shared memory.
The interpretation is not that scale reuse is intrinsically harmful. The result concerns a particular instruction schedule in a highly pipelined kernel. The available shared-memory bandwidth can absorb redundant loads, while disruption to the main overlap pattern is more costly.
The experiment supports a practical explanation for a seemingly wasteful implementation choice. It does not establish that redundant loading would help under another compiler, a different tile organization, or another architecture.
The authors report a related sensitivity for per-output scale loading. Even when the load is followed immediately by a wait, using the asynchronous copy path helps avoid undesirable changes to the main loop’s instruction order.
Together, these observations show that the compiler-generated sequence is part of the effective method. The kernel’s performance cannot be inferred solely from the mathematical operation count.
Pipeline depth is justified by capacity and regularity
The chosen depth P = 4 is not accompanied by a complete curve over alternative depths. The authors instead explain that it hid latency in their tests while remaining within shared-memory capacity, including at M = 64.
They also explain why its regular relationship with the register buffers is useful. Full unrolling returns both scheduling structures to a known state, making addresses predictable and helping preserve double buffering.
This evidence supports the choice within the tested implementation. It does not show that the same depth is optimal for every matrix, GPU, or future extension.
The distinction is useful for understanding the paper’s contribution. The authors are reporting a carefully engineered working point, not deriving an architecture-independent constant.
Real shapes test the value of work distribution
The large, easily divided matrix removes an important source of imbalance. The real-layer experiments reintroduce it. Strong performance on both types of workload is consistent with the purpose of striped partitioning.
However, the paper does not present a numerical comparison in which the final kernel is held fixed while stripes alone are replaced by a conventional partition. The experiments therefore demonstrate the effectiveness of the complete design on awkward shapes, instead of isolating a precise speedup attributable only to stripes.
The scheduling explanation remains persuasive at the mechanism level. Crossing output-column boundaries allows each SM to receive a more uniform amount of work without creating unnecessary partial outputs everywhere.
The global reduction design addresses the consequence of that choice. It combines only the overlapping contributions required by the partition and tries to keep their traffic local to the cache and output buffer.
Clock and roofline analyses identify the active constraint
The locked-clock experiment changes a hardware condition while retaining the broad workload comparison. It shows that conclusions drawn from a short boosted execution need not carry over automatically to sustained operation.
MARLIN’s maintained relative efficiency under the lower clock supports the authors’ claim that the design remains well balanced. The result is more informative than a peak-time measurement alone, because serving workloads can run long enough for sustained conditions to matter.
The roofline study provides a separate diagnostic. As batch size grows, the workload moves from limited data supply towards limited arithmetic capacity. MARLIN’s changing speedup is therefore consistent with a changing hardware bottleneck.
This explains why declining acceleration at large batches is not automatically a failure of the compression implementation. Once the device is already busy performing the required arithmetic, fewer weight bytes cannot remove that arithmetic.
The sparse comparisons add another perspective. They show that a representation reducing arithmetic as well as weight traffic can extend the benefit, provided the specialized instruction format is supported efficiently.
Limitations
Limits stated by the authors
The authors explicitly leave further optimization of very large input shapes to future work. Their principal target is the decoding regime in which weight movement remains important, rather than every possible matrix multiplication encountered during language processing.
Their A100 prefill tests are encouraging through batch size 1024, but the reported roughly 10% penalty at larger shapes shows that compressed storage does not always translate into equal or better arithmetic-bound execution.
They also identify more complex compression formats as future directions. Vector-quantization approaches require more elaborate decompression than the uniform INT4 representation implemented here. The paper proposes investigating such support; it does not demonstrate that MARLIN already provides equally efficient execution for those formats.
Additional activation compression and forms of sparsity are also directions for extension. Sparse-MARLIN establishes support for the particular structured format studied. It does not establish efficient support for arbitrary patterns of removed weights.
The paper further states that recovering accuracy is not its central focus. It reports quality evidence sufficient to motivate the execution experiments, but its principal contribution remains the kernel and its integration.
Hardware scope visible in the setup
A careful reading limits the main performance claims to the hardware family and instructions examined. The design makes extensive use of Ampere asynchronous copies, Tensor Core fragment layouts, and particular cache and shared-memory behavior.
Some principles may transfer: move less data, overlap independent stages, and distribute work evenly. The paper does not establish that the same layouts or tuning parameters deliver comparable gains on unrelated hardware.
Even within the tested devices, relative benefits vary. The A100’s stronger compute and memory system can make startup and partitioning overhead more visible, especially for small matrices. Results from a favorable large A10 multiplication therefore should not be assigned unchanged to every layer on every device.
Clock state also affects both runtime and the relevant ceiling. The authors study this directly, but no single quoted speedup can represent every thermal and sustained-execution condition.
The reliance on compiler scheduling creates another implementation boundary. The authors report cases where small changes to loading structure alter instruction order and performance. Their results establish an effective implementation under the studied conditions, rather than guaranteeing identical behavior from any superficially equivalent source code.
Workload scope visible in the setup
The complete-generation benchmark uses short input and output sequences by design. The authors explain that this broadens hardware compatibility and keeps attention from dominating.
A careful reader should therefore treat its large end-to-end gains as conditional on that workload balance. If a different workload spends more time in operations that MARLIN does not accelerate, the fraction of total time available to save changes.
The paper’s serving experiments add realism by varying arrival intensity, but they remain simulated server-client tests. They do not establish a universal latency guarantee across arbitrary request distributions, sequence lengths, or service policies.
TPOT and TTFT also describe different experiences. Faster output-token production does not on its own determine the time a user waits for the first response. The paper studies both, but only the TPOT discussion supplies the specific acceleration factors used in the chart.
The proposed explanation involving smaller operating batches is plausible and explicitly attributed to the authors. The account does not isolate every element of that feedback process experimentally. It should therefore remain an interpretation of the observed service behavior instead of a demonstrated law of all batching systems.
Accuracy comparisons include different preparation procedures
Quantization is lossy. The paper does not claim that compressed weights preserve every output or every task score exactly.
Its perplexity comparison supports a favorable size-quality tradeoff, but perplexity is only the quality measure discussed in that analysis. The claim does not automatically extend to every task or behavior that might matter in deployment.
The sparse-quantized accuracy comparison has an additional complication. Its preparation includes knowledge distillation on synthetic data. Improved scores therefore cannot be assigned solely to sparsity, quantization, or the execution kernel.
The kernel itself reorganizes and evaluates a representation; the quality of that representation depends on the preparation procedure. Keeping those responsibilities distinct is necessary when interpreting a fast sparse result alongside a favorable accuracy result.
The paper also does not provide detailed calibration settings or a full synthetic-data recipe in its methodological discussion. That limits the extent to which the narrative alone supports a precise reconstruction of the accuracy-recovery procedure.
Ideal references and practical comparisons answer different questions
The 3.87× ideal reference is grounded in the storage format and memory-bound reasoning used for the benchmark. It is not a guaranteed complete-generation speedup.
A realistic service must perform work beyond reading and multiplying quantized weights. The authors explicitly identify these additional costs when explaining the gap between layer-level and end-to-end acceleration.
Similarly, reaching the hardware roofline for a particular multiplication does not prove optimality for an entire inference system. It indicates strong utilization under the adopted workload and hardware accounting.
Comparisons among compressed kernels are also not perfectly format-identical. The paper notes differences in scale representation. Practical users may reasonably care about the complete implementations, but a strict analysis of one scheduling idea would need tighter control over such details.
Finally, the evidence does not assign a numerical share of the total gain to every optimization. The design is a coordinated system. Its success supports the combination, while the targeted observations explain selected choices within it.
Detailed numerical coverage is uneven
Several results are presented through figures and tables without corresponding numerical values in the narrative. The paper describes strong behavior across real layers, devices, and TTFT settings, but those descriptions do not support an invented set of exact measurements.
This is a limit on the precision of the conclusions that can be stated from the numerical account, rather than evidence that those experiments were absent. The defensible approach is to retain the authors’ qualitative findings where exact values are not stated.
The same applies to quality metrics. The accuracy-table discussion explains the preparation methods and the direction of the comparison, but does not give the task-level cells. It supports caution about confounding and a general claim of recoverable quality, without enabling a detailed numerical accuracy ranking.
What came after
Extensions already described by the authors
The paper identifies independent adoption of MARLIN’s approach beyond its original GPTQ format. A vLLM implementation adds support for AWQ. This is a concrete continuation of the central separation between choosing compressed weights and executing them efficiently.
Supporting another weight-quantization method does not mean that all representations are interchangeable. It means the kernel’s parallelization and execution ideas can be adapted while accommodating the format-specific details.
The authors also describe QQQ as an independent extension using 8-bit activations with 4-bit weights. This follows a different branch from the primary MARLIN configuration, where activations remain FP16.
That extension is significant because it takes the design towards a setting the paper initially treats as more complicated. Activation representation now participates in the compression problem, while the need to coordinate memory movement, conversion, and matrix arithmetic remains.
These follow-ups are specific evidence of reuse because the paper states what was extended. They support a narrower and more useful conclusion than simply counting citations: MARLIN’s execution organization was adapted to another weight format and to another combination of operand precisions.
Later citing work and the boundary of the evidence
EfficientQAT: Efficient Quantization-Aware Training for Large Language Models is identified as a later citing work from 2025. Its title places it in quantization-aware training, whereas MARLIN’s main contribution concerns execution of weights after their compact representation has been prepared.
The available account establishes the citation relationship but does not describe how EfficientQAT uses MARLIN. It therefore cannot support a claim that EfficientQAT adopts the striped scheduler, uses a particular MARLIN kernel, or reports a measured gain attributable to it. The relationship between preparation and execution is relevant, but a specific transfer remains unestablished here.
The later record adiletta-2026-rpu-reasoning-processing-unit also cites MARLIN. No technical description accompanies that record. Its citation shows that MARLIN entered the work’s reference context, but does not establish which part of the design it used or whether it implemented any part directly.
The same evidential boundary applies to Compressing Language Models for Specialized Domains, listed for 2026. Its title identifies specialized-domain compression as its subject. The record does not state whether MARLIN serves as an execution backend, a comparison point, or background motivation.
These later citations should consequently be distinguished from the explicitly described AWQ and QQQ extensions. For the extensions, the paper states the changed precision or format support. For the later citing works, the citation relationship is known but the technical dependency is not.
MARLIN’s demonstrated contribution to this line of work is the practical organization of compressed-weight computation across moderate batches. The later developments that can be described concretely preserve that execution question while changing the representation being consumed. The remaining citations identify further connections without, on their own, establishing what those connections implemented or measured.
Cite
Cite as Elias Frantar, Roberto L. Castro, Jiale Chen, Torsten Hoefler and Dan Alistarh. 2024. MARLIN: Mixed-Precision Auto-Regressive Parallel Inference on Large Language Models. PPoPP 2025.
@inproceedings{frantar2024marlin,
title = {{MARLIN: Mixed-Precision Auto-Regressive Parallel Inference on Large Language Models}},
author = {Elias Frantar, Roberto L. Castro, Jiale Chen, Torsten Hoefler and Dan Alistarh},
booktitle = {PPoPP 2025},
year = {2024},
eprint = {2408.11743},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2408.11743}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/frantar-2024-marlin-mixed-precision-auto-regressive/
References
- Ashkboos, S., Mohtashami, A., Croci, M. L., Li, B., Jaggi, M., Alistarh, D., Hoefler, T., and Hensman, J. Quarot: Outlier-free 4-bit inference in rotated llms. arXiv preprint arXiv:2404.00456, 2024. our card
- Chavan, A., Magazine, R., Kushwaha, S., Debbah, M., and Gupta, D. Faster and lighter llms: A survey on current challenges and way forward. arXiv preprint arXiv:2402.01799, 2024. OpenAlex ↗ · Scholar ↗
- Chee, J., Cai, Y., Kuleshov, V., and Sa, C. D. Quip: 2-bit quantization of large language models with guarantees, 2023. OpenAlex ↗ · Scholar ↗
- Dettmers, T. and Zettlemoyer, L. The case for 4-bit precision: k-bit inference scaling laws. arXiv preprint arXiv:2212.09720, 2022. our card
- Dettmers, T., Lewis, M., Belkada, Y., and Zettlemoyer, L. LLM.int8(): 8-bit matrix multiplication for transformers at scale. Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, 2022. our card
- Dettmers, T., Svirschevski, R., Egiazarian, V., Kuznedelev, D., Frantar, E., Ashkboos, S., Borzunov, A., Hoefler, T., and Alistarh, D. Spqr: A sparse-quantized representation for near-lossless llm weight compression. arXiv preprint arXiv:2306.03078, 2023. OpenAlex ↗ · Scholar ↗
- Egiazarian, V., Panferov, A., Kuznedelev, D., Frantar, E., Babenko, A., and Alistarh, D. Extreme compression of large language models via additive quantization. arXiv preprint arXiv:2401.06118, 2024. our card
- ExLlamaV2. Exllamav2: A memory efficient fork of hf transformers optimized for llama models. https://github.com/turboderp/exllamav2, 2024. Accessed: 2024-08-15. OpenAlex ↗ · Scholar ↗
- Frantar, E. and Alistarh, D. Sparsegpt: Massive language models can be accurately pruned in one-shot. In International Conference on Machine Learning (ICML), 2023. our card
- Frantar, E., Ashkboos, S., Hoefler, T., and Alistarh, D. Gptq: Accurate post-training quantization for generative pre-trained transformers. arXiv preprint arXiv:2210.17323, 2022. our card
- Griffin, A. Chatgpt creators openai are generating 100 billion words per day, ceo says, 2024. URL https://www.independent.co.uk/tech/chatgpt-openai-words-sam-altman-b2494900.html. OpenAlex ↗ · Scholar ↗
- Harris, M. et al. Optimizing parallel reduction in cuda. Nvidia developer technology, 2007. OpenAlex ↗ · Scholar ↗
- Kim, Y. J., Henry, R., Fahim, R., and Awadalla, H. H. Who says elephants can't run: Bringing large scale moe models into cloud scale production. arXiv preprint arXiv:2211.10017, 2022. OpenAlex ↗ · Scholar ↗
- Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J., Zhang, H., and Stoica, I. Efficient memory management for large language model serving with pagedattention. In Proceedings of the 29th Symposium on Operating Systems Principles, pp. 611–626, 2023. our card
- Lin, J., Tang, J., Tang, H., Yang, S., Dang, X., and Han, S. Awq: Activation-aware weight quantization for llm compression and acceleration. arXiv preprint arXiv:2306.00978, 2023. OpenAlex ↗ · Scholar ↗
- NVIDIA. NVIDIA A100 tensor core GPU architecture. https://images.nvidia.com/aem-dam/en-zz/Solutions/data-center/nvidia-ampere-architecture-whitepaper.pdf, 2020. our card
- NVIDIA. Nvidia a10 datasheet. https://www.nvidia.com/content/dam/en-zz/Solutions/Data-Center/a10/pdf/datasheet-new/nvidia-a10-datasheet.pdf, 2022a. OpenAlex ↗ · Scholar ↗
- NVIDIA. Nvidia instruction set. https://docs.nvidia.com/cuda/parallel-thread-execution/index.html\#warp-level-matrix-instructions-for-sparse-mma, 2022b. OpenAlex ↗ · Scholar ↗
- NVIDIA. Efficient GEMM in CUDA. https://github.com/NVIDIA/cutlass/blob/main/media/docs/efficient_gemm.md, 2024a. OpenAlex ↗ · Scholar ↗
- NVIDIA. CUTLASS convolution. https://github.com/NVIDIA/cutlass/blob/main/media/docs/implicit_gemm_convolution.md, 2024b. OpenAlex ↗ · Scholar ↗
- Osama, M., Merrill, D., Cecka, C., Garland, M., and Owens, J. D. Stream-k: Work-centric parallel decomposition for dense matrix-matrix multiplication on the GPU. In ACM SIGPLAN Annual Symposium on Principles and Practice of Parallel Programming, 2023. OpenAlex ↗ · Scholar ↗
- Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019. our card
- Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., and Sutskever, I. Language models are unsupervised multitask learners. OpenAI blog, 10 (8):0 9, 2019. OpenAlex ↗ · Scholar ↗
- Shao, W., Chen, M., Zhang, Z., Xu, P., Zhao, L., Li, Z., Zhang, K., Gao, P., Qiao, Y., and Luo, P. Omniquant: Omnidirectionally calibrated quantization for large language models, 2023. our card
- Sheng, Y., Zheng, L., Yuan, B., Li, Z., Ryabinin, M., Chen, B., Liang, P., Ré, C., Stoica, I., and Zhang, C. Flexgen: High-throughput generative inference of large language models with a single gpu. In International Conference on Machine Learning, pp. 31094–31116. PMLR, 2023. our card
- Sun, W., Li, A., Geng, T., Stuijk, S., and Corporaal, H. Dissecting tensor cores via microbenchmarks: Latency, throughput and numeric behaviors. IEEE Transactions on Parallel and Distributed Systems, 340 (1):0 246–261, 2022. OpenAlex ↗ · Scholar ↗
- TII UAE. The Falcon family of large language models. https://huggingface.co/tiiuae, May 2023. OpenAlex ↗ · Scholar ↗
- Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023a. our card
- Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023b. our card
- vLLM Project Contributors. vllm project pull request #6612: Add support for awq marlin. https://github.com/vllm-project/vllm/pull/6612, 2024. Accessed: 2024-08-15. OpenAlex ↗ · Scholar ↗
- Xiao, G., Lin, J., Seznec, M., Demouth, J., and Han, S. Smoothquant: Accurate and efficient post-training quantization for large language models. arXiv preprint arXiv:2211.10438, 2022. our card
- Zhang, S., Roller, S., Goyal, N., Artetxe, M., Chen, M., Chen, S., Dewan, C., Diab, M., Li, X., Lin, X. V., et al. OPT: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022. our card
- Zhang, Y., Zhang, P., Huang, M., Xiang, J., Wang, Y., Wang, C., Zhang, Y., Yu, L., Liu, C., and Lin, W. Qqq: Quality quattuor-bit quantization for large language models, 2024. OpenAlex ↗ · Scholar ↗