Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .pre-commit-config-zh-cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,15 @@ repos:
args:
- --root_folder
- opencompass/configs/datasets
- repo: https://github.com/gitleaks/gitleaks
rev: v8.23.1
hooks:
- id: gitleaks
entry: "gitleaks dir"
args: ["--verbose", "--redact=50"]
# - repo: https://github.com/open-mmlab/pre-commit-hooks
# rev: v0.2.0 # Use the ref you want to point at
# hooks:
# - id: check-algo-readme
# - id: check-copyright
# args: ["mmocr", "tests", "tools"] # these directories will be checked
# args: ["mmocr", "tests", "tools"] # these directories will be checked
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,15 @@ repos:
args:
- --root_folder
- opencompass/configs/datasets
- repo: https://github.com/gitleaks/gitleaks
rev: v8.23.1
hooks:
- id: gitleaks
entry: "gitleaks dir"
args: ["--verbose", "--redact=50"]
# - repo: https://github.com/open-mmlab/pre-commit-hooks
# rev: v0.2.0 # Use the ref you want to point at
# hooks:
# - id: check-algo-readme
# - id: check-copyright
# args: ["mmocr", "tests", "tools"] # these directories will be checked
# args: ["mmocr", "tests", "tools"] # these directories will be checked
2 changes: 1 addition & 1 deletion opencompass/models/glm.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _load_model(self, **kwargs):
['--vocab-size', '150528'],
['--num-attention-heads', '96'],
['--max-sequence-length', '2048'],
['--tokenizer-type', 'icetk-glm-130B'],
['--tokenizer-type', 'icetk-glm-130B'], #gitleaks:allow
['--layernorm-order', 'post'],
['--load', self.ckpt_path],
['--skip-init'],
Expand Down
2 changes: 1 addition & 1 deletion opencompass/models/interntrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def generate(self,
output_text = self.batch_decode(
outputs,
eos_token_ids=self.generator.eos_token_id,
stopping_criteria=stopping_criteria)
stopping_criteria=stopping_criteria) #gitleaks:allow

return output_text

Expand Down
Loading