From c11d9c95ebfcda86c60ea32247a2c210e9e7b141 Mon Sep 17 00:00:00 2001 From: haixuantao Date: Fri, 18 Apr 2025 16:00:33 +0200 Subject: [PATCH] Add phi4 remote flow --- examples/translation/phi4-remote.yml | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 examples/translation/phi4-remote.yml diff --git a/examples/translation/phi4-remote.yml b/examples/translation/phi4-remote.yml new file mode 100644 index 00000000..633e6d06 --- /dev/null +++ b/examples/translation/phi4-remote.yml @@ -0,0 +1,49 @@ +nodes: + - id: dora-microphone + build: pip install -e ../../node-hub/dora-microphone + path: dora-microphone + _unstable_deploy: + machine: xavier + inputs: + tick: dora/timer/millis/2000 + outputs: + - audio + + - id: dora-vad + path: dora-vad + _unstable_deploy: + machine: gpu + inputs: + audio: dora-microphone/audio + outputs: + - audio + env: + VIRTUAL_ENV: /home/ubuntu/dora/examples/translation/.venv + - id: dora-phi4 + # This build currently only work on Linux/CUDA + path: dora-phi4 + _unstable_deploy: + machine: gpu + inputs: + audio: dora-vad/audio + text: sender/data + outputs: + - text + env: + LEAD_MODALITY: audio + VIRTUAL_ENV: /home/ubuntu/dora/examples/translation/.venv + + - id: sender + path: pyarrow-sender + _unstable_deploy: + machine: gpu + outputs: + - data + env: + DATA: "Translate this audio to english." + VIRTUAL_ENV: /home/ubuntu/dora/examples/translation/.venv + + - id: dora-rerun + path: dora-rerun + inputs: + original_text: dora-phi4/text