fix: add serde default for tie_word_embeddings in Qwen3VLTextConfig

- Add #[serde(default)] attribute to tie_word_embeddings field
- Fixes deserialization error when field is missing from config.json
- Resolves: missing field 'tie_word_embeddings' error for Qwen3-VL-8B model
This commit is contained in:
Lidongliang
2025-11-14 22:49:01 +08:00
parent d15cd45315
commit 410f506965
+1
View File
@@ -42,6 +42,7 @@ pub struct Qwen3VLTextConfig {
pub rms_norm_eps: f64,
pub rope_scaling: RopeScaling,
pub rope_theta: f32,
#[serde(default)]
pub tie_word_embeddings: bool,
pub use_cache: bool,
pub vocab_size: usize,