Skip to content

Commit

Permalink
update gpus testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wj-Mcat committed Jan 8, 2024
1 parent 1a5e8fc commit 4a7e8ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions llm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ def dybatch_preprocess(
max_length=src_length,
return_attention_mask=False,
return_token_type_ids=False,
add_special_tokens=tokenizer.chat_template is None or isinstance(tokenizer, ChatGLMv2Tokenizer),
)
input_ids.append(tokens["input_ids"][0])

Expand Down
2 changes: 2 additions & 0 deletions tests/fixtures/llm/pretrain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ inference-predict:
batch_size: 2
decode_strategy: greedy_search
dtype: float16
chat_template: none

inference-to-static:
default:
Expand All @@ -45,3 +46,4 @@ inference-infer:
batch_size: 2
decode_strategy: greedy_search
max_length: 20
chat_template: none

0 comments on commit 4a7e8ab

Please sign in to comment.