Remove wrong imports from sglang.python (#10493)

This commit is contained in:
Liangsheng Yin
2025-09-16 13:12:21 +08:00
committed by GitHub
parent 16e9335998
commit fa5d0bf6a5
2 changed files with 2 additions and 6 deletions

View File

@@ -29,8 +29,6 @@ import time
from http import HTTPStatus
from typing import Any, AsyncIterator, Callable, Dict, List, Optional, Union
import setproctitle
from sglang.srt.tracing.trace import process_tracing_init, trace_set_thread_info
# Fix a bug of Python threading

View File

@@ -30,11 +30,8 @@ import torch
from torch import nn
from transformers import PretrainedConfig
from sglang.python.sglang.srt.distributed.parallel_state import (
get_tensor_model_parallel_rank,
)
from sglang.python.sglang.srt.utils import add_prefix, make_layers
from sglang.srt.distributed import get_pp_group, get_tensor_model_parallel_world_size
from sglang.srt.distributed.parallel_state import get_tensor_model_parallel_rank
from sglang.srt.layers.activation import SiluAndMul
from sglang.srt.layers.layernorm import RMSNorm
from sglang.srt.layers.linear import (
@@ -57,6 +54,7 @@ from sglang.srt.model_loader.weight_utils import (
default_weight_loader,
kv_cache_scales_loader,
)
from sglang.srt.utils import add_prefix, make_layers
class SolarMLP(nn.Module):