merge pr
This commit is contained in:
@@ -27,6 +27,7 @@ fn minicpm4_config() -> Result<()> {
|
||||
#[test]
|
||||
fn voxcpm_config() -> Result<()> {
|
||||
// cargo test -F cuda,flash-attn minicpm4_config -- --nocapture
|
||||
// cargo test -F cuda minicpm4_config -- --nocapture
|
||||
let model_path = "/home/jhq/huggingface_model/openbmb/VoxCPM-0.5B/";
|
||||
let config_path = model_path.to_string() + "/config.json";
|
||||
let config: VoxCPMConfig = serde_json::from_slice(&std::fs::read(config_path)?)?;
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ use anyhow::Result;
|
||||
#[test]
|
||||
fn messy_test() -> Result<()> {
|
||||
let device = candle_core::Device::Cpu;
|
||||
let wav_path = "./assets/audio/example.wav";
|
||||
let wav_path = "./assets/audio/voice_01.wav";
|
||||
let audio_tensor = load_audio_with_resample(wav_path, device, Some(16000))?;
|
||||
|
||||
println!("audio_tensor: {}", audio_tensor);
|
||||
|
||||
@@ -72,7 +72,7 @@ async fn qwen2_5vl_stream() -> Result<()> {
|
||||
"type": "image",
|
||||
"image_url":
|
||||
{
|
||||
"url": "file://./assets/img/ocr_test.png"
|
||||
"url": "file://./assets/img/ocr_test1.png"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user