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