Reduce AutoWeightsLoader kwargs (#53106)

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
Harry Mellor
2026-08-20 15:40:11 +00:00
committed by GitHub
parent 2dd17225c6
commit 1fe3a1571a
84 changed files with 577 additions and 568 deletions
+1 -2
View File
@@ -26,7 +26,6 @@
from collections.abc import Iterable
from itertools import islice
from typing import ClassVar
import torch
from torch import nn
@@ -343,7 +342,7 @@ class LlamaDecoderLayer(nn.Module):
},
)
class LlamaModel(nn.Module, EagleModelMixin):
hf_to_vllm_mapper: ClassVar[WeightsMapper] = WeightsMapper(
hf_to_vllm_mapper = WeightsMapper(
orig_to_new_stacked={
# weight_name: (param_name, shard_id)
".q_proj": (".qkv_proj", "q"),