Skip to content
Query Feedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  1. Home /
  2. AI Glossaries /
  3. LLMs /
  4. What is Tensor Parallelism?
LLMs

What is Tensor Parallelism?

Updated September 26, 2026 Read 3 min

Tensor parallelism splits individual weight matrices across multiple GPUs so they compute a single layer together, exchanging partial results. It is the standard way to run very large models within one server.

Contents 11
  1. 01Key takeaways
  2. 02Tensor parallelism explained in simple terms
  3. 03How it works
  4. 04A worked example
  5. 05Why fast interconnect matters
  6. 06Tensor vs pipeline parallelism
  7. 07At inference
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

Tensor parallelism splits individual weight matrices across several GPUs so that they compute one layer together, each handling part of the matrix and exchanging results. It is a form of model parallelism that operates within layers, as opposed to pipeline parallelism, which splits between layers. Introduced at scale by NVIDIA’s Megatron-LM work in 2019, it is now standard for training and serving very large models.

Key takeaways

  • Each GPU holds a slice of every weight matrix, not whole layers.
  • Devices must communicate within every layer, so links must be fast.
  • It is usually kept inside one server, across NVLink or similar interconnects.
  • It reduces both memory per GPU and per-token latency.
  • Tensor-parallel size is typically 2, 4 or 8, matching GPUs per node.

Tensor parallelism explained in simple terms

Four accountants work on one enormous spreadsheet. Rather than each taking different pages, they each take a quarter of every page’s columns, compute their part, and combine totals at the end of each row. They must talk constantly, so they sit at the same table, not in different buildings.

How it works

Take a feed-forward layer that multiplies input by a large weight matrix.

  1. Split the matrix by columns across GPUs; each computes part of the output.
  2. Each GPU applies the activation function to its slice.
  3. The second matrix is split by rows, so each GPU produces a partial result for the full output.
  4. An all-reduce sums the partial results across GPUs.
  5. Every GPU now holds the complete layer output and proceeds to the next layer.

Attention layers split naturally too: different heads go to different GPUs, with an all-reduce after the output projection.

A worked example

A 70-billion-parameter model needs about 140 GB for 16-bit weights, more than a single 80 GB GPU can hold. With tensor parallelism across 4 GPUs:

  • Each GPU stores about 35 GB of weights.
  • Each holds a quarter of every matrix.
  • Each layer requires communication, so the GPUs must be tightly connected.

The model now fits, and each token is produced faster than one GPU could manage, since four devices share the work.

Why fast interconnect matters

Tensor parallelism communicates at least twice per transformer layer. In a model with 80 layers, that is well over a hundred synchronisations per token. Over NVLink inside a server, this is fast enough to be worthwhile. Over ordinary Ethernet between servers, the communication cost usually outweighs the benefit, which is why tensor parallelism stays within a node and pipeline or data parallelism is used across nodes.

Tensor vs pipeline parallelism

AspectTensor parallelismPipeline parallelism
SplitsInside each layerGroups of layers
CommunicationFrequent, small, every layerLess frequent, activations between stages
Interconnect needVery highModerate
Latency effectReduces per-token latencyCan add latency through stages
Typical scopeWithin a serverAcross servers

At inference

Serving engines such as vLLM and TensorRT-LLM support tensor parallelism with a setting for how many GPUs to use. It is the standard way to serve models that exceed single-GPU memory, and it also improves tokens per second for a single request, which pipeline parallelism does not.

Limitations

  • Communication overhead grows with the number of GPUs.
  • Efficiency falls sharply without high-bandwidth links.
  • Some dimensions must divide evenly by the parallel size.
  • More complex deployment and debugging than single-GPU serving.

Common Use Cases

01

Serving large models

Run models that exceed one GPU's memory.

02

Lower latency generation

Share per-token work across GPUs in a server.

03

Large-scale training

Combine with pipeline and data parallelism in clusters.

04

MoE serving

Split expert layers across devices within a node.

05

High-memory workloads

Support long contexts by spreading the KV cache.

06

On-premises deployment

Use multi-GPU servers for private hosting.

Frequently Asked Questions

Splitting individual weight matrices across GPUs so they compute a layer together, exchanging partial results.

Tensor parallelism splits within layers; pipeline parallelism assigns different layers to different devices.

It synchronises at least twice per layer, so slow links quickly become the bottleneck.

Usually the number of GPUs in one server, commonly 2, 4 or 8.

Yes. Splitting each token's work across GPUs can increase per-request generation speed.

Related Terms

  • Model Parallelism
  • Pipeline Parallelism
  • Data Parallelism
  • LLM Inference
  • Multi-Head Attention
  • Tokens per Second

Related AI Terms

What is Multi-Head Attention?Multi-head attention runs several attention operations in parallel, each with its own learned projections, so a model can…What is Prefix Tuning?Prefix tuning is a parameter-efficient fine-tuning method that learns trainable vectors inserted into the attention keys and values…What is an Encoder-Decoder Model?An encoder-decoder model, also called a sequence-to-sequence model, uses one component to read and understand the input and…What is an Attention Mechanism?An attention mechanism is a technique that lets a neural network focus on the most relevant parts of…What is Self-Attention?Self-attention is a mechanism where each position in a sequence attends to every other position in the same…What is Positional Encoding?Positional encoding is the method transformers use to represent the order of tokens in a sequence, because the…

Contents

  1. 01Key takeaways
  2. 02Tensor parallelism explained in simple terms
  3. 03How it works
  4. 04A worked example
  5. 05Why fast interconnect matters
  6. 06Tensor vs pipeline parallelism
  7. 07At inference
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

AI Topic

  • LLMs

Related Terms

  • What is Multi-Head Attention?
  • What is Prefix Tuning?
  • What is an Encoder-Decoder Model?
  • What is an Attention Mechanism?
  • What is Self-Attention?
  • What is Positional Encoding?

Quick Navigation

  • Common Use Cases
  • Frequently Asked Questions
  • Related Terms
  • Back to top

Details

Updated
September 26, 2026
Read
3 min
  • Forum
  • Submit a tool
  • Submit Guest Post
  • List Your Startup
  • Privacy Policy
  • Editorial Policy
  • Account
  • Contact
  • AI Productivity
  • AI Video
  • AI Coding
  • AI Chatbots
  • Sales
  • AI Business
  • View All Tools

Subscribe our Newsletter

Get weekly exclusive content - No spam.

Copyright © 2026 -  Query Feedz

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}