Justcode commited on
Commit
fb5e395
1 Parent(s): 748ff42

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +108 -0
README.md CHANGED
@@ -1,3 +1,111 @@
1
  ---
2
  license: gpl-3.0
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: gpl-3.0
3
+ metrics:
4
+ - rouge
5
+ language:
6
+ - zh
7
+ pipeline_tag: question-answering
8
  ---
9
+ # Ziya-Reader-13B-v1.0
10
+
11
+ # 姜子牙系列模型
12
+
13
+ - [Ziya-LLaMA-13B-v1.1](https://huggingface.co/IDEA-CCNL/Ziya-LLaMA-13B-v1.1)
14
+ - [Ziya-LLaMA-13B-v1](https://huggingface.co/IDEA-CCNL/Ziya-LLaMA-13B-v1)
15
+ - [Ziya-LLaMA-7B-Reward](https://huggingface.co/IDEA-CCNL/Ziya-LLaMA-7B-Reward)
16
+ - [Ziya-LLaMA-13B-Pretrain-v1](https://huggingface.co/IDEA-CCNL/Ziya-LLaMA-13B-Pretrain-v1)
17
+ - [Ziya-BLIP2-14B-Visual-v1](https://huggingface.co/IDEA-CCNL/Ziya-BLIP2-14B-Visual-v1)
18
+ - [Ziya-Writing-LLaMa-13B-v1](https://huggingface.co/IDEA-CCNL/Ziya-Writing-LLaMa-13B-v1)
19
+ - [Ziya-Coding-15B-v1](https://huggingface.co/IDEA-CCNL/Ziya-Coding-15B-v1)
20
+ - [Ziya-Coding-34B-v1.0](https://huggingface.co/IDEA-CCNL/Ziya-Coding-34B-v1.0)
21
+
22
+ ## 简介 Brief Introduction
23
+
24
+ Ziya-Reader-13B-v1.0是一个知识问答模型,给定问题和知识文档可以准确回答问题,用于多文档或单文档问答。该模型具有8k的上下文窗口,相比其他具有更长窗口的模型,我们在多个长文本任务的评测中胜出。包括多文档问答、合成任务(文档检索)长文本摘要。
25
+
26
+ 另外,模型的通用能力同样出众,可以进行通用问答。它在我们的通用能力评估集上的效果超过了Ziya-Llama-13B-v1.1.
27
+
28
+ "Ziya-Reader-13B-v1.0" is a knowledge question-answering model. It can accurately answer questions given questions and knowledge documents, and is suitable for both multi-document and single-document question-answering. The model has an 8k context window, and compared to models with longer windows, we have achieved victory in evaluations across multiple long-text tasks.
29
+ The tasks include multi-document question-answering, synthetic tasks (document retrieval), and long-text summarization.
30
+
31
+ Additionally, the model also demonstrates excellent generalization capabilities, enabling it to be used for general question-answering. Its performance on our general ability evaluation set surpassed that of Ziya-Llama-13B.
32
+
33
+ 它基于13B的Llama2训练,在数十万通用数据和检索问答数据上进行微调得到。
34
+
35
+ ## 评估结果 Evaluation
36
+
37
+ Longbench Chinese
38
+
39
+ |model|Multi-doc QA(%)| Synthetic task(%) | Summarization |
40
+ |:---|---|---|---|
41
+ |gpt3.5-turbo-16k | 28.7 | 77.5 |16.0 |
42
+ |Longchat-v1.5-7B-32k |19.5|7.6|9.9|
43
+ |Xgen-7B-8k| 11.0| 3.5| 2.2 |
44
+ |InternlM-7B-8k| 16.3|0.9|12.4|
45
+ |ChatGLM2-6B-32k|37.6|64.5|16.2|
46
+ |Vicuna-v1.5-7B-16k|19.3|5.0|15.1|
47
+ |Ziya-Reader-13B-v1.0| **42.8**| **66.0**|**15.3**|
48
+
49
+ |model|LongBench 中文Multi-doc QA(%)|LongBench 中文Multi-doc QA shuffled(%) |
50
+ |:---|---|---|
51
+ |gpt3.5-turbo-16k | 28.7 | 23.1|
52
+ |chatGLM2-32k | 34.3 | 20.3 |
53
+ |Baichuan-13B-Chat2 | 32.4 | 27.2 |
54
+ |Ziya-Reader-13B-v1.0| **42.8** | **40.9**|
55
+
56
+ ## 模型分类 Model Taxonomy
57
+
58
+ | 需求 Demand | 任务 Task | 系列 Series | 模型 Model | 参数 Parameter | 额外 Extra |
59
+ | :----: | :----: | :----: | :----: | :----: | :----: |
60
+ | 问答QA,阅读理解MRC| AGI模型 | 姜子牙 Ziya | Llama2 | 13B | Chinese |
61
+
62
+ ## Usage
63
+ ### 环境
64
+ pip install transformers=4.31.0
65
+ ### example
66
+ 多个检索结果时,每个检索结果用”<eod>\n“分隔,开头使用方括号标识序号。结果从“我的答案是”后开始,解码时请截断前面语句。
67
+ dtype:Bfloat16
68
+ ```python
69
+ prompt='<human>: 给定问题:交强险过期不上路会不会被罚?\n 检索结果:[1] 交强险过期不上路会不会
70
+ 被罚|法律分析:由于交强险是由保险公司对被保险机动车发生道路交通事故造成受害人(不包括本车人员和被保险人)的人身伤亡、财产损失,在责任限额内>予以赔偿的强制性责任保险。因此一旦交强险到期没续费,发生事故车主还会面临巨额赔偿。车险到期未交有处罚。法律依据:《机动车交通事故责任强制保
71
+ 险条例》 第三十八条 机动车所有人、管理人未按照规定投保机动车交通事故责任强制保险的,由公安机关交通管理部门扣留机动车,通知机动车所有人、管
72
+ 理人依照规定投保,处依照规定投保最低责任限额应缴纳的保险费的2倍罚款。 机动车所有人、管理人依照规定补办机动车交通事故责任强制保险的,应当及
73
+ 时退还机动车。<eod>\n请阅读理解上面多个检索结果,正确地回答问题。只能根据相关的检索结果或者知识回答,禁止编造;如果没有相关结果,请回答“都
74
+ 不相关,我不知道”。\n<bot>:'
75
+ model_path="Mindbot-Enterprise/Ziya-Searching-13B-v0.5"
76
+ model = AutoModelForCausalLM.from_pretrained(model_path,torch_dtype=torch.bfloat16).to(device)
77
+
78
+ '''预测结果:对于问题“交强险过期不上路会不会被罚?”,根据上面的编号为1的信息,我的答案是是的,交强险过期不上路会
79
+ 被罚。根据《机动车交通事故责任强制保险条例》,机动车所有人、管理人未按照规定投保���动车交通事故责任强制保险的,由公安机关交通管理部门扣留机
80
+ 动车,通知机动车所有人、管理人依照规定投保,处依照规定投保最低责任限额应缴纳的保险费的2倍罚款。因此,交强险过期不上路会被罚,车主需要及时补办机动车交通事故责任强制保险,以避免被罚款。"
81
+ '''
82
+ ```
83
+
84
+
85
+ ## 引用 Citation
86
+
87
+ 如果您在您的工作中使用了我们的模型,可以引用我们的[论文](https://arxiv.org/abs/2210.08590):
88
+
89
+ If you are using the resource for your work, please cite the our [paper](https://arxiv.org/abs/2210.08590):
90
+
91
+ ```text
92
+ @article{fengshenbang,
93
+ author = {Jiaxing Zhang and Ruyi Gan and Junjie Wang and Yuxiang Zhang and Lin Zhang and Ping Yang and Xinyu Gao and Ziwei Wu and Xiaoqun Dong and Junqing He and Jianheng Zhuo and Qi Yang and Yongfeng Huang and Xiayu Li and Yanghan Wu and Junyu Lu and Xinyu Zhu and Weifeng Chen and Ting Han and Kunhao Pan and Rui Wang and Hao Wang and Xiaojun Wu and Zhongshen Zeng and Chongpei Chen},
94
+ title = {Fengshenbang 1.0: Being the Foundation of Chinese Cognitive Intelligence},
95
+ journal = {CoRR},
96
+ volume = {abs/2209.02970},
97
+ year = {2022}
98
+ }
99
+ ```
100
+
101
+ You can also cite our [website](https://github.com/IDEA-CCNL/Fengshenbang-LM/):
102
+
103
+ 欢迎引用我们的[网站](https://github.com/IDEA-CCNL/Fengshenbang-LM/):
104
+ ```text
105
+ @misc{Fengshenbang-LM,
106
+ title={Fengshenbang-LM},
107
+ author={IDEA-CCNL},
108
+ year={2021},
109
+ howpublished={\url{https://github.com/IDEA-CCNL/Fengshenbang-LM}},
110
+ }
111
+ ```