From 32da06a60116e513c6cf56bc5be87a5de65dca16 Mon Sep 17 00:00:00 2001 From: haixuanTao Date: Wed, 19 Mar 2025 11:29:33 +0100 Subject: [PATCH] Rewrite readme and add phi4 dependencies --- examples/translation/README.md | 22 +++++----------------- examples/translation/phi4-dev.yml | 4 +++- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/examples/translation/README.md b/examples/translation/README.md index 73fc637b..0dc03c31 100644 --- a/examples/translation/README.md +++ b/examples/translation/README.md @@ -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 ``` diff --git a/examples/translation/phi4-dev.yml b/examples/translation/phi4-dev.yml index 280adb8a..fd5384ab 100644 --- a/examples/translation/phi4-dev.yml +++ b/examples/translation/phi4-dev.yml @@ -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