Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
4c584fc6
Unverified
Commit
4c584fc6
authored
Mar 24, 2025
by
Stefan He
Committed by
GitHub
Mar 24, 2025
Browse files
Fix circular imports in gptq.py and unblock test explorer (#4736)
parent
77cf771e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
python/sglang/srt/layers/quantization/gptq.py
python/sglang/srt/layers/quantization/gptq.py
+3
-1
python/sglang/test/__init__.py
python/sglang/test/__init__.py
+0
-0
python/sglang/test/attention/__init__.py
python/sglang/test/attention/__init__.py
+0
-0
No files found.
python/sglang/srt/layers/quantization/gptq.py
View file @
4c584fc6
...
...
@@ -6,7 +6,6 @@ import torch
from
sglang.srt.layers.linear
import
LinearBase
from
sglang.srt.layers.quantization.base_config
import
QuantizationConfig
from
sglang.srt.layers.vocab_parallel_embedding
import
ParallelLMHead
from
sglang.srt.utils
import
is_cuda
_is_cuda
=
is_cuda
()
...
...
@@ -434,6 +433,9 @@ class MarlinConfig(QuantizationConfig):
from
vllm.model_executor.layers.quantization.marlin
import
MarlinLinearMethod
# Delay import to avoid circular dependency
from
sglang.srt.layers.vocab_parallel_embedding
import
ParallelLMHead
if
isinstance
(
layer
,
LinearBase
)
or
(
isinstance
(
layer
,
ParallelLMHead
)
and
self
.
lm_head_quantized
):
...
...
python/sglang/test/__init__.py
0 → 100644
View file @
4c584fc6
python/sglang/test/attention/__init__.py
0 → 100644
View file @
4c584fc6
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment