From 6c9895f0578f213d5f18f1087aec1e3b924aacd3 Mon Sep 17 00:00:00 2001 From: Victoria Godsoe Date: Wed, 1 Oct 2025 17:10:43 -0700 Subject: [PATCH] Updated copyright notice to include license line --- README.md | 6 ++++-- docs/OpenWebUI_README.md | 5 +++++ lira/cli.py | 3 ++- lira/models/whisper/export.py | 3 ++- lira/models/whisper/transcribe.py | 3 ++- lira/models/zipformer/transcribe.py | 3 ++- lira/scripts/run_asr.py | 3 ++- lira/scripts/run_dual.py | 3 ++- lira/scripts/run_whisper.py | 3 ++- lira/scripts/run_zipformer.py | 3 ++- lira/server/openai_server.py | 3 ++- lira/server/server.py | 3 ++- lira/utils/audio.py | 3 ++- lira/utils/config.py | 3 ++- lira/utils/tokens.py | 3 ++- setup.py | 3 ++- tests/test_openai_server.py | 3 +++ tests/test_whisper_cpu.py | 5 +++-- tests/test_whisper_npu.py | 5 +++-- tests/test_zipformer_cpu.py | 5 +++-- tests/test_zipformer_npu.py | 5 +++-- 21 files changed, 52 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index b0a10dd..b3b9516 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ LIRA is a **CLI-first, developer-friendly tool**: run and serve ASR models local - **Python 3.10** is required. - We recommend using **conda** for environment management. -- For RyzenAI NPU flow, follow the [RyzenAI installation instructions](https://ryzenai.docs.amd.com/en/latest/inst.html) and verify drivers/runtime for your device. Ensure that you have a Ryzen AI 300 Series machine to nebale NPU use cases -- Current recommended Ryzen AI Version: RAI 1.5.1 with 32.0.203.280 driver +- For Ryzen™ AI NPU flow, follow the [Ryzen AI installation instructions](https://ryzenai.docs.amd.com/en/latest/inst.html) and verify drivers/runtime for your device. Ensure that you have a Ryzen AI 300 Series machine to nebale NPU use cases. +- Current recommended Ryzen AI Version: RAI 1.5.1 with 32.0.203.280 driver. **Minimal install steps:** @@ -239,3 +239,5 @@ This project is licensed under the terms of the MIT license. See the [LICENSE](LICENSE) file for details. Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved. + +SPDX-License-Identifier: MIT diff --git a/docs/OpenWebUI_README.md b/docs/OpenWebUI_README.md index 0714442..946791b 100644 --- a/docs/OpenWebUI_README.md +++ b/docs/OpenWebUI_README.md @@ -94,3 +94,8 @@ Record from your mic or upload audio files (`.wav`, `.mp3`)—OpenWebUI will sen - If running behind a reverse proxy, update OpenWebUI's API Base URL accordingly. See the main [README.md](../README.md) for full LIRA setup and model export instructions. + + +Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. + +SPDX-License-Identifier: MIT \ No newline at end of file diff --git a/lira/cli.py b/lira/cli.py index b2b62e4..fb55041 100644 --- a/lira/cli.py +++ b/lira/cli.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT import argparse from lira.models.whisper.transcribe import WhisperONNX diff --git a/lira/models/whisper/export.py b/lira/models/whisper/export.py index a822065..a27f1ba 100644 --- a/lira/models/whisper/export.py +++ b/lira/models/whisper/export.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT import numpy as np import subprocess diff --git a/lira/models/whisper/transcribe.py b/lira/models/whisper/transcribe.py index a860b21..d6745aa 100644 --- a/lira/models/whisper/transcribe.py +++ b/lira/models/whisper/transcribe.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT import numpy as np import onnxruntime as ort diff --git a/lira/models/zipformer/transcribe.py b/lira/models/zipformer/transcribe.py index 1f27c21..b47c2a1 100644 --- a/lira/models/zipformer/transcribe.py +++ b/lira/models/zipformer/transcribe.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT import numpy as np import onnxruntime as ort diff --git a/lira/scripts/run_asr.py b/lira/scripts/run_asr.py index f157182..1148c5c 100644 --- a/lira/scripts/run_asr.py +++ b/lira/scripts/run_asr.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT import argparse import json diff --git a/lira/scripts/run_dual.py b/lira/scripts/run_dual.py index 52932cc..2315a2e 100644 --- a/lira/scripts/run_dual.py +++ b/lira/scripts/run_dual.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT import argparse from pyexpat import features diff --git a/lira/scripts/run_whisper.py b/lira/scripts/run_whisper.py index d4524b3..fa253b1 100644 --- a/lira/scripts/run_whisper.py +++ b/lira/scripts/run_whisper.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT import argparse import json diff --git a/lira/scripts/run_zipformer.py b/lira/scripts/run_zipformer.py index 8dc538d..4c06c2c 100644 --- a/lira/scripts/run_zipformer.py +++ b/lira/scripts/run_zipformer.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT import argparse import numpy as np diff --git a/lira/server/openai_server.py b/lira/server/openai_server.py index 3cdf235..e961c31 100644 --- a/lira/server/openai_server.py +++ b/lira/server/openai_server.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT from fastapi import FastAPI, UploadFile, Form from fastapi.responses import JSONResponse diff --git a/lira/server/server.py b/lira/server/server.py index c6e2a84..26a8818 100644 --- a/lira/server/server.py +++ b/lira/server/server.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT import argparse import uvicorn diff --git a/lira/utils/audio.py b/lira/utils/audio.py index a783465..49f65e9 100644 --- a/lira/utils/audio.py +++ b/lira/utils/audio.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT import torch import torchaudio diff --git a/lira/utils/config.py b/lira/utils/config.py index 3d1792a..5285988 100644 --- a/lira/utils/config.py +++ b/lira/utils/config.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT from pathlib import Path import json diff --git a/lira/utils/tokens.py b/lira/utils/tokens.py index 587881b..7eeacb2 100644 --- a/lira/utils/tokens.py +++ b/lira/utils/tokens.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT def load_tokens(token_path): diff --git a/setup.py b/setup.py index 6b45973..d2fa898 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT from setuptools import setup, find_packages diff --git a/tests/test_openai_server.py b/tests/test_openai_server.py index 4a5643c..90c6a87 100644 --- a/tests/test_openai_server.py +++ b/tests/test_openai_server.py @@ -1,3 +1,6 @@ +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT + import unittest from fastapi.testclient import TestClient from lira.server.openai_server import setup_openai_server diff --git a/tests/test_whisper_cpu.py b/tests/test_whisper_cpu.py index cc4f0bf..6e37418 100644 --- a/tests/test_whisper_cpu.py +++ b/tests/test_whisper_cpu.py @@ -1,5 +1,6 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. - +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT + import unittest from lira.models.whisper.transcribe import WhisperONNX from lira.models.whisper.export import export_whisper_model diff --git a/tests/test_whisper_npu.py b/tests/test_whisper_npu.py index 2f214fb..a507aaa 100644 --- a/tests/test_whisper_npu.py +++ b/tests/test_whisper_npu.py @@ -1,5 +1,6 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. - +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT + import unittest import os import torchaudio diff --git a/tests/test_zipformer_cpu.py b/tests/test_zipformer_cpu.py index c0e3b19..e051222 100644 --- a/tests/test_zipformer_cpu.py +++ b/tests/test_zipformer_cpu.py @@ -1,5 +1,6 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. - +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT + import unittest from lira.models.zipformer.transcribe import ZipformerONNX from huggingface_hub import snapshot_download diff --git a/tests/test_zipformer_npu.py b/tests/test_zipformer_npu.py index d32c5df..73d9446 100644 --- a/tests/test_zipformer_npu.py +++ b/tests/test_zipformer_npu.py @@ -1,5 +1,6 @@ -# Copyright(C) 2025 Advanced Micro Devices, Inc. All rights reserved. - +# Copyright (C) 2025, Advanced Micro Devices, Inc. All rights reserved. +# SPDX-License-Identifier: MIT + import unittest from lira.models.zipformer.transcribe import ZipformerONNX from huggingface_hub import snapshot_download