From c0d5fd4c2ca59a8ea45284420f66a9ce2d699ebc Mon Sep 17 00:00:00 2001 From: zhycheng614 Date: Wed, 11 Dec 2024 20:04:52 +0000 Subject: [PATCH 1/2] fixed audiolm cannot run from local path bug --- nexa/cli/entry.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nexa/cli/entry.py b/nexa/cli/entry.py index ece27ca7..59449bde 100644 --- a/nexa/cli/entry.py +++ b/nexa/cli/entry.py @@ -125,8 +125,12 @@ def run_ggml_inference(args): # from nexa.gguf.nexa_inference_tts import NexaTTSInference # inference = NexaTTSInference(model_path=model_path, local_path=local_path, **kwargs) elif run_type == "AudioLM": - from nexa.gguf.nexa_inference_audio_lm import NexaAudioLMInference - inference = NexaAudioLMInference(model_path=model_path, local_path=local_path, **kwargs) + if is_local_path: + from nexa.gguf.nexa_inference_audio_lm import NexaAudioLMInference + inference = NexaAudioLMInference(model_path=model_path, local_path=local_path, projector_local_path=projector_local_path, **kwargs) + else: + from nexa.gguf.nexa_inference_audio_lm import NexaAudioLMInference + inference = NexaAudioLMInference(model_path=model_path, local_path=local_path, **kwargs) else: print(f"Unknown task: {run_type}. Skipping inference.") return From 87edf1e19add96c00628a85166145af58f939fd3 Mon Sep 17 00:00:00 2001 From: zhycheng614 Date: Wed, 11 Dec 2024 20:17:01 +0000 Subject: [PATCH 2/2] removed cmake install in ci --- .github/workflows/ci.yaml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c63c3e1f..3f5d276c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,17 +40,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install build pytest - shell: bash - - - name: Install CMake (if needed) - if: runner.os == 'macOS' || runner.os == 'Windows' - run: | - if [[ "$RUNNER_OS" == "Windows" ]]; then - choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' || exit 1 - elif [[ "$RUNNER_OS" == "macOS" ]]; then - brew install cmake - fi + python -m pip install build pytest wheel setuptools scikit-build-core shell: bash - name: Build DLL (Windows)