forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
196 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# faster-whisper | ||
|
||
> [`CONTAINERS`](#user-content-containers) [`IMAGES`](#user-content-images) [`RUN`](#user-content-run) [`BUILD`](#user-content-build) | ||
docs.md | ||
<details open> | ||
<summary><b><a id="containers">CONTAINERS</a></b></summary> | ||
<br> | ||
|
||
| **`faster-whisper`** | | | ||
| :-- | :-- | | ||
| Requires | `L4T >=34.1.0` | | ||
| Dependencies | [`build-essential`](/packages/build-essential) [`python`](/packages/python) [`cmake`](/packages/cmake/cmake_pip) [`ctranslate2`](/packages/ctranslate2) [`huggingface_hub`](/packages/llm/huggingface_hub) [`numpy`](/packages/numpy) | | ||
| Dependants | [`whisperx`](/packages/audio/whisperx) | | ||
| Dockerfile | [`Dockerfile`](Dockerfile) | | ||
|
||
</details> | ||
|
||
<details open> | ||
<summary><b><a id="run">RUN CONTAINER</a></b></summary> | ||
<br> | ||
|
||
To start the container, you can use the [`run.sh`](/docs/run.md)/[`autotag`](/docs/run.md#autotag) helpers or manually put together a [`docker run`](https://docs.docker.com/engine/reference/commandline/run/) command: | ||
```bash | ||
# automatically pull or build a compatible container image | ||
./run.sh $(./autotag faster-whisper) | ||
|
||
# or if using 'docker run' (specify image and mounts/ect) | ||
sudo docker run --runtime nvidia -it --rm --network=host faster-whisper:35.2.1 | ||
|
||
``` | ||
> <sup>[`run.sh`](/docs/run.md) forwards arguments to [`docker run`](https://docs.docker.com/engine/reference/commandline/run/) with some defaults added (like `--runtime nvidia`, mounts a `/data` cache, and detects devices)</sup><br> | ||
> <sup>[`autotag`](/docs/run.md#autotag) finds a container image that's compatible with your version of JetPack/L4T - either locally, pulled from a registry, or by building it.</sup> | ||
To mount your own directories into the container, use the [`-v`](https://docs.docker.com/engine/reference/commandline/run/#volume) or [`--volume`](https://docs.docker.com/engine/reference/commandline/run/#volume) flags: | ||
```bash | ||
./run.sh -v /path/on/host:/path/in/container $(./autotag faster-whisper) | ||
``` | ||
To launch the container running a command, as opposed to an interactive shell: | ||
```bash | ||
./run.sh $(./autotag faster-whisper) my_app --abc xyz | ||
``` | ||
You can pass any options to [`run.sh`](/docs/run.md) that you would to [`docker run`](https://docs.docker.com/engine/reference/commandline/run/), and it'll print out the full command that it constructs before executing it. | ||
</details> | ||
<details open> | ||
<summary><b><a id="build">BUILD CONTAINER</b></summary> | ||
<br> | ||
|
||
If you use [`autotag`](/docs/run.md#autotag) as shown above, it'll ask to build the container for you if needed. To manually build it, first do the [system setup](/docs/setup.md), then run: | ||
```bash | ||
./build.sh faster-whisper | ||
``` | ||
The dependencies from above will be built into the container, and it'll be tested during. See [`./build.sh --help`](/jetson_containers/build.py) for build options. | ||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# whisperx | ||
|
||
> [`CONTAINERS`](#user-content-containers) [`IMAGES`](#user-content-images) [`RUN`](#user-content-run) [`BUILD`](#user-content-build) | ||
docs.md | ||
<details open> | ||
<summary><b><a id="containers">CONTAINERS</a></b></summary> | ||
<br> | ||
|
||
| **`whisperx`** | | | ||
| :-- | :-- | | ||
| Builds | [](https://github.com/dusty-nv/jetson-containers/actions/workflows/whisperx_jp60.yml) [](https://github.com/dusty-nv/jetson-containers/actions/workflows/whisperx_jp51.yml) | | ||
| Requires | `L4T >=34.1.0` | | ||
| Dependencies | [`build-essential`](/packages/build-essential) [`cuda`](/packages/cuda/cuda) [`cudnn`](/packages/cuda/cudnn) [`python`](/packages/python) [`tensorrt`](/packages/tensorrt) [`numpy`](/packages/numpy) [`cmake`](/packages/cmake/cmake_pip) [`onnx`](/packages/onnx) [`pytorch`](/packages/pytorch) [`torchaudio`](/packages/pytorch/torchaudio) [`ctranslate2`](/packages/ctranslate2) [`huggingface_hub`](/packages/llm/huggingface_hub) [`faster-whisper`](/packages/audio/faster-whisper) [`torchvision`](/packages/pytorch/torchvision) [`rust`](/packages/rust) [`transformers`](/packages/llm/transformers) | | ||
| Dockerfile | [`Dockerfile`](Dockerfile) | | ||
| Images | [`dustynv/whisperx:r36.2.0`](https://hub.docker.com/r/dustynv/whisperx/tags) `(2024-01-19, 8.1GB)` | | ||
|
||
</details> | ||
|
||
<details open> | ||
<summary><b><a id="images">CONTAINER IMAGES</a></b></summary> | ||
<br> | ||
|
||
| Repository/Tag | Date | Arch | Size | | ||
| :-- | :--: | :--: | :--: | | ||
| [`dustynv/whisperx:r36.2.0`](https://hub.docker.com/r/dustynv/whisperx/tags) | `2024-01-19` | `arm64` | `8.1GB` | | ||
|
||
> <sub>Container images are compatible with other minor versions of JetPack/L4T:</sub><br> | ||
> <sub> • L4T R32.7 containers can run on other versions of L4T R32.7 (JetPack 4.6+)</sub><br> | ||
> <sub> • L4T R35.x containers can run on other versions of L4T R35.x (JetPack 5.1+)</sub><br> | ||
</details> | ||
<details open> | ||
<summary><b><a id="run">RUN CONTAINER</a></b></summary> | ||
<br> | ||
|
||
To start the container, you can use the [`run.sh`](/docs/run.md)/[`autotag`](/docs/run.md#autotag) helpers or manually put together a [`docker run`](https://docs.docker.com/engine/reference/commandline/run/) command: | ||
```bash | ||
# automatically pull or build a compatible container image | ||
./run.sh $(./autotag whisperx) | ||
|
||
# or explicitly specify one of the container images above | ||
./run.sh dustynv/whisperx:r36.2.0 | ||
|
||
# or if using 'docker run' (specify image and mounts/ect) | ||
sudo docker run --runtime nvidia -it --rm --network=host dustynv/whisperx:r36.2.0 | ||
``` | ||
> <sup>[`run.sh`](/docs/run.md) forwards arguments to [`docker run`](https://docs.docker.com/engine/reference/commandline/run/) with some defaults added (like `--runtime nvidia`, mounts a `/data` cache, and detects devices)</sup><br> | ||
> <sup>[`autotag`](/docs/run.md#autotag) finds a container image that's compatible with your version of JetPack/L4T - either locally, pulled from a registry, or by building it.</sup> | ||
To mount your own directories into the container, use the [`-v`](https://docs.docker.com/engine/reference/commandline/run/#volume) or [`--volume`](https://docs.docker.com/engine/reference/commandline/run/#volume) flags: | ||
```bash | ||
./run.sh -v /path/on/host:/path/in/container $(./autotag whisperx) | ||
``` | ||
To launch the container running a command, as opposed to an interactive shell: | ||
```bash | ||
./run.sh $(./autotag whisperx) my_app --abc xyz | ||
``` | ||
You can pass any options to [`run.sh`](/docs/run.md) that you would to [`docker run`](https://docs.docker.com/engine/reference/commandline/run/), and it'll print out the full command that it constructs before executing it. | ||
</details> | ||
<details open> | ||
<summary><b><a id="build">BUILD CONTAINER</b></summary> | ||
<br> | ||
|
||
If you use [`autotag`](/docs/run.md#autotag) as shown above, it'll ask to build the container for you if needed. To manually build it, first do the [system setup](/docs/setup.md), then run: | ||
```bash | ||
./build.sh whisperx | ||
``` | ||
The dependencies from above will be built into the container, and it'll be tested during. See [`./build.sh --help`](/jetson_containers/build.py) for build options. | ||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.