[CI] Add online e2e test for qwen2.5 omni (#1668)
Signed-off-by: Junhong Liu <98734602+LJH-LBJ@users.noreply.github.com> Signed-off-by: Junhong Liu <ljh_lbj@163.com>
This commit is contained in:
1 parent
e776082095
commit
f3d078e9f2
7 files changed
+156
-4
No files matched your search
@@ -113,6 +113,15 @@ class Qwen2_5OmniForConditionalGeneration(
|
||||
self.model.set_suppress_start_id(t2w_token_end_id + 1)
|
||||
self.requires_raw_input_tokens = True
|
||||
|
||||
# Initialize thinker_embedding from config (random weights).
|
||||
# For load_format: dummy this is the final state;
|
||||
# for normal loading, load_weights() overwrites with real weights.
|
||||
self.thinker_embedding = nn.Embedding(
|
||||
self.thinker_config.text_config.vocab_size,
|
||||
self.thinker_config.text_config.hidden_size,
|
||||
)
|
||||
self._init_special_tokens_embeddings()
|
||||
|
||||
elif self.model_stage == "code2wav":
|
||||
self.thinker = None
|
||||
self.talker = None
|
||||
|
||||
Reference in new issue
Block a user