Skip to content

Commit

Permalink
[Doc] Update documentation on Tensorizer (vllm-project#5471)
Browse files Browse the repository at this point in the history
  • Loading branch information
sangstar authored and jimpang committed Jul 8, 2024
1 parent 2de47aa commit c0d00cd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Documentation
serving/env_vars
serving/usage_stats
serving/integrations
serving/tensorizer

.. toctree::
:maxdepth: 1
Expand Down
12 changes: 12 additions & 0 deletions docs/source/serving/tensorizer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.. _tensorizer:

Loading Models with CoreWeave's Tensorizer
==========================================
vLLM supports loading models with `CoreWeave's Tensorizer <https://docs.coreweave.com/coreweave-machine-learning-and-ai/inference/tensorizer>`_.
vLLM model tensors that have been serialized to disk, an HTTP/HTTPS endpoint, or S3 endpoint can be deserialized
at runtime extremely quickly directly to the GPU, resulting in significantly
shorter Pod startup times and CPU memory usage. Tensor encryption is also supported.

For more information on CoreWeave's Tensorizer, please refer to
`CoreWeave's Tensorizer documentation <https://github.com/coreweave/tensorizer>`_. For more information on serializing a vLLM model, as well a general usage guide to using Tensorizer with vLLM, see
the `vLLM example script <https://docs.vllm.ai/en/stable/getting_started/examples/tensorize_vllm_model.html>`_.
2 changes: 1 addition & 1 deletion vllm/engine/arg_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def add_cli_args(
'* "dummy" will initialize the weights with random values, '
'which is mainly for profiling.\n'
'* "tensorizer" will load the weights using tensorizer from '
'CoreWeave. See the Tensorize vLLM Model script in the Examples'
'CoreWeave. See the Tensorize vLLM Model script in the Examples '
'section for more information.\n'
'* "bitsandbytes" will load the weights using bitsandbytes '
'quantization.\n')
Expand Down

0 comments on commit c0d00cd

Please sign in to comment.