`包裹,长文可以用`
`/`
`划分小节。原文虽然是一段,但信息量很大,包含四个要点。我可以用`
`作为主标题,然后用`
`包裹整体介绍部分,再针对每个要点用`
`划分,最后用`
`包裹每个要点内容。 原文开头是介绍三个模型和三个设计选择,这部分可以放在一个`
`里。然后是四个要点。我需要检查每个要点的内容,看是否需要用`
- `、`
`、`
`、``等标签。 原文中没有明显的列表、引用或代码块。但有一些重要的数据和结论,比如KV缓存大小、检索结果等,可以用``来强调关键句子或数据。不过规则说“重要句子可用``”,我需要判断哪些是真正重要的,避免滥用。 比如,原文中提到的三个模型名称、设计选择的具体数值(KV头数量、滑动窗口大小、词汇表大小)是比较重要的,可以考虑用``。还有每个要点的核心结论,比如“Passkey retrieval in Mistral stops at the window”这个结论,以及KV缓存的大小数据、Qwen2.5 tokenizer的效果、解码延迟的增长,这些都是关键信息,可以用``。 现在开始构建HTML结构: 首先,用一个``作为主标题?原文没有明确的标题,但作为新闻排版,可能需要一个小节标题。不过规则说“长文用
/
划分小节”,原文本身是一段,但包含多个要点。我可以不用主标题,直接把整体介绍作为第一个`
`,然后每个要点用`
`。不过为了更清晰,或许可以加一个`
`概括主题?但规则要求不增删内容,添加标题可能会被视为增加内容。所以最好不添加额外的标题文字,而是利用原有的结构。 原文开头部分:“Three widely used 7B-class language models...We measure the consequences of each choice on one 16 GB T4 GPU.”这部分作为引言,用一个`
`包裹。 然后是四个要点,每个要点可以用`
`来标记,例如“(1) Passkey retrieval in Mistral stops at the window.”这部分内容作为`
`,然后具体描述作为`
`。 检查原文,四个要点是以“(1)”“(2)”等开头的,所以可以直接把这些编号和要点标题作为`
`的内容,保持原文信息不增删。 接下来,对于每个`
`内的内容,处理重要部分。例如,在引言部分,模型名称和设计选择的具体数值,可以用``强调。在要点1中,关于Mistral检索的结果数据,比如“all 72 trials where it lay within 4,089 tokens and in none of the 62 trials where it lay 4,098 or more tokens away”,这些关键数据可以用``。但要注意,不要改变原文的表述,只是加标签。 对于要点2,KV-cache内存大小的数据,用``强调。要点3,Qwen2.5的tokenizer效果和KV共享带来的内存差异,用``。要点4,解码延迟的增长,用``。 现在开始逐段处理: 引言部分:
Three widely used 7B-class language models, original LLaMA 7B, Mistral 7B v0.1, and Qwen2.5-7B, differ in three design choices that decide what fits on a small GPU: how many key-value (KV) heads the attention layers keep (32, 8, and 4), whether attention is limited to a sliding window (4,096 tokens in Mistral), and how large the vocabulary is (32,000 versus 151,643 tokens). We measure the consequences of each choice on one 16 GB T4 GPU.
然后是四个要点,每个用``作为小标题,内容用`
`:
(1) Passkey retrieval in Mistral stops at the window.
In 134 trials with the key placed 3,600 to 4,600 tokens from the end of the prompt, Mistral retrieved it in all 72 trials where it lay within 4,089 tokens and in none of the 62 trials where it lay 4,098 or more tokens away. With the same weights and the window turned off, retrieval succeeds at every tested position in 8K-token prompts, so the mask causes the limit; at 16K and 32K tokens the window-free model fails completely, while the windowed model still retrieves nearby keys. Qwen2.5 retrieves the key in all 60 trials up to 32K tokens.
(2) KV-cache memory per token is 512, 128, and 56 KiB.
LLaMA runs out of memory at 32K tokens, Qwen2.5 holds 64K tokens in 3.5 GiB, and Mistral's cache stops at 512 MiB.
(3) On 1,997 parallel sentences in 15 languages, Qwen2.5's tokenizer removes 38-58% of tokens for five languages and 3-11% for the other ten; combined with KV sharing, LLaMA needs 9.5-22.0 times more cache memory than Qwen2.5 for the same sentence.
这里原文这个要点本身就是一个句子,所以`
`的内容就是这个句子,然后是否需要再用`
`?可能不需要,因为`
`已经包含了要点内容。不过规则说“长文用
/
划分小节”,每个自然段落用`
`包裹。这里每个要点的标题其实包含了主要内容,而后续没有更多的段落了?不对,原文中每个要点后面跟着的描述内容需要用`
`包裹。比如要点(1)的标题是“Passkey retrieval in Mistral stops at the window.”,后面的描述是“In 134 trials...Qwen2.5 retrieves the key in all 60 trials up to 32K tokens.”这部分是段落,用`
`。要点(2)的标题是“KV-cache memory per token is 512, 128, and 56 KiB.”,后面的描述是“LLaMA runs out of memory at 32K tokens...”用`
`。要点(3)的标题是“On 1,997 parallel sentences...for the same sentence.”,这本身就是一个完整的句子,包含了整个要点内容,后面没有额外的段落了,所以可以直接用`
`包含,或者用`
`?需要看原文结构。原文中(3)后面没有更多的描述,就是这个句子本身。所以可能这个要点的全部内容就是这个句子,作为`
`。同样,(4)的内容也是一个完整的句子,作为`
`。 但仔细看原文: (3) On 1,997 parallel sentences in 15 languages, Qwen2.5's tokenizer removes 38-58% of tokens for five languages and 3-11% for the other ten; combined with KV sharing, LLaMA needs 9.5-22.0 times more cache memory than Qwen2.5 for the same sentence. (4) Decode latency in a common runtime grows with cache size, and copying the cache, measured on its own, costs about as much as that growth. Code and results are public. 所以(3)和(4)每个都是一个句子,没有后续的段落。那么对于(1)和(2),标题是一个简短的