Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
5ca570f9
Unverified
Commit
5ca570f9
authored
Jul 15, 2025
by
Graham King
Committed by
GitHub
Jul 15, 2025
Browse files
chore: Rename dynamo.ingress to dynamo.frontend (#1944)
parent
7b9182fd
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
15 deletions
+18
-15
components/frontend/README
components/frontend/README
+2
-2
components/frontend/src/dynamo/frontend/__init__.py
components/frontend/src/dynamo/frontend/__init__.py
+0
-0
components/frontend/src/dynamo/frontend/__main__.py
components/frontend/src/dynamo/frontend/__main__.py
+1
-1
components/frontend/src/dynamo/frontend/main.py
components/frontend/src/dynamo/frontend/main.py
+14
-11
pyproject.toml
pyproject.toml
+1
-1
No files found.
components/
ingress
/README
→
components/
frontend
/README
View file @
5ca570f9
# Dynamo
ingress /
frontend node.
# Dynamo frontend node.
Usage: `python -m dynamo.
ingress
[--http-port
<port>]`. Port defaults to
8080.
Usage: `python -m dynamo.
frontend
[--http-port 8080
]`
.
This runs an OpenAI compliant HTTP server, a pre-processor, and a router in a single process. Engines / workers are auto-discovered when they call `register_llm`.
...
...
components/
ingress
/src/dynamo/
ingress
/__init__.py
→
components/
frontend
/src/dynamo/
frontend
/__init__.py
View file @
5ca570f9
File moved
components/
ingress
/src/dynamo/
ingress
/__main__.py
→
components/
frontend
/src/dynamo/
frontend
/__main__.py
View file @
5ca570f9
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
from
dynamo.
ingress
.main
import
main
from
dynamo.
frontend
.main
import
main
if
__name__
==
"__main__"
:
main
()
components/
ingress
/src/dynamo/
ingress
/main.py
→
components/
frontend
/src/dynamo/
frontend
/main.py
View file @
5ca570f9
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# Usage: `python -m dynamo.
ingress
[args]`
# Usage: `python -m dynamo.
frontend
[args]`
#
# Start a frontend node. This runs:
# - OpenAI HTTP server.
...
...
@@ -23,19 +23,16 @@ def parse_args():
description
=
"Dynamo Frontend: HTTP+Pre-processor+Router"
,
formatter_class
=
argparse
.
RawTextHelpFormatter
,
# To preserve multi-line help formatting
)
parser
.
add_argument
(
"-i"
,
"--interactive"
,
action
=
"store_true"
,
help
=
"Interactive text chat"
)
parser
.
add_argument
(
"--kv-cache-block-size"
,
type
=
int
,
help
=
"KV cache block size (u32)."
)
parser
.
add_argument
(
"--http-port"
,
type
=
int
,
default
=
8080
,
help
=
"HTTP port for the engine (u16)."
)
flags
=
parser
.
parse_args
()
kwargs
=
{
"http_port"
:
flags
.
http_port
}
if
flags
.
kv_cache_block_size
is
not
None
:
kwargs
[
"kv_cache_block_size"
]
=
flags
.
kv_cache_block_size
return
kwargs
return
parser
.
parse_args
()
async
def
async_main
():
...
...
@@ -43,11 +40,17 @@ async def async_main():
flags
=
parse_args
()
# out=dyn
e
=
EntrypointArgs
(
EngineType
.
Dynamic
,
**
flags
)
e
=
EntrypointArgs
(
EngineType
.
Dynamic
,
http_port
=
flags
.
http_port
,
kv_cache_block_size
=
flags
.
kv_cache_block_size
,
)
engine
=
await
make_engine
(
runtime
,
e
)
# in=http
try
:
if
flags
.
interactive
:
await
run_input
(
runtime
,
"text"
,
engine
)
else
:
await
run_input
(
runtime
,
"http"
,
engine
)
except
asyncio
.
exceptions
.
CancelledError
:
pass
...
...
pyproject.toml
View file @
5ca570f9
...
...
@@ -79,7 +79,7 @@ requires = ["hatchling"]
build-backend
=
"hatchling.build"
[tool.hatch.build.targets.wheel]
packages
=
[
"deploy/sdk/src/dynamo"
,
"components/planner/src/dynamo"
,
"components/
ingress
/src/dynamo"
,
"components/backends/llama_cpp/src/dynamo"
]
packages
=
[
"deploy/sdk/src/dynamo"
,
"components/planner/src/dynamo"
,
"components/
frontend
/src/dynamo"
,
"components/backends/llama_cpp/src/dynamo"
]
# This section is for including the binaries in the wheel package
# but doesn't make them executable scripts in the venv bin directory
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment