update code format

This commit is contained in:
jhqxxx
2025-10-26 21:57:53 +08:00
parent 6244ffe324
commit 0e4ca66aca
12 changed files with 54 additions and 52 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
use aha::models::{
minicpm4::config::MiniCPM4Config, qwen2_5vl::config::Qwen2_5VLConfig, qwen3vl::config::Qwen3VLConfig, voxcpm::config::VoxCPMConfig
minicpm4::config::MiniCPM4Config, qwen2_5vl::config::Qwen2_5VLConfig,
qwen3vl::config::Qwen3VLConfig, voxcpm::config::VoxCPMConfig,
};
use anyhow::Result;
+1 -1
View File
@@ -1,4 +1,4 @@
use aha::utils::{tensor_utils::bitor_tensor};
use aha::utils::tensor_utils::bitor_tensor;
use anyhow::Result;
use candle_core::Tensor;
+2 -2
View File
@@ -50,7 +50,7 @@ fn voxcpm_weight() -> Result<()> {
fn qwen3vl_weight() -> Result<()> {
let model_path = "/home/jhq/huggingface_model/Qwen/Qwen3-VL-4B-Instruct/";
let model_list = find_type_files(model_path, "safetensors")?;
let device = Device::Cpu;
for m in &model_list {
let weights = safetensors::load(m, &device)?;
@@ -60,4 +60,4 @@ fn qwen3vl_weight() -> Result<()> {
}
println!("model_list: {:?}", model_list);
Ok(())
}
}