Browse Source

Added PERF flag inside node-hub

tags/v0.3.11-rc1
7SOMAY 10 months ago
parent
commit
20842d3f7c
50 changed files with 154 additions and 93 deletions
  1. +3
    -2
      node-hub/dora-argotranslate/pyproject.toml
  2. +4
    -3
      node-hub/dora-distil-whisper/pyproject.toml
  3. +3
    -2
      node-hub/dora-echo/pyproject.toml
  4. +3
    -2
      node-hub/dora-internvl/pyproject.toml
  5. +3
    -2
      node-hub/dora-ios-lidar/pyproject.toml
  6. +3
    -2
      node-hub/dora-keyboard/pyproject.toml
  7. +3
    -2
      node-hub/dora-kit-car/pyproject.toml
  8. +3
    -2
      node-hub/dora-kokoro-tts/pyproject.toml
  9. +3
    -2
      node-hub/dora-llama-cpp-python/pyproject.toml
  10. +3
    -2
      node-hub/dora-magma/pyproject.toml
  11. +3
    -2
      node-hub/dora-microphone/pyproject.toml
  12. +3
    -2
      node-hub/dora-object-to-pose/pyproject.toml
  13. +3
    -3
      node-hub/dora-openai-server/pyproject.toml
  14. +3
    -2
      node-hub/dora-opus/pyproject.toml
  15. +3
    -2
      node-hub/dora-outtetts/pyproject.toml
  16. +3
    -2
      node-hub/dora-parler/pyproject.toml
  17. +3
    -2
      node-hub/dora-phi4/pyproject.toml
  18. +3
    -2
      node-hub/dora-piper/pyproject.toml
  19. +3
    -2
      node-hub/dora-pyaudio/pyproject.toml
  20. +3
    -2
      node-hub/dora-pyorbbecksdk/pyproject.toml
  21. +3
    -2
      node-hub/dora-pyrealsense/pyproject.toml
  22. +3
    -2
      node-hub/dora-qwen/pyproject.toml
  23. +3
    -2
      node-hub/dora-qwen2-5-vl/pyproject.toml
  24. +3
    -2
      node-hub/dora-qwenvl/pyproject.toml
  25. +3
    -2
      node-hub/dora-rdt-1b/pyproject.toml
  26. +3
    -2
      node-hub/dora-reachy1/pyproject.toml
  27. +3
    -2
      node-hub/dora-reachy2/pyproject.toml
  28. +3
    -2
      node-hub/dora-rerun/pyproject.toml
  29. +3
    -2
      node-hub/dora-sam2/pyproject.toml
  30. +2
    -0
      node-hub/dora-transformers/dora_transformers/__init__.py
  31. +2
    -0
      node-hub/dora-transformers/dora_transformers/__main__.py
  32. +3
    -1
      node-hub/dora-transformers/dora_transformers/main.py
  33. +8
    -0
      node-hub/dora-transformers/pyproject.toml
  34. +3
    -0
      node-hub/dora-transformers/tests/test_dora_transformers.py
  35. +3
    -2
      node-hub/dora-ugv/pyproject.toml
  36. +3
    -2
      node-hub/dora-vad/pyproject.toml
  37. +3
    -2
      node-hub/dora-yolo/pyproject.toml
  38. +3
    -2
      node-hub/dynamixel-client/pyproject.toml
  39. +3
    -2
      node-hub/feetech-client/pyproject.toml
  40. +3
    -2
      node-hub/lebai-client/pyproject.toml
  41. +3
    -2
      node-hub/lerobot-dashboard/pyproject.toml
  42. +3
    -2
      node-hub/llama-factory-recorder/pyproject.toml
  43. +3
    -2
      node-hub/mujoco-client/pyproject.toml
  44. +3
    -2
      node-hub/opencv-plot/pyproject.toml
  45. +3
    -2
      node-hub/opencv-video-capture/pyproject.toml
  46. +3
    -2
      node-hub/pyarrow-assert/pyproject.toml
  47. +3
    -2
      node-hub/pyarrow-sender/pyproject.toml
  48. +3
    -2
      node-hub/replay-client/pyproject.toml
  49. +3
    -2
      node-hub/terminal-input/pyproject.toml
  50. +3
    -2
      node-hub/video-encoder/pyproject.toml

+ 3
- 2
node-hub/dora-argotranslate/pyproject.toml View File

@@ -22,5 +22,6 @@ dora-argotranslate = "dora_argotranslate.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 4
- 3
node-hub/dora-distil-whisper/pyproject.toml View File

@@ -29,6 +29,7 @@ dora-distil-whisper = "dora_distil_whisper.main:main"

[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"D", # pydocstyle
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-echo/pyproject.toml View File

@@ -21,5 +21,6 @@ dora-echo = "dora_echo.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-internvl/pyproject.toml View File

@@ -34,5 +34,6 @@ dora-internvl = "dora_internvl.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-ios-lidar/pyproject.toml View File

@@ -18,5 +18,6 @@ dora-ios-lidar = "dora_ios_lidar.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-keyboard/pyproject.toml View File

@@ -27,5 +27,6 @@ dora-keyboard = "dora_keyboard.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-kit-car/pyproject.toml View File

@@ -19,5 +19,6 @@ features = ["python", "pyo3/extension-module"]
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-kokoro-tts/pyproject.toml View File

@@ -18,5 +18,6 @@ dora-kokoro-tts = "dora_kokoro_tts.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-llama-cpp-python/pyproject.toml View File

@@ -43,5 +43,6 @@ dora-llama-cpp-python = "dora_llama_cpp_python.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-magma/pyproject.toml View File

@@ -43,5 +43,6 @@ extend.exclude = "dora_magma/Magma"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-microphone/pyproject.toml View File

@@ -27,5 +27,6 @@ dora-microphone = "dora_microphone.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-object-to-pose/pyproject.toml View File

@@ -18,5 +18,6 @@ features = ["python", "pyo3/extension-module"]
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 3
node-hub/dora-openai-server/pyproject.toml View File

@@ -30,6 +30,6 @@ dora-openai-server = "dora_openai_server.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-opus/pyproject.toml View File

@@ -31,5 +31,6 @@ dora-opus = "dora_opus.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-outtetts/pyproject.toml View File

@@ -31,5 +31,6 @@ dora-outtetts = "dora_outtetts.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-parler/pyproject.toml View File

@@ -33,5 +33,6 @@ dora-parler = "dora_parler.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-phi4/pyproject.toml View File

@@ -34,5 +34,6 @@ dora-phi4 = "dora_phi4.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-piper/pyproject.toml View File

@@ -18,5 +18,6 @@ dora-piper = "dora_piper.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-pyaudio/pyproject.toml View File

@@ -23,5 +23,6 @@ dora-pyaudio = "dora_pyaudio.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-pyorbbecksdk/pyproject.toml View File

@@ -21,5 +21,6 @@ dora-pyorbbecksdk = "dora_pyorbbecksdk.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-pyrealsense/pyproject.toml View File

@@ -24,5 +24,6 @@ dora-pyrealsense = "dora_pyrealsense.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-qwen/pyproject.toml View File

@@ -45,5 +45,6 @@ dora-qwen = "dora_qwen.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-qwen2-5-vl/pyproject.toml View File

@@ -51,5 +51,6 @@ build-backend = "setuptools.build_meta"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-qwenvl/pyproject.toml View File

@@ -38,5 +38,6 @@ dora-qwenvl = "dora_qwenvl.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-rdt-1b/pyproject.toml View File

@@ -48,5 +48,6 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-reachy1/pyproject.toml View File

@@ -30,5 +30,6 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-reachy2/pyproject.toml View File

@@ -27,5 +27,6 @@ dora-reachy2-head = "dora_reachy2.head:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-rerun/pyproject.toml View File

@@ -22,5 +22,6 @@ features = ["python", "pyo3/extension-module"]
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-sam2/pyproject.toml View File

@@ -23,5 +23,6 @@ dora-sam2 = "dora_sam2.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 2
- 0
node-hub/dora-transformers/dora_transformers/__init__.py View File

@@ -1,3 +1,5 @@
"""TODO: Add docstring."""

import os

# Define the path to the README file relative to the package directory


+ 2
- 0
node-hub/dora-transformers/dora_transformers/__main__.py View File

@@ -1,3 +1,5 @@
"""TODO: Add docstring."""

from .main import main




+ 3
- 1
node-hub/dora-transformers/dora_transformers/main.py View File

@@ -1,3 +1,5 @@
"""TODO: Add docstring."""

import os
import pyarrow as pa
from dora import Node
@@ -31,7 +33,6 @@ ACTIVATION_WORDS = os.getenv("ACTIVATION_WORDS", "what how who where you").split

def load_model():
"""Load the transformer model and tokenizer."""

logging.info(f"Loading model {MODEL_NAME} on {DEVICE}")
# Memory efficient loading
@@ -94,6 +95,7 @@ def generate_response(model, tokenizer, text: str, history) -> tuple[str, list]:
return response, history

def main():
"""TODO: Add docstring."""
# Initialize model and conversation history
model, tokenizer = load_model()
# Initialize history with system prompt


+ 8
- 0
node-hub/dora-transformers/pyproject.toml View File

@@ -24,3 +24,11 @@ dev = ["pytest >=8.1.1", "ruff >=0.9.1"]

[project.scripts]
dora-transformer = "dora_transformer.main:main"


[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 0
node-hub/dora-transformers/tests/test_dora_transformers.py View File

@@ -1,7 +1,10 @@
"""TODO: Add docstring."""

import pytest


def test_import_main():
"""TODO: Add docstring."""
from dora_transformers.main import main

# Check that everything is working, and catch dora Runtime Exception as we're not running in a dora dataflow.


+ 3
- 2
node-hub/dora-ugv/pyproject.toml View File

@@ -18,5 +18,6 @@ dora-ugv = "dora_ugv.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-vad/pyproject.toml View File

@@ -18,5 +18,6 @@ dora-vad = "dora_vad.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dora-yolo/pyproject.toml View File

@@ -21,5 +21,6 @@ dora-yolo = "dora_yolo.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/dynamixel-client/pyproject.toml View File

@@ -25,5 +25,6 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/feetech-client/pyproject.toml View File

@@ -26,5 +26,6 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/lebai-client/pyproject.toml View File

@@ -25,5 +25,6 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/lerobot-dashboard/pyproject.toml View File

@@ -27,5 +27,6 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/llama-factory-recorder/pyproject.toml View File

@@ -24,5 +24,6 @@ llama-factory-recorder = "llama_factory_recorder.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/mujoco-client/pyproject.toml View File

@@ -26,5 +26,6 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/opencv-plot/pyproject.toml View File

@@ -20,5 +20,6 @@ opencv-plot = "opencv_plot.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/opencv-video-capture/pyproject.toml View File

@@ -21,5 +21,6 @@ opencv-video-capture = "opencv_video_capture.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/pyarrow-assert/pyproject.toml View File

@@ -22,5 +22,6 @@ pyarrow-assert = "pyarrow_assert.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/pyarrow-sender/pyproject.toml View File

@@ -22,5 +22,6 @@ pyarrow-sender = "pyarrow_sender.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/replay-client/pyproject.toml View File

@@ -25,5 +25,6 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/terminal-input/pyproject.toml View File

@@ -22,5 +22,6 @@ terminal-input = "terminal_input.main:main"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP",
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

+ 3
- 2
node-hub/video-encoder/pyproject.toml View File

@@ -27,5 +27,6 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff.lint]
extend-select = [
"D", # pydocstyle
"UP"
]
"UP", # Ruff's UP rule
"PERF" # Ruff's PERF rule
]

Loading…
Cancel
Save