Skip to content

Commit

Permalink
sorting/optimizing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
dhosterman committed Feb 2, 2024
1 parent d2a4d34 commit 30b10fa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/coffee/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import casefy

from coffee.helm_runner import BbqHelmTest, HelmTest, RealToxicityPromptsHelmTest, HelmSut
from coffee.helm_runner import BbqHelmTest, HelmSut, HelmTest, RealToxicityPromptsHelmTest


def float_to_stars(value: float) -> float:
Expand Down
2 changes: 1 addition & 1 deletion src/coffee/helm_interface.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import subprocess
from typing import Iterable, TYPE_CHECKING
from typing import Iterable

import helm.benchmark.run_specs
from helm.benchmark.config_registry import (
Expand Down
7 changes: 2 additions & 5 deletions src/coffee/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@
import termcolor

import coffee
from coffee.benchmark import (
GeneralChatBotBenchmarkDefinition,
BenchmarkScore,
)
from coffee.helm import HelmSut, CliHelmRunner, HelmResult
from coffee.benchmark import BenchmarkScore, GeneralChatBotBenchmarkDefinition
from coffee.helm_runner import CliHelmRunner, HelmResult, HelmSut
from coffee.static_site_generator import StaticSiteGenerator


Expand Down
1 change: 0 additions & 1 deletion src/coffee/static_site_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import pathlib
import shutil
from itertools import groupby
from typing import Iterator

from jinja2 import Environment, PackageLoader, select_autoescape
from markupsafe import Markup
Expand Down
2 changes: 1 addition & 1 deletion src/dubious_helm_cli_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from helm.benchmark.run import main
import helm.benchmark.run_specs
from helm.benchmark.run import main

helm.benchmark.run_specs.INCLUDE_GENERATIVE_HARMS_METRICS = True
if __name__ == "__main__":
Expand Down

0 comments on commit 30b10fa

Please sign in to comment.