zjowowen commited on
Commit
2704a22
1 Parent(s): c6138d0
Files changed (1) hide show
  1. README.md +101 -6
README.md CHANGED
@@ -1,13 +1,108 @@
1
  ---
2
- title: LLMRiddlesChatGLMEN
3
- emoji: 😻
4
- colorFrom: red
5
- colorTo: purple
6
  sdk: gradio
7
- sdk_version: 4.1.2
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
 
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: LLMRiddles-ChatGLM-EN
3
+ emoji: 🚀
4
+ colorFrom: indigo
5
+ colorTo: green
6
  sdk: gradio
7
+ sdk_version: 4.1.1
8
  app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
+ python_version: 3.8
12
  ---
13
 
14
+ # LLMRiddles
15
+
16
+ <div align="center">
17
+ <br>
18
+ <a href="https://github.com/opendilab/LLMRiddles/blob/main/llmriddles/assets/banner.svg">
19
+ <img src="https://github.com/opendilab/LLMRiddles/blob/main/llmriddles/assets/banner.svg" width="1000" height="200" alt="Click to see the source">
20
+ </a>
21
+ <br>
22
+ </div>
23
+
24
+ English | [简体中文](https://github.com/opendilab/LLMRiddles/blob/main/README_zh.md)
25
+
26
+ ## :thinking: What's This
27
+ Welcome to LLM Riddles! This is a game of wits and courage with language models. In the game, you need to construct questions that interact with the language model to get answers that meet the requirements. In this process, you can use your brain and use all the methods you can think of to get the model to output the results required by the answer.
28
+
29
+ ## :space_invader: How to Play
30
+ We provide an online version for players to directly access and try out.
31
+ - [ChatGPT + English(w/o key)](https://huggingface.co/spaces/OpenDILabCommunity/LLMRiddlesChatGPTEN)
32
+ - [ChatGPT + Chinese(w/o key)](https://huggingface.co/spaces/OpenDILabCommunity/LLMRiddlesChatGPTCN)
33
+ - [Mistral + English(w/ key)](https://d9b451a97791dd8ef3.gradio.live)
34
+ - [ChatGPT + Chinese(w/ key)](http://llmriddles.opendilab.net/)
35
+
36
+ Local deployment can be done in the following ways:
37
+ ## Installation
38
+ ### Use ChatGPT / ChatGLM API
39
+ ```shell
40
+ pip3 install -r requirements.txt
41
+ ```
42
+ ### Deploy Mistral-7B-Instruct-v0.1 for local inference
43
+ ```shell
44
+ pip3 install -r requirements-dev.txt
45
+ ```
46
+ ## Launch
47
+ ### ChatGPT + Chinese
48
+ ```shell
49
+ QUESTION_LANG=cn QUESTION_LLM='chatgpt' QUESTION_LLM_KEY=<your API key> python3 -u app.py
50
+ ```
51
+ ### ChatGPT + English
52
+ ```shell
53
+ QUESTION_LANG=en QUESTION_LLM='chatgpt' QUESTION_LLM_KEY=<your API key> python3 -u app.py
54
+ ```
55
+ ### ChatGLM + Chinese
56
+ ```shell
57
+ QUESTION_LANG=cn QUESTION_LLM='chatglm' QUESTION_LLM_KEY=<your API key> python3 -u app.py
58
+ ```
59
+ ### ChatGLM + English
60
+ ```shell
61
+ QUESTION_LANG=en QUESTION_LLM='chatglm' QUESTION_LLM_KEY=<your API key> python3 -u app.py
62
+ ```
63
+ ### Mistral-7B-Instruct-v0.1 + English
64
+ ```shell
65
+ QUESTION_LANG=en QUESTION_LLM='mistral-7b' python3 -u app.py
66
+ ```
67
+ ## :technologist: Why Doing This
68
+
69
+ Our goal is to use this game to give participants a deeper understanding of the fascinating aspects of prompt engineering and natural language processing. This process will show players how to cleverly construct prompts and how to use them to trigger surprising responses from artificial intelligence systems, while also helping them better understand the incredible power of deep learning and natural language processing technologies. .
70
+
71
+ ## :raising_hand: How to Submit a Custom Level
72
+ If you have interesting questions or ideas, players are welcome to submit their own ideas. You can [Initiate a Pull Request](https://github.com/opendilab/LLMRiddles/compare) and submit it to us. We will include it in the level after approval.
73
+ The question format should include the following points:
74
+ - Pull Request title, example: feature(username): Chapter X-Level Design
75
+ - The ID you want to be mentioned
76
+ - Modify the corresponding chapter question files
77
+ - Modification of \__init__.py
78
+
79
+ For a complete example, please refer to: [Submit your own level design](https://github.com/opendilab/LLMRiddles/pull/6)
80
+
81
+ ## :writing_hand: Roadmap
82
+
83
+ - [x] Support custom levels
84
+ - [x] Online trial link
85
+ - [x] Hugging Face Space link
86
+ - [x] Support Mistral-7B(English version)
87
+ - [x] Support ChatGLM(Chinese and English version)
88
+ - [ ] Support Baichuan2-7B(Chinese version)
89
+ - [ ] Support LLaMA2-7B(English version)
90
+ - [ ] LLM inference speed optimization
91
+ - [ ] More question levels and solution blogs
92
+
93
+ ## :speech_balloon: Feedback and Contribution
94
+ - [Start an Issue](https://github.com/opendilab/CodeMorpheus/issues/new/choose) on GitHub
95
+ - Contact us by email ([email protected])
96
+ - Discuss on OpenDILab's WeChat group (i.e. add us on WeChat: ding314assist)
97
+ <img src=https://github.com/opendilab/LLMRiddles/blob/main/llmriddles/assets/wechat.jpeg width=35% />
98
+
99
+ ## :star2: Special Thanks
100
+ - Thanks to [Haoqiang Fan](https://www.zhihu.com/people/haoqiang-fan) for his original idea and title, which provided inspiration and motivation for the development and expansion of this project.
101
+ - Thanks to [HuggingFace](https://huggingface.co) for supporting and assisting the game.
102
+ - Thanks to [ChatGLM](https://chatglm.cn) for supporting and assisting the game, especially sufficient inference token support.
103
+ - Thanks to [LLM Riddles contributors](https://github.com/opendilab/LLMRiddles/graphs/contributors) for their implementation and support.
104
+
105
+ ## :label: License
106
+ All code within this repository is under [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
107
+
108
+ <p align="right">(<a href="#top">back to top</a>)</p>