LongBench icon indicating copy to clipboard operation
LongBench copied to clipboard

怎么测试qwen2.5系列模型

Open leileilin opened this issue 7 months ago • 3 comments

你好,qwen2.5系列模型的评估是需要更改config的max_position_embedding为120000吗?

leileilin avatar May 12 '25 14:05 leileilin

需要用YaRN,以下是qwen官方给的部署教程:

The current config.json is set for context length up to 32,768 tokens. To handle extensive inputs exceeding 32,768 tokens, we utilize YaRN, a technique for enhancing model length extrapolation, ensuring optimal performance on lengthy texts.

For supported frameworks, you could add the following to config.json to enable YaRN:

{
  ...,
  "rope_scaling": {
    "factor": 4.0,
    "original_max_position_embeddings": 32768,
    "type": "yarn"
  }
}

bys0318 avatar May 22 '25 04:05 bys0318

论文给出了使用或不使用 YaRN 的对比:

Image

Haskely avatar Jun 10 '25 13:06 Haskely

但是设置了YARN还是被报超长的问题

zhangshengnan96 avatar Sep 24 '25 15:09 zhangshengnan96