diff --git a/modelopt/cli/__init__.py b/modelopt/cli/__init__.py new file mode 100644 index 000000000..9290aaead --- /dev/null +++ b/modelopt/cli/__init__.py @@ -0,0 +1,16 @@ +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Nvidia Model Optimizer (modelopt) CLI package.""" diff --git a/modelopt/cli/nv_modelopt.py b/modelopt/cli/nv_modelopt.py new file mode 100644 index 000000000..5eef96919 --- /dev/null +++ b/modelopt/cli/nv_modelopt.py @@ -0,0 +1,27 @@ +# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# SPDX-License-Identifier: Apache-2.0 +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +"""Nvidia Model Optimizer (modelopt) Unified CLI Tool.""" + + +def main() -> None: + """Program entry point for the nv-modelopt CLI.""" + print( + "Nvidia Model Optimizer (modelopt) Unified CLI Tool! This is currently a placeholder. The functionality is WIP." + ) + + +if __name__ == "__main__": + main() diff --git a/pyproject.toml b/pyproject.toml index 92ba9cb5e..854198033 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -113,6 +113,9 @@ dev = ["nvidia-modelopt[all,dev-docs,dev-lint,dev-test]"] [project.urls] Homepage = "https://github.com/NVIDIA/Model-Optimizer" +[project.scripts] +nv-modelopt = "modelopt.cli.nv_modelopt:main" + [tool.setuptools.packages.find] include = ["modelopt*"]