Skip to content

Commit

Permalink
Test on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
archana-ramalingam committed Oct 30, 2024
1 parent d2c19be commit d986174
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci_eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
name: Evaluation Tests

on:
pull_request:
workflow_dispatch:
schedule:
# Weekdays nightly at 07:00 UTC = 23:00 PST / 00:00 PDT.
Expand Down
2 changes: 1 addition & 1 deletion sharktank/sharktank/evaluate/perplexity_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def run_perplexity_torch(

perplexity.load_model(dataset, tokenizer, tensor_parallelism_size, attention_kernel)
test_prompts = perplexity.get_prompts()
ppl = perplexity.get_perplexity(test_prompts=test_prompts)
ppl = perplexity.get_perplexity(test_prompts=test_prompts[0:4])

return ppl

Expand Down
2 changes: 1 addition & 1 deletion sharktank/sharktank/evaluate/perplexity_vmfb.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get_prompts(self):
s.replace("\n", "").rstrip()
for s in test_prompts
if s != "" and len(s.split()) >= 20 and s.count("=") < 2
]
][0:4]

self.bs = len(test_prompts)

Expand Down

0 comments on commit d986174

Please sign in to comment.