Skip to content

Commit

Permalink
[MISC] Always import version library first in the vllm package (vllm-…
Browse files Browse the repository at this point in the history
…project#12979)

Signed-off-by: Lu Fang <lufang@fb.com>
  • Loading branch information
houseroad authored and ShangmingCai committed Feb 10, 2025
1 parent 4fe34f1 commit c710afb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vllm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# SPDX-License-Identifier: Apache-2.0
"""vLLM: a high-throughput and memory-efficient inference engine for LLMs"""
# The version.py should be independent library, and we always import the
# version library first. Such assumption is critical for some customization.
from .version import __version__, __version_tuple__ # isort:skip

import os

import torch
Expand All @@ -19,8 +23,6 @@
from vllm.pooling_params import PoolingParams
from vllm.sampling_params import SamplingParams

from .version import __version__, __version_tuple__

# set some common config/environment variables that should be set
# for all processes created by vllm and all processes
# that interact with vllm workers.
Expand Down

0 comments on commit c710afb

Please sign in to comment.