Skip to content

Commit

Permalink
Fix diffusion (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
satyaog authored Sep 5, 2024
1 parent 6cb2c92 commit 2893f94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion benchmarks/diffusion/benchfile.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from milabench.pack import Package

from milabench.commands import AccelerateAllNodes
Expand Down Expand Up @@ -26,9 +27,12 @@ async def prepare(self):
def build_run_plan(self):
from milabench.commands import PackCommand

if "HF_TOKEN" in os.environ or "MILABENCH_HF_TOKEN" in os.environ:
os.environ["HF_TOKEN"] = os.environ.get("HF_TOKEN", os.environ["MILABENCH_HF_TOKEN"])

main = self.dirs.code / self.main_script
plan = PackCommand(self, *self.argv, lazy=True)

if False:
plan = VoirCommand(plan, cwd=main.parent)

Expand Down
2 changes: 1 addition & 1 deletion benchmarks/diffusion/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

@dataclass
class Arguments:
model: str = "runwayml/stable-diffusion-v1-5"
model: str = "benjamin-paine/stable-diffusion-v1-5"
dataset: str = "lambdalabs/naruto-blip-captions"
batch_size: int = 16
num_workers: int = 8
Expand Down

0 comments on commit 2893f94

Please sign in to comment.