File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ jobs:
160
160
timeout 25s ${{ matrix.executable }} ./TinyLlama-1.1B-Chat-v1.0/ "你好! 你好嗎?" > ./pred.txt
161
161
python -c "
162
162
import transformers
163
- with open('pred.txt', 'r', errors='replace ') as file:
163
+ with open('pred.txt', 'r', errors='ignore ') as file:
164
164
predictions = file.read()
165
165
tokenizer = transformers.LlamaTokenizer.from_pretrained('TinyLlama/TinyLlama-1.1B-Chat-v1.0')
166
166
tokenized = tokenizer('你好! 你好嗎?', return_tensors='pt')
@@ -176,7 +176,7 @@ jobs:
176
176
timeout 1m ${{ matrix.executable }} ./TinyLlama-1.1B-Chat-v1.0/ "Alan Turing was a" "return 0" "你好! 你好嗎?" > ./pred.txt
177
177
python -c "
178
178
import transformers
179
- with open('pred.txt', 'r', errors='replace ') as file:
179
+ with open('pred.txt', 'r', errors='ignore ') as file:
180
180
predictions = file.read()
181
181
tokenizer = transformers.LlamaTokenizer.from_pretrained('TinyLlama/TinyLlama-1.1B-Chat-v1.0')
182
182
prompts = [
You can’t perform that action at this time.
0 commit comments