Skip to content

Commit

Permalink
Merge pull request #314 from NexaAI/perry-debug
Browse files Browse the repository at this point in the history
fixed audiolm cannot run from local path bug
  • Loading branch information
zhiyuan8 authored Dec 11, 2024
2 parents 33f6bab + 87edf1e commit b40ee0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 6 additions & 2 deletions nexa/cli/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b40ee0d

Please sign in to comment.