[Feat] Add native Mooncake KV transfer from AR to DiT (#7166)
Signed-off-by: asukaqaq-s <1311722138@qq.com> Signed-off-by: Acerak01-fy <wfy2003324@163.com> Co-authored-by: Acerak01-fy <wfy2003324@163.com> Co-authored-by: amy-why-3459 <wuhaiyan17@huawei.com>
This commit is contained in:
53 files changed
+2564
-204
No files matched your search
@@ -1536,7 +1536,10 @@ class HunyuanImage3ForConditionalGeneration(nn.Module, SupportsMultiModal, Suppo
|
||||
# Used to embed timestep information into the input sequence.
|
||||
self.timestep_emb = TimestepEmbedder(hidden_size=config.hidden_size)
|
||||
|
||||
tokenizer = get_tokenizer(vllm_config.model_config.tokenizer)
|
||||
tokenizer = get_tokenizer(
|
||||
vllm_config.model_config.tokenizer,
|
||||
trust_remote_code=vllm_config.model_config.trust_remote_code,
|
||||
)
|
||||
self._mrope_img_token_id = tokenizer.convert_tokens_to_ids("<img>")
|
||||
self._mrope_boi_token_id = tokenizer.convert_tokens_to_ids("<boi>")
|
||||
self._mrope_eoi_token_id = tokenizer.convert_tokens_to_ids("<eoi>")
|
||||
|
||||
Reference in new issue
Block a user