File tree Expand file tree Collapse file tree 3 files changed +32
-4
lines changed
examples/models/moshi/mimi Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,36 @@ jobs:
290
290
# run e2e (export, tokenizer and runner)
291
291
PYTHON_EXECUTABLE=python bash .ci/scripts/test_llava.sh
292
292
293
+ test-moshi-linux :
294
+ name : test-moshi-linux
295
+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
296
+ permissions :
297
+ id-token : write
298
+ contents : read
299
+ strategy :
300
+ fail-fast : false
301
+ with :
302
+ runner : linux.2xlarge
303
+ docker-image : executorch-ubuntu-22.04-clang12
304
+ submodules : ' true'
305
+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
306
+ timeout : 90
307
+ script : |
308
+ # The generic Linux job chooses to use base env, not the one setup by the image
309
+ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
310
+ conda activate "${CONDA_ENV}"
311
+
312
+ PYTHON_EXECUTABLE=python bash .ci/scripts/setup-linux.sh --build-tool "cmake"
313
+
314
+ # install Mimi requirements
315
+ bash examples/models/moshi/mimi/install_requirements.sh
316
+
317
+ # reinstall executorch
318
+ bash ./install_executorch.sh
319
+
320
+ # run python unittest
321
+ python -m unittest examples.models.moshi.mimi.test_mimi
322
+
293
323
test-quantized-aot-lib-linux :
294
324
name : test-quantized-aot-lib-linux
295
325
uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
Original file line number Diff line number Diff line change 8
8
set -x
9
9
10
10
pip install -U moshi
11
- pip install bitsandbytes
11
+ pip install bitsandbytes soundfile
12
12
# Run llama2/install requirements for torchao deps
13
13
SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
14
-
15
- bash " $SCRIPT_DIR " /../llama/install_requirements.sh
14
+ bash " $SCRIPT_DIR " /../../llama/install_requirements.sh
Original file line number Diff line number Diff line change 2
2
import os
3
3
import random
4
4
import unittest
5
- import urllib
6
5
7
6
import numpy as np
8
7
import requests
You can’t perform that action at this time.
0 commit comments