Browse Source

Rewrite readme and add phi4 dependencies

tags/v0.3.11-rc1
haixuanTao 10 months ago
parent
commit
32da06a601
2 changed files with 8 additions and 18 deletions
  1. +5
    -17
      examples/translation/README.md
  2. +3
    -1
      examples/translation/phi4-dev.yml

+ 5
- 17
examples/translation/README.md View File

@@ -3,22 +3,10 @@
Make sure to have, dora, pip and cargo installed.

```bash
dora up
git clone https://github.com/dora-rs/dora.git
cd dora/examples/translation

## For chinese
dora build dataflow_zh_en_terminal.yml
dora start dataflow_zh_en_terminal.yml --detach

python pretty_print.py

dora stop


## For chinese
dora build dataflow_en_zh_terminal.yml
dora start dataflow_en_zh_terminal.yml --detach

python pretty_print.py

dora stop
uv venv --seed -p 3.11
dora build phi4-dev.yml --uv
dora run phi4-dev.yml --uv
```

+ 3
- 1
examples/translation/phi4-dev.yml View File

@@ -16,7 +16,9 @@ nodes:
- audio

- id: dora-phi4
# This build currently only work on Linux/CUDA
build: |
pip install flash-attn --no-build-isolation
pip install -e ../../node-hub/dora-phi4
path: dora-phi4
inputs:
@@ -36,7 +38,7 @@ nodes:
DATA: "Translate this audio to english."

- id: dora-rerun
build: pip install -e ../../node-hub/dora-rerun
build: pip install dora-rerun
path: dora-rerun
inputs:
original_text: dora-phi4/text


Loading…
Cancel
Save