vllm serve meta-llama/Llama-3.1-8B-Instruct --tensor-parallel-size 2

Category: AI/ML Tooling

vllm serve meta-llama/Llama-3.1-8B-Instruct --tensor-parallel-size 2

Shard the model across two GPUs

Splits the model across two GPUs with tensor parallelism, letting you serve models too large for one card. Each GPU holds half the weights and they cooperate on every forward pass. Requires GPUs on the same machine or fast interconnect, and a model with enough parameters to justify it.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.