Commit 1af7433b authored by Neelay Shah's avatar Neelay Shah Committed by GitHub
Browse files

refactor: rename triton_distributed to dynemo (#22)


Co-authored-by: default avatarGraham King <grahamk@nvidia.com>
parent ee4ef06b
...@@ -21,8 +21,8 @@ use futures::StreamExt; ...@@ -21,8 +21,8 @@ use futures::StreamExt;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use tokio::sync::mpsc; use tokio::sync::mpsc;
use triton_distributed_runtime::engine::{AsyncEngine, AsyncEngineContext, Data, ResponseStream}; use dynemo_runtime::engine::{AsyncEngine, AsyncEngineContext, Data, ResponseStream};
use triton_distributed_runtime::pipeline::{ use dynemo_runtime::pipeline::{
context::{Context, StreamContext}, context::{Context, StreamContext},
Error, ManyOut, PipelineError, PipelineIO, SegmentSource, SingleIn, Error, ManyOut, PipelineError, PipelineIO, SegmentSource, SingleIn,
}; };
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
use triton_distributed_runtime::{worker::Worker, Result, Runtime}; use dynemo_runtime::{worker::Worker, Result, Runtime};
async fn hello_world(_runtime: Runtime) -> Result<()> { async fn hello_world(_runtime: Runtime) -> Result<()> {
Ok(()) Ok(())
......
...@@ -17,8 +17,8 @@ use futures::{stream, StreamExt}; ...@@ -17,8 +17,8 @@ use futures::{stream, StreamExt};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::{sync::Arc, time::Duration}; use std::{sync::Arc, time::Duration};
use triton_distributed_runtime::engine::ResponseStream; use dynemo_runtime::engine::ResponseStream;
use triton_distributed_runtime::{ use dynemo_runtime::{
pipeline::{ pipeline::{
async_trait, AsyncEngine, Data, Event, ManyOut, Operator, ServiceBackend, ServiceEngine, async_trait, AsyncEngine, Data, Event, ManyOut, Operator, ServiceBackend, ServiceEngine,
ServiceFrontend, SingleIn, *, ServiceFrontend, SingleIn, *,
......
...@@ -16,12 +16,9 @@ ...@@ -16,12 +16,9 @@
#[cfg(feature = "integration")] #[cfg(feature = "integration")]
mod integration { mod integration {
pub const DEFAULT_NAMESPACE: &str = "triton-init"; pub const DEFAULT_NAMESPACE: &str = "dynemo";
use futures::StreamExt; use dynemo_runtime::{
use std::{sync::Arc, time::Duration};
use tokio::time::Instant;
use triton_distributed_runtime::{
logging, logging,
pipeline::{ pipeline::{
async_trait, network::Ingress, AsyncEngine, AsyncEngineContextProvider, Error, ManyOut, async_trait, network::Ingress, AsyncEngine, AsyncEngineContextProvider, Error, ManyOut,
...@@ -30,6 +27,9 @@ mod integration { ...@@ -30,6 +27,9 @@ mod integration {
protocols::annotated::Annotated, protocols::annotated::Annotated,
DistributedRuntime, ErrorContext, Result, Runtime, Worker, DistributedRuntime, ErrorContext, Result, Runtime, Worker,
}; };
use futures::StreamExt;
use std::{sync::Arc, time::Duration};
use tokio::time::Instant;
#[test] #[test]
fn main() -> Result<()> { fn main() -> Result<()> {
...@@ -100,11 +100,11 @@ mod integration { ...@@ -100,11 +100,11 @@ mod integration {
async fn client(runtime: DistributedRuntime) -> Result<()> { async fn client(runtime: DistributedRuntime) -> Result<()> {
// get the run duration from env // get the run duration from env
let run_duration = std::env::var("TRD_SOAK_RUN_DURATION").unwrap_or("1m".to_string()); let run_duration = std::env::var("DYN_SOAK_RUN_DURATION").unwrap_or("1m".to_string());
let run_duration = let run_duration =
humantime::parse_duration(&run_duration).unwrap_or(Duration::from_secs(60)); humantime::parse_duration(&run_duration).unwrap_or(Duration::from_secs(60));
let batch_load = std::env::var("TRD_SOAK_BATCH_LOAD").unwrap_or("10000".to_string()); let batch_load = std::env::var("DYN_SOAK_BATCH_LOAD").unwrap_or("10000".to_string());
let batch_load: usize = batch_load.parse().unwrap_or(10000); let batch_load: usize = batch_load.parse().unwrap_or(10000);
let client = runtime let client = runtime
......
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
# limitations under the License. # limitations under the License.
[project] [project]
name = "triton-distributed" name = "dynemo"
version = "0.2.1" version = "0.2.1"
description = "Distributed Inference Framework" description = "Distributed Inference Framework"
readme = "README.md" readme = "README.md"
authors = [ authors = [
{ name = "NVIDIA Inc.", email = "sw-dl-triton@nvidia.com" }, { name = "NVIDIA Inc.", email = "sw-dl-dynemo@nvidia.com" },
] ]
license = { file = "LICENSE" } license = { file = "LICENSE" }
requires-python = ">=3.10" requires-python = ">=3.10"
...@@ -30,11 +30,11 @@ dependencies = [ ...@@ -30,11 +30,11 @@ dependencies = [
] ]
[tool.maturin] [tool.maturin]
module-name = "triton_distributed._core" module-name = "dynemo._core"
# Point to the Rust crate directory # Point to the Rust crate directory
manifest-path = "lib/bindings/python/Cargo.toml" manifest-path = "lib/bindings/python/Cargo.toml"
# Include all Python packages # Include all Python packages
python-packages = ["triton_distributed"] python-packages = ["dynemo"]
# Specify the Python source directory # Specify the Python source directory
python-source = "lib/bindings/python/src" python-source = "lib/bindings/python/src"
...@@ -75,7 +75,7 @@ line_length = 88 ...@@ -75,7 +75,7 @@ line_length = 88
balanced_wrapping = true balanced_wrapping = true
indent = " " indent = " "
skip = ["build"] skip = ["build"]
known_first_party = ["triton_distributed"] known_first_party = ["dynemo"]
[tool.pytest.ini_options] [tool.pytest.ini_options]
minversion = "8.0" minversion = "8.0"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment