Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinkedia7 committed Aug 16, 2024
1 parent 29092c8 commit 879c80b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion vidur/metrics/cdf_sketch.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import numpy as np
import pandas as pd
import plotly_express as px
import wandb
from ddsketch.ddsketch import DDSketch

import wandb
from vidur.logger import init_logger

logger = init_logger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion vidur/metrics/data_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import numpy as np
import pandas as pd
import plotly_express as px
import wandb

import wandb
from vidur.logger import init_logger

logger = init_logger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion vidur/metrics/metrics_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import pandas as pd
import plotly_express as px
import wandb

import wandb
from vidur.config import ClusterConfig, MetricsConfig
from vidur.entities import Batch, BatchStage, ExecutionTime, Request
from vidur.logger import init_logger
Expand Down
1 change: 0 additions & 1 deletion vidur/metrics/series_average_meter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import json

import wandb

from vidur.logger import init_logger

logger = init_logger(__name__)
Expand Down
12 changes: 6 additions & 6 deletions vidur/request_generator/trace_replay_request_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ def __init__(self, config: TraceRequestGeneratorConfig):
self.trace_df["num_prefill_tokens"] = self.trace_df[
"num_prefill_tokens"
].astype(int)
self.trace_df["num_decode_tokens"] = self.trace_df[
"num_decode_tokens"
].astype(int)
self.trace_df["num_decode_tokens"] = self.trace_df["num_decode_tokens"].astype(
int
)

# make sure that there is at least one prefill and decode token
self.trace_df["num_prefill_tokens"] = self.trace_df[
"num_prefill_tokens"
].clip(lower=1)
self.trace_df["num_prefill_tokens"] = self.trace_df["num_prefill_tokens"].clip(
lower=1
)
self.trace_df["num_decode_tokens"] = self.trace_df["num_decode_tokens"].clip(
lower=1
)
Expand Down

0 comments on commit 879c80b

Please sign in to comment.