Update README.md
Browse files
README.md
CHANGED
@@ -1,82 +1,43 @@
|
|
1 |
---
|
|
|
2 |
language:
|
3 |
- en
|
4 |
pipeline_tag: text-generation
|
|
|
5 |
tags:
|
6 |
-
-
|
7 |
-
|
|
|
|
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
#
|
11 |
|
12 |
-
|
13 |
|
14 |
-
|
|
|
|
|
|
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
-
<br>
|
20 |
|
|
|
21 |
|
22 |
-
|
23 |
-
Qwen2 is a language model series including decoder language models of different model sizes. For each size, we release the base language model and the aligned chat model. It is based on the Transformer architecture with SwiGLU activation, attention QKV bias, group query attention, etc. Additionally, we have an improved tokenizer adaptive to multiple natural languages and codes.
|
24 |
|
25 |
-
|
26 |
-
The code of Qwen2 has been in the latest Hugging face transformers and we advise you to install `transformers>=4.37.0`, or you might encounter the following error:
|
27 |
-
```
|
28 |
-
KeyError: 'qwen2'
|
29 |
-
```
|
30 |
|
|
|
31 |
|
32 |
-
##
|
|
|
33 |
|
34 |
-
|
35 |
|
36 |
-
##
|
37 |
-
|
38 |
-
|
39 |
-
The evaluation of base models mainly focuses on the model performance of natural language understanding, general question answering, coding, mathematics, scientific knowledge, reasoning, multilingual capability, etc.
|
40 |
-
|
41 |
-
The datasets for evaluation include:
|
42 |
-
|
43 |
-
**English Tasks**: MMLU (5-shot), MMLU-Pro (5-shot), GPQA (5shot), Theorem QA (5-shot), BBH (3-shot), HellaSwag (10-shot), Winogrande (5-shot), TruthfulQA (0-shot), ARC-C (25-shot)
|
44 |
-
|
45 |
-
**Coding Tasks**: EvalPlus (0-shot) (HumanEval, MBPP, HumanEval+, MBPP+), MultiPL-E (0-shot) (Python, C++, JAVA, PHP, TypeScript, C#, Bash, JavaScript)
|
46 |
-
|
47 |
-
**Math Tasks**: GSM8K (4-shot), MATH (4-shot)
|
48 |
-
|
49 |
-
**Chinese Tasks**: C-Eval(5-shot), CMMLU (5-shot)
|
50 |
-
|
51 |
-
**Multilingual Tasks**: Multi-Exam (M3Exam 5-shot, IndoMMLU 3-shot, ruMMLU 5-shot, mMMLU 5-shot), Multi-Understanding (BELEBELE 5-shot, XCOPA 5-shot, XWinograd 5-shot, XStoryCloze 0-shot, PAWS-X 5-shot), Multi-Mathematics (MGSM 8-shot), Multi-Translation (Flores-101 5-shot)
|
52 |
-
|
53 |
-
#### Qwen2-0.5B & Qwen2-1.5B performances
|
54 |
-
| Datasets | Phi-2 | Gemma-2B | MiniCPM | Qwen1.5-1.8B | Qwen2-0.5B | Qwen2-1.5B |
|
55 |
-
| :--------| :---------: | :------------: | :------------: |:------------: | :------------: | :------------: |
|
56 |
-
|#Non-Emb Params | 2.5B | 2.0B | 2.4B | 1.3B | 0.35B | 1.3B |
|
57 |
-
|MMLU | 52.7 | 42.3 | 53.5 | 46.8 | 45.4 | **56.5** |
|
58 |
-
|MMLU-Pro | - | 15.9 | - | - | 14.7 | 21.8 |
|
59 |
-
|Theorem QA | - | - | - |- | 8.9 | **15.0** |
|
60 |
-
|HumanEval | 47.6 | 22.0 |**50.0**| 20.1 | 22.0 | 31.1 |
|
61 |
-
|MBPP | **55.0** | 29.2 | 47.3 | 18.0 | 22.0 | 37.4 |
|
62 |
-
|GSM8K | 57.2 | 17.7 | 53.8 | 38.4 | 36.5 | **58.5** |
|
63 |
-
|MATH | 3.5 | 11.8 | 10.2 | 10.1 | 10.7 | **21.7** |
|
64 |
-
|BBH | **43.4** | 35.2 | 36.9 | 24.2 | 28.4 | 37.2 |
|
65 |
-
|HellaSwag | **73.1** | 71.4 | 68.3 | 61.4 | 49.3 | 66.6 |
|
66 |
-
|Winogrande | **74.4** | 66.8 | -| 60.3 | 56.8 | 66.2 |
|
67 |
-
|ARC-C | **61.1** | 48.5 | -| 37.9 | 31.5 | 43.9 |
|
68 |
-
|TruthfulQA | 44.5 | 33.1 | -| 39.4 | 39.7 | **45.9** |
|
69 |
-
|C-Eval | 23.4 | 28.0 | 51.1| 59.7 | 58.2 | **70.6** |
|
70 |
-
|CMMLU | 24.2 | - | 51.1 | 57.8 | 55.1 | **70.3** |
|
71 |
-
|
72 |
-
|
73 |
-
## Citation
|
74 |
-
|
75 |
-
If you find our work helpful, feel free to give us a cite.
|
76 |
-
|
77 |
-
```
|
78 |
-
@article{qwen2,
|
79 |
-
title={Qwen2 Technical Report},
|
80 |
-
year={2024}
|
81 |
-
}
|
82 |
-
```
|
|
|
1 |
---
|
2 |
+
extra_gated_heading: Access LLMLight-LightGPT on Hugging Face
|
3 |
language:
|
4 |
- en
|
5 |
pipeline_tag: text-generation
|
6 |
+
inference: false
|
7 |
tags:
|
8 |
+
- pytorch
|
9 |
+
- llama-2
|
10 |
+
- traffic signal control
|
11 |
+
- lightgpt
|
12 |
+
- llmlight
|
13 |
+
license: mit
|
14 |
---
|
15 |
|
16 |
+
# LLMLight: Large Language Models as Traffic Signal Control Agents
|
17 |
|
18 |
+
<p align="center">
|
19 |
|
20 |
+
| **[1 Introduction](#introduction)**
|
21 |
+
| **[2 Framework](#framework)**
|
22 |
+
| **[3 Demo](#demo)**
|
23 |
+
| **[Repository](https://anonymous.4open.science/r/LLMLight-D8C4/)**|
|
24 |
|
25 |
+
</p>
|
26 |
|
27 |
+
<a id="introduction"></a>
|
|
|
28 |
|
29 |
+
## 1 Introduction
|
30 |
|
31 |
+
Model weights trained in the article LLMLight: Large Language Models as Traffic Signal Control Agents.
|
|
|
32 |
|
33 |
+
Please download the model and run LLMLight by following the descriptions in the [Repository](https://anonymous.4open.science/r/LLMLight-D8C4/).
|
|
|
|
|
|
|
|
|
34 |
|
35 |
+
<a id="framework"></a>
|
36 |
|
37 |
+
## 2 Framework
|
38 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/64207ca7e40f66bcd1e44959/HDBvVmYkTdShGfY5mnPGs.png)
|
39 |
|
40 |
+
<a id="demo"></a>
|
41 |
|
42 |
+
## 3 Demo
|
43 |
+
<video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/64207ca7e40f66bcd1e44959/VhMOdEIjKeLml1WPcINqV.qt"></video>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|