Skip to content

Commit 6d3d6b6

Browse files
pavel-esirilya-lavrenov
authored andcommitted
Apply suggestions from code review
1 parent 1aa61f8 commit 6d3d6b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/causal_lm_cpp.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
timeout 25s ${{ matrix.executable }} ./TinyLlama-1.1B-Chat-v1.0/ "你好! 你好嗎?" > ./pred.txt
161161
python -c "
162162
import transformers
163-
with open('pred.txt', 'r', errors='replace') as file:
163+
with open('pred.txt', 'r', errors='ignore') as file:
164164
predictions = file.read()
165165
tokenizer = transformers.LlamaTokenizer.from_pretrained('TinyLlama/TinyLlama-1.1B-Chat-v1.0')
166166
tokenized = tokenizer('你好! 你好嗎?', return_tensors='pt')
@@ -176,7 +176,7 @@ jobs:
176176
timeout 1m ${{ matrix.executable }} ./TinyLlama-1.1B-Chat-v1.0/ "Alan Turing was a" "return 0" "你好! 你好嗎?" > ./pred.txt
177177
python -c "
178178
import transformers
179-
with open('pred.txt', 'r', errors='replace') as file:
179+
with open('pred.txt', 'r', errors='ignore') as file:
180180
predictions = file.read()
181181
tokenizer = transformers.LlamaTokenizer.from_pretrained('TinyLlama/TinyLlama-1.1B-Chat-v1.0')
182182
prompts = [

0 commit comments

Comments
 (0)