huijjj commited on
Commit
7561b50
1 Parent(s): 3c5ffd6

add: Dynamic Sonnet

Browse files
README.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ task_categories:
3
+ - question-answering
4
+ - text-generation
5
+ language:
6
+ - en
7
+ size_categories:
8
+ - 1K<n<10K
9
+ configs:
10
+ - config_name: default
11
+ data_files:
12
+ - split: 1k
13
+ path: "dynamic_sonnet_llama_2_prefix_256_max_1024_1024_sampled.parquet"
14
+ - split: 2k
15
+ path: "dynamic_sonnet_llama_2_prefix_512_max_2048_1024_sampled.parquet"
16
+ - split: 4k
17
+ path: "dynamic_sonnet_llama_2_prefix_1024_max_4096_1024_sampled.parquet"
18
+ - split: 8k
19
+ path: "dynamic_sonnet_llama_2_prefix_2048_max_8192_1024_sampled.parquet"
20
+ ---
21
+
22
+ # Dynamic Sonnet - Llama2
23
+ *Curated dataset for benchmarking LLM serving systems*
24
+
25
+ ![plot](distribution.png)
26
+
27
+ In real-world service scenarios, each request comes with varying input token lengths.
28
+ Some requests generate only a few tokens, while others produce a significant number.
29
+ Traditional fixed-length benchmarks fail to capture this variability, making it difficult to accurately assess real-world throughput performance.
30
+ This dynamic nature of input token lengths is crucial as it directly affects key features of LLM serving systems, such as continuous batching, which are essential for optimal performance.
31
+
32
+ To address this challenge, we introduce ***Dynamic Sonnet***—a dataset designed specifically for benchmarking LLM serving systems under realistic conditions.
33
+ ***Dynamic Sonnet*** comprises four subsets: 1k, 2k, 4k, and 8k. Each subset is carefully curated to have an average token length of 512, 1k, 3k, and 7k, respectively.
34
+ This variability in token length within the dataset allows for a more accurate and comprehensive evaluation of LLM serving systems in environments that mirror real-world usage.
35
+
36
+ Furthermore, in real-world scenarios, requests often share common prefixes. Advanced systems can leverage this by caching these prefixes to boost performance.
37
+ ***Dynamic Sonnet*** simulates this behavior by incorporating a common prefix that constitutes approximately 25% of the maximum length in each subset (N/4 for an Nk subset).
38
+ This design allows for more realistic benchmarking of systems that optimize for such efficiencies.
39
+
40
+ ## Details
41
+
42
+ The Dynamic Sonnet dataset consists of five columns: `id`, `system_prompt`, `user_prompt`, `formatted_input` and `tok_inputs`
43
+
44
+ * `id`: A unique identifier (index) for each prompt
45
+ * `system_prompt`: A common prefix that instructs the agent to select specific lines from the following text
46
+ * `user_prompt`: The lines selected from Shakespeare's sonnets
47
+ * `formatted_input`: The prompt(`system_prompt`+`user_prompt`) formatted according to a specific chat template
48
+ * `tok_inputs`: The tokenized version of the `formatted_input`
49
+
50
+ ## Usage
51
+
52
+ To benchmark with ***Dynamic Sonnet***, users can pass the token IDs (tok_inputs) directly to the LLM serving system.
53
+ For benchmarking an OpenAI-compatible system, users can concatenate the `system_prompt` and `user_prompt`, and then send a request to `v1/chat/completions` endpoint, using the concatenated result as the request body.
distribution.png ADDED

Git LFS Details

  • SHA256: f74ef683cd9ec0e91dabbf6bb51bd7f43ac6b9dd5f2106494a7e7d4f1bc37f0e
  • Pointer size: 130 Bytes
  • Size of remote file: 50 kB
dynamic_sonnet_llama_2_prefix_1024_max_4096_1024_sampled.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7467cddaae293a1e32e608374fc0c86afc3be014d1e013b26bd3793caa8197d
3
+ size 10917905
dynamic_sonnet_llama_2_prefix_2048_max_8192_1024_sampled.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e195399ed888253a1bd32956f25739ec1e3af918e9439168b9981a8c81f60f74
3
+ size 26579864
dynamic_sonnet_llama_2_prefix_256_max_1024_1024_sampled.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec6b704a1d834d32b1196ef6b0e1f1fbef19a93443a6beb5ec7bc90fcfc1d65d
3
+ size 1473170
dynamic_sonnet_llama_2_prefix_512_max_2048_1024_sampled.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97b31d6b38d86b86c361bd8d5cb4732f774129ac369582206a1f0ae01da62e02
3
+ size 3126563