Files
calculet-npu-research-archive/history/llama.cpp/recovered-historical-artifacts-20260802/files/log.1--af8055f5f033
T

148 lines
5.3 KiB
Plaintext

=== Starting llama-server test ===
filename: test_case_short.json
version: 1.0
find 3 test cases
✔ llama-server is ready (attempt 1/10)
=== Round 1 start: 3 samples (with replacement) ===
[Round 1 | Progress: 1/3]
Prompt:
who are you?
Response(stream):
[ANSWER] As an AI language model, I don't have personal characteristics or emotions. However, I was created by Alibaba Cloud to assist with various tasks such as understanding human speech and providing information on different subjects. If you need help with something specific, feel free to ask!
================================================================================
[Round 1 | 1/3]
prompt_tokens=0, completion_tokens=0, decode_tps=59.82, ttft=991.33 ms, prefill_tps=135.35
================================================================================
[Round 1 | Progress: 2/3]
Prompt:
who are you?
Response(stream):
[ANSWER] As an AI language model, I don't have personal characteristics or emotions. However, I was trained on a large corpus of text data to understand human speech and respond appropriately. My purpose is to assist users in finding information, answer questions, and provide helpful responses to their inquiries. Is there anything specific you would like me to help you with?
================================================================================
[Round 1 | 2/3]
prompt_tokens=0, completion_tokens=0, decode_tps=58.50, ttft=1212.90 ms, prefill_tps=61.50
================================================================================
[Round 1 | Progress: 3/3]
Prompt:
Result only: 2 + 2 = ?
Response(stream):
[ANSWER] The result of 2 + 2 is 4.
================================================================================
[Round 1 | 3/3]
prompt_tokens=0, completion_tokens=0, decode_tps=67.32, ttft=282.36 ms, prefill_tps=168.05
================================================================================
=== Round 1 done: 3/3 success ===
=== Round 2 start: 3 samples (with replacement) ===
[Round 2 | Progress: 1/3]
Prompt:
who are you?
Response(stream):
[ANSWER] As an AI language model, I don't have personal characteristics or emotions. However, I was created by Alibaba Cloud to assist with various tasks such as understanding human speech and providing information on different subjects. If you need help with something specific, feel free to ask!
================================================================================
[Round 2 | 1/3]
prompt_tokens=0, completion_tokens=0, decode_tps=60.54, ttft=979.87 ms, prefill_tps=102.39
================================================================================
[Round 2 | Progress: 2/3]
Prompt:
who are you?
Response(stream):
[ANSWER] As an AI language model, I don't have personal characteristics or emotions. However, I was trained on a large corpus of text data to understand human speech and respond appropriately. My purpose is to assist users in finding information, answer questions, and provide helpful responses to their inquiries. Is there anything specific you would like me to help you with?
================================================================================
[Round 2 | 2/3]
prompt_tokens=0, completion_tokens=0, decode_tps=60.26, ttft=1177.81 ms, prefill_tps=61.65
================================================================================
[Round 2 | Progress: 3/3]
Prompt:
用C++写冒泡排序
Response(stream):
[ANSWER] 当然!以下是一个简单的C++实现冒泡排序:
```cpp
#include <iostream>
using namespace std;
void bubbleSort(int arr[], int n) {
for (int i = 0; i < n - 1; i++) {
bool swapped = false;
for (int j = 0; j < n - i - 1 && !swapped; j++) {
if (arr[j + 1] < arr[j]) {
swapped = true;
swap(arr[j], arr[j + 1]);
}
}
}
}
void printArray(int arr[], int size) {
for (int i = 0; i < size - 1; i++) {
cout << arr[i] << " ";
}
}
int main() {
int arr[] = {42, 86, 37, 59, 21};
bubbleSort(arr, sizeof(arr) / sizeof(int));
printArray(arr, sizeof(arr) / sizeof(int));
return 0;
}
```
这段代码首先定义了一个函数 `bubbleSort`,它接受一个整数数组和它的大小。然后调用这个函数对数组进行排序,并打印排序后的结果。
当你运行这段代码时,你会看到以下输出:
```
21
59
37
42
86
```
这表明排序成功地完成了。注意,这里使用了 `bubbleSort` 函数来实现冒泡排序,而不是使用 `sort()` 方法。
================================================================================
[Round 2 | 3/3]
prompt_tokens=0, completion_tokens=0, decode_tps=58.50, ttft=5559.24 ms, prefill_tps=134.86
================================================================================
=== Round 2 done: 3/3 success ===
=== Round 3 start: 3 samples (with replacement) ===
[Round 3 | Progress: 1/3]
Prompt:
用C++写冒泡排序
Response(stream):
[ANSWER] 当然!以下是一个简单的C++实现冒泡排序:
```cpp
#include <iostream>
using namespace std;
void bubbleSort(int arr[], int n) {
for (int i = 0; i < n - 1; i++) {
bool swapped = false;
for (int j = 0; j < n - i - 1 && !swapped; j++) {
if (arr[j] > arr[j + 1]) {
swapped = true;
swap(arr[j], arr[j + 1]);
}
}
}
}
void printArray(int arr[], int size)