delete some code
This commit is contained in:
@@ -49,7 +49,7 @@ impl<'a> Qwen2_5VLGenerateModel<'a> {
|
||||
let vb = unsafe { VarBuilder::from_mmaped_safetensors(&model_list, dtype, device)? };
|
||||
let qwen2_5_vl = Qwen2_5VLModel::new(cfg, vb)?;
|
||||
let model_name = std::path::Path::new(path)
|
||||
.file_name()
|
||||
.file_name()
|
||||
.and_then(|s| s.to_str())
|
||||
.unwrap_or("qwen2.5vl")
|
||||
.to_string();
|
||||
|
||||
@@ -4,11 +4,12 @@ use candle_nn::{Init, Linear, Module, RmsNorm, VarBuilder, linear, linear_no_bia
|
||||
|
||||
use crate::{
|
||||
models::{
|
||||
common::{GateUpDownMLP, eager_attention_forward}, qwen2::Qwen2DecoderLayer, qwen2_5vl::config::{Qwen2_5VLConfig, RopeScaling}
|
||||
common::{GateUpDownMLP, eager_attention_forward},
|
||||
qwen2::Qwen2DecoderLayer,
|
||||
qwen2_5vl::config::{Qwen2_5VLConfig, RopeScaling},
|
||||
},
|
||||
position_embed::rope::{
|
||||
Qwen2_5VLTextRotaryEmbedding, Qwen2_5VisionRotaryEmbedding, apply_rotary_pos_emb,
|
||||
apply_rotary_pos_emb_vision,
|
||||
Qwen2_5VLTextRotaryEmbedding, Qwen2_5VisionRotaryEmbedding, apply_rotary_pos_emb_vision,
|
||||
},
|
||||
utils::tensor_utils::{
|
||||
get_equal_mask, get_vision_next_indices, masked_scatter_dim0, nonzero_index,
|
||||
@@ -511,7 +512,6 @@ impl Qwen2_5VLVisionModel {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Qwen2_5VLTextModel {
|
||||
pub embed_tokens: candle_nn::Embedding,
|
||||
|
||||
Reference in New Issue
Block a user