"vllm/vscode:/vscode.git/clone" did not exist on "3b2005e1db79efe2ea4587035eb2e7ced6e258cb"
Unverified Commit 63d8eabe authored by Alexey Kiryushin's avatar Alexey Kiryushin Committed by GitHub
Browse files

[Bugfix]: Fix is_embedding_layer condition in VocabParallelEmbedding (#15824)


Signed-off-by: default avataralexwl <alexey.a.kiryushin@gmail.com>
parent e830b013
......@@ -235,7 +235,7 @@ class VocabParallelEmbedding(torch.nn.Module):
# If we are making an embedding layer, then our quantization linear
# method must implement the embedding operation. If we are another
# layer type like ParallelLMHead, this is not important.
is_embedding_layer = type(self.__class__) is VocabParallelEmbedding
is_embedding_layer = type(self) is VocabParallelEmbedding
quant_method_implements_embedding = method_has_implemented_embedding(
type(quant_method))
if is_embedding_layer and not quant_method_implements_embedding:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment