File size: 3,003 Bytes
38216b6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4ce4f31
 
 
 
 
 
 
0ee18f1
4ce4f31
 
 
38216b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
license: mit
---

Please refer to the [SepLLM paper - ICML 2025](https://arxiv.org/abs/2412.12094), [BiPE Paper](https://arxiv.org/abs/2401.16421), and our [`GitHub repository`](https://github.com/HKUDS/SepLLM)  for using this model.

To use the checkpoint of this model, you must install the `transformers-4.38.0.post1+sepllm-py3-none-any.whl` released from our [`GitHub repository`](https://github.com/HKUDS/SepLLM). Below are the reference script for testing and a sample of test results. We conducted testing using `lm_eval==0.4.0`.

```
CUDA_LAUNCH_BLOCKING=1
lm_eval --model hf \
	--model_args pretrained=Gausson/pythia-160m-deduped-n64-RoBiPE-SepLLM \
	--tasks  arc_challenge,arc_easy,lambada_openai,logiqa,piqa,sciq,winogrande,wsc,wikitext  \
	--num_fewshot 5 \
	--device cuda:0\
	--batch_size 32
```

```
hf (pretrained=Gausson/pythia-160m-deduped-n64-RoBiPE-SepLLM), gen_kwargs: (), limit: None, num_fewshot: 5, batch_size: 32
|    Tasks     |Version|Filter|n-shot|    Metric     | Value  |   |Stderr|
|--------------|-------|------|-----:|---------------|-------:|---|-----:|
|arc_challenge |Yaml   |none  |     5|acc            |  0.2048|±  |0.0118|
|              |       |none  |     5|acc_norm       |  0.2355|±  |0.0124|
|arc_easy      |Yaml   |none  |     5|acc            |  0.4668|±  |0.0102|
|              |       |none  |     5|acc_norm       |  0.4432|±  |0.0102|
|lambada_openai|Yaml   |none  |     5|perplexity     | 38.0503|±  |1.2942|
|              |       |none  |     5|acc            |  0.3051|±  |0.0064|
|logiqa        |Yaml   |none  |     5|acc            |  0.2396|±  |0.0167|
|              |       |none  |     5|acc_norm       |  0.2642|±  |0.0173|
|piqa          |Yaml   |none  |     5|acc            |  0.6436|±  |0.0112|
|              |       |none  |     5|acc_norm       |  0.6366|±  |0.0112|
|sciq          |Yaml   |none  |     5|acc            |  0.8090|±  |0.0124|
|              |       |none  |     5|acc_norm       |  0.7880|±  |0.0129|
|wikitext      |Yaml   |none  |     5|word_perplexity|168.1908|   |      |
|              |       |none  |     5|byte_perplexity|  2.6076|   |      |
|              |       |none  |     5|bits_per_byte  |  1.3827|   |      |
|winogrande    |Yaml   |none  |     5|acc            |  0.4964|±  |0.0141|
|wsc           |Yaml   |none  |     5|acc            |  0.4519|±  |0.0490|
```

If you find our work helpful, please consider giving us a star ⭐ @ our  [`GitHub repository`](https://github.com/HKUDS/SepLLM) and citing our paper. We greatly appreciate your support 😄
```
@inproceedings{chen2025sepllm,
  title={{SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separator}},
  author={Chen, Guoxuan and Shi, Han and Li, Jiawei and Gao, Yihang and Ren, Xiaozhe and Chen, Yimeng and Jiang, Xin and Li, Zhenguo and Liu, Weiyang and Huang, Chao},
  booktitle={International Conference on Machine Learning},
  year={2025},
  note={Also available at arXiv:2412.12094}
}
```