Skip to content

Commit

Permalink
Test multi
Browse files Browse the repository at this point in the history
  • Loading branch information
knc6 committed Nov 28, 2024
1 parent 1d00be9 commit 42e6190
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atomgpt/inverse_models/inverse_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def batch_evaluate(
for batch_start in tqdm(range(0, len(prompts), batch_size)):
batch_end = min(batch_start + batch_size, len(prompts))
batch_prompts = prompts[batch_start:batch_end]

# print("batch_prompts",batch_prompts)
# Tokenize and prepare inputs
inputs = tokenizer(
[
Expand All @@ -254,6 +254,7 @@ def batch_evaluate(
return_tensors="pt",
padding=True,
truncation=True,
max_length=config.max_seq_length,
).to("cuda")

# Generate outputs using the model
Expand Down

0 comments on commit 42e6190

Please sign in to comment.