Skip to content

Commit

Permalink
fix historical issue
Browse files Browse the repository at this point in the history
Signed-off-by: Wenxin Zhang <[email protected]>
  • Loading branch information
VincyZhang committed May 11, 2024
1 parent e82bac5 commit 3bfa455
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
job_name: ["bandit", "hadolint"]
job_name: ["bandit"]
fail-fast: false
steps:
- name: Checkout out Repo
Expand Down
2 changes: 2 additions & 0 deletions GenAIEval/evaluation/bigcode_evaluation_harness/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
from .accuracy import evaluate
from .arguments import BigcodeEvalParser, setup_parser

__all__ = [evaluate, BigcodeEvalParser, setup_parser]
2 changes: 2 additions & 0 deletions GenAIEval/evaluation/lm_evaluation_harness/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
from .accuracy import cli_evaluate as evaluate
from .arguments import LMEvalParser, setup_parser

__all__ = [evaluate, LMEvalParser, setup_parser]
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def simple_evaluate(
results["date"] = start_date
try:
add_env_info(results) # additional environment info to results
except:
except Exception:
eval_logger.info(f"get env info failed.")
return results
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
huggingface_hub.constants.HF_HUB_ENABLE_HF_TRANSFER = True
except ImportError:
pass

__all__ = [huggingface]
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ def forward_batch(batch_size):
(batch_size, max_length), device=self.device
).long()
for _ in range(5):
out = F.log_softmax(
F.log_softmax(
self._model_call(test_batch, **call_kwargs), dim=-1
) # noqa: F841

Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
def main():
eval_args = setup_parser()
results = evaluate(eval_args)
print(results)


if __name__ == "__main__":
Expand Down

0 comments on commit 3bfa455

Please sign in to comment.