Skip to content

Commit

Permalink
Fixing codeQL issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-braf committed Dec 9, 2024
1 parent 3bc29a4 commit a715588
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion genai-perf/genai_perf/checkpoint/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from genai_perf.config.input.config_command import ConfigCommand
from genai_perf.config.run.results import Results
from genai_perf.exceptions import GenAIPerfException
from genai_perf.types import CheckpointObject


@dataclass(frozen=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from dataclasses import dataclass
from enum import Enum, auto
from pathlib import Path
from typing import Any, Dict, List, Optional
from typing import Any, List, Optional

from genai_perf.config.generate.search_parameter import SearchUsage
from genai_perf.config.input.config_command import (
Expand Down
2 changes: 1 addition & 1 deletion genai-perf/genai_perf/measurements/model_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

from dataclasses import dataclass
from typing import Dict, Optional, Tuple, TypeAlias, Union
from typing import Optional

from genai_perf.types import ConstraintName, Constraints

Expand Down
2 changes: 0 additions & 2 deletions genai-perf/genai_perf/measurements/run_config_measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
ModelConfigMeasurements,
)
from genai_perf.measurements.run_constraints import RunConstraints
from genai_perf.record.gpu_record import GPURecord
from genai_perf.record.record import Record
from genai_perf.types import (
CheckpointObject,
Expand All @@ -33,7 +32,6 @@
GpuId,
GpuMetricObjectives,
GpuRecords,
MetricObjectives,
ModelName,
ModelWeights,
PerfMetricName,
Expand Down
2 changes: 1 addition & 1 deletion genai-perf/genai_perf/measurements/run_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

from dataclasses import dataclass
from typing import Dict, Optional, TypeAlias
from typing import Dict, Optional

from genai_perf.measurements.model_constraints import ModelConstraints
from genai_perf.types import ConstraintName, ModelName
Expand Down
2 changes: 1 addition & 1 deletion genai-perf/genai_perf/subcommand/analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
run_perf_analyzer,
)
from genai_perf.tokenizer import get_tokenizer
from genai_perf.types import GpuRecords, ModelObjectiveParameters
from genai_perf.types import ModelObjectiveParameters

logger = logging.getLogger(__name__)

Expand Down
2 changes: 1 addition & 1 deletion genai-perf/tests/test_perf_analyzer_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import json
import unittest
from unittest.mock import MagicMock, patch
from unittest.mock import patch

from genai_perf import parser
from genai_perf.checkpoint.checkpoint import checkpoint_encoder
Expand Down

0 comments on commit a715588

Please sign in to comment.