Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andreea-popescu-reef committed Sep 5, 2024
1 parent 378c533 commit ea98147
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/compute_horde_prompt_gen/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def generate_prompts(
max_new_tokens=max_new_tokens,
temperature=temperature,
)
print("----------")
print(sequences)
print("----------")

seconds_taken = (datetime.datetime.now() - start_ts).total_seconds()
log.info(f"{i=} generation took {seconds_taken:.2f}s")

Expand All @@ -44,7 +48,7 @@ def generate_prompts(
# output = model.decode(sequence)
# log.info(f"\n\n{i=} output={output}\n\n")
generated_prompts = parse_output(sequence)
log.debug(f"{i=} sequence={j} {generated_prompts=} from {output=}")
log.debug(f"{i=} sequence={j} {generated_prompts=} from {sequence=}")

log.info(f"{i=} sequence={j} generated {len(generated_prompts)} prompts")
new_prompts.extend(generated_prompts)
Expand Down

0 comments on commit ea98147

Please sign in to comment.