Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed audiolm cannot run from local path bug #314

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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