LoneStriker commited on
Commit
14165e8
1 Parent(s): a8578dc

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -1,35 +1,10 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.bin filter=lfs diff=lfs merge=lfs -text
4
- *.bz2 filter=lfs diff=lfs merge=lfs -text
5
- *.ckpt filter=lfs diff=lfs merge=lfs -text
6
- *.ftz filter=lfs diff=lfs merge=lfs -text
7
- *.gz filter=lfs diff=lfs merge=lfs -text
8
- *.h5 filter=lfs diff=lfs merge=lfs -text
9
- *.joblib filter=lfs diff=lfs merge=lfs -text
10
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
- *.model filter=lfs diff=lfs merge=lfs -text
13
- *.msgpack filter=lfs diff=lfs merge=lfs -text
14
- *.npy filter=lfs diff=lfs merge=lfs -text
15
- *.npz filter=lfs diff=lfs merge=lfs -text
16
- *.onnx filter=lfs diff=lfs merge=lfs -text
17
- *.ot filter=lfs diff=lfs merge=lfs -text
18
- *.parquet filter=lfs diff=lfs merge=lfs -text
19
- *.pb filter=lfs diff=lfs merge=lfs -text
20
- *.pickle filter=lfs diff=lfs merge=lfs -text
21
- *.pkl filter=lfs diff=lfs merge=lfs -text
22
- *.pt filter=lfs diff=lfs merge=lfs -text
23
- *.pth filter=lfs diff=lfs merge=lfs -text
24
- *.rar filter=lfs diff=lfs merge=lfs -text
25
- *.safetensors filter=lfs diff=lfs merge=lfs -text
26
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
- *.tar.* filter=lfs diff=lfs merge=lfs -text
28
- *.tar filter=lfs diff=lfs merge=lfs -text
29
- *.tflite filter=lfs diff=lfs merge=lfs -text
30
- *.tgz filter=lfs diff=lfs merge=lfs -text
31
- *.wasm filter=lfs diff=lfs merge=lfs -text
32
- *.xz filter=lfs diff=lfs merge=lfs -text
33
- *.zip filter=lfs diff=lfs merge=lfs -text
34
- *.zst filter=lfs diff=lfs merge=lfs -text
35
- *tfevents* filter=lfs diff=lfs merge=lfs -text
 
1
+ CodeFuse-DeepSeek-33B-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
2
+ CodeFuse-DeepSeek-33B-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
3
+ CodeFuse-DeepSeek-33B-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
4
+ CodeFuse-DeepSeek-33B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
5
+ CodeFuse-DeepSeek-33B-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
6
+ CodeFuse-DeepSeek-33B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
7
+ CodeFuse-DeepSeek-33B-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
8
+ CodeFuse-DeepSeek-33B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
9
+ CodeFuse-DeepSeek-33B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
10
+ codefuse-deepseek-33b-nlp.png filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
CodeFuse-DeepSeek-33B-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:577e705033ea83c249f7adcf3cd8c9e0ef52a3d1a5e6a8c7f498d2ba008e5ca7
3
+ size 17560367200
CodeFuse-DeepSeek-33B-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44fdfb94ca73aa11f3d9b196bca2ee90549b8b7a9109ce71b0c2bc57d46dd021
3
+ size 16092131424
CodeFuse-DeepSeek-33B-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e9acba22f6c1cf434d6d8935650f9796c1c9761883a4a8ff47688fce49afc60
3
+ size 14421901408
CodeFuse-DeepSeek-33B-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0eaad1df7b9eeb29a693f747b1e363adcb65ef772c5d51891c281cfd11bcd66
3
+ size 19940659296
CodeFuse-DeepSeek-33B-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:443e931447df3588a5f45b8af173397b3ce5980b8b7bb8ff44efd92e0a57329f
3
+ size 18943533152
CodeFuse-DeepSeek-33B-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3efba7b525f85f88a82f16fa134cc4d2dabdbf4138f4ebf6e707f6e16611372
3
+ size 23535898720
CodeFuse-DeepSeek-33B-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30b5414a91532c2193ccf27d2f527c735138ebcffa352825af65fa2dffe77347
3
+ size 22958301280
CodeFuse-DeepSeek-33B-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d32ec788c527ec7a57ec7795359fe51775c82e67858ee093052b2cdd00c49a6
3
+ size 27355840608
CodeFuse-DeepSeek-33B-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abfe43fc4cd1b868e8d995cf254c0915bd5cd69118bcbbba740d08521a3a23fc
3
+ size 35430879328
LEGAL.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CodeFuse COMMUNITY LICENSE AGREEMENT
2
+ CodeFuse Release Date: September 8, 2023
3
+
4
+ By clicking to agree or by using or distributing any portion or element of the Materials, you will be deemed to have recognized and accepted the content of this Agreement, which is effective immediately.
5
+
6
+ 1. Definitions.
7
+ a. This CodeFuse COMMUNITY LICENSE AGREEMENT (this "Agreement") shall mean the terms and conditions for use, reproduction, distribution and modification of the Materials as defined by this Agreement.
8
+ b. "Ant" or "We" (or "Us") shall mean Ant Group.
9
+ c. "CodeFuse" shall mean the large language models (including CodeFuse-13B and CodeFuse-CodeLlaMa-34B), and software and algorithms, consisting of trained model weights, parameters (including optimizer states), machine-learning model code, and other elements of the foregoing distributed by Us.
10
+ d. "Documentation" shall mean the specifications, manuals and documentation accompanying CodeFuse distributed by Us.
11
+ e. "Materials" shall mean, collectively, Ant's proprietary CodeFuse and Documentation (and any portion thereof) made available under this Agreement.
12
+ f. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
13
+ g. "Source" form shall mean the preferred form for making modifications, including but not limited to model source code, documentation source, and configuration files.
14
+ h. "Third Parties" (or "Third Party") shall mean individuals or legal entities that are not controlling, controlled by Us or You, or under common control with Us or You.
15
+ i. "You" (or "Your") shall mean a natural person or legal entity exercising the rights granted by this Agreement and/or using the Materials for any purpose and in any field of use.
16
+
17
+ 2. Grant of Rights.
18
+ You are granted a non-exclusive, worldwide, non-transferable and royalty-free limited license under Ant's intellectual property or other rights owned by Ant embodied in the Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the Materials.
19
+
20
+ 3. Redistribution.
21
+ You may distribute or make the Materials or derivative works thereof available to a Third Party in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
22
+ a. You shall provide a copy of this Agreement to such Third Party;
23
+ b. if You modify the CodeFuse model, You shall provide a prominent notice, stating how You have modified the CodeFuse model, to such Third Party; and
24
+ c. You shall retain in all copies of the Materials that You distribute the following attribution notices within a "Notice" text file distributed as a part of such copies: "CodeFuse is licensed under the CodeFuse COMMUNITY LICENSE AGREEMENT, Copyright (c) Ant Group. All Rights Reserved."
25
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such derivative works as a whole, provided Your use, reproduction, and distribution of the work otherwise complies with the terms and conditions of this Agreement.
26
+
27
+ 4. Rules of Use.
28
+ You shall comply with applicable laws and regulations (including without limitation export controls or restrictions) in Your use of the Materials.
29
+
30
+ 5. Intellectual Property.
31
+ a. Ant retains ownership of all intellectual property rights in and to the Materials and derivatives made by or for Ant. Conditioned upon compliance with the terms and conditions of this Agreement, with respect to any derivative works and modifications of the Materials that are made by You, You are and will be the owner of such derivative works and modifications.
32
+ b. No trademark license is granted to use the trade names, trademarks, service marks, or product names of Ant, except as required to fulfill notice requirements under this Agreement or as required for reasonable and customary use in describing and redistributing the Materials.
33
+ c. If You commence a lawsuit or other proceedings (including a cross-claim or counterclaim in a lawsuit) against Ant or any entity alleging that the Materials or any output therefrom, or any part of the foregoing, infringe any intellectual property or other right owned or licensable by You, then all licences granted to You under this Agreement shall terminate as of the date such lawsuit or other proceeding is commenced or brought.
34
+
35
+ 6. Disclaimer of Warranty and Limitation of Liability.
36
+ a. Ant is not obligated to support, update, provide training for, or develop any further version of the Materials or to grant any license thereto.
37
+ b. THE MATERIALS ARE PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY OF ANY KIND INCLUDING WARRANTIES OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. WE MAKE NO WARRANTY AND ASSUME NO RESPONSIBILITY FOR THE SAFETY OR STABILITY OF THE MATERIALS AND ANY OUTPUT THEREFROM.
38
+ c. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE MATERIALS AND ANY OUTPUT AND RESULTS. IN NO EVENT SHALL WE BE LIABLE TO YOU FOR ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT OR ARISING FROM YOUR USE OR INABILITY TO USE THE MATERIALS OR ANY OUTPUT OF IT, FOR ANY DIRECT, OR INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, NO MATTER HOW IT'S CAUSED OR EVEN IF ANT OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.
39
+ d. You will defend, indemnify and hold harmless Ant from and against any claim by any Third Party arising out of or related to Your use or distribution of the Materials.
40
+
41
+ 7. Survival and Termination.
42
+ a. The term of this Agreement shall commence upon Your acceptance of this Agreement or access to the Materials and will continue in full force and effect until terminated in accordance with the terms and conditions herein.
43
+ b. We may terminate this Agreement if You breach any of the terms or conditions of this Agreement. Upon termination of this Agreement, You must delete and cease use of the Materials. Sections 6 and 8 shall survive the termination of this Agreement.
44
+
45
+ 8. Governing Law and Jurisdiction.
46
+ a. This Agreement and any dispute arising out of or relating to it, whether in contract, tort, negligence, products liability, or otherwise, will be governed by the laws of China, without regard to conflict of law principles, and the UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement.
47
+ b. The People's Courts in Hangzhou City shall have exclusive jurisdiction over any dispute arising out of this Agreement.
LOGO.jpg ADDED
MODEL_LICENSE.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CodeFuse COMMUNITY LICENSE AGREEMENT
2
+ CodeFuse Release Date: September 8, 2023
3
+
4
+ By clicking to agree or by using or distributing any portion or element of the Materials, you will be deemed to have recognized and accepted the content of this Agreement, which is effective immediately.
5
+
6
+ 1. Definitions.
7
+ a. This CodeFuse COMMUNITY LICENSE AGREEMENT (this "Agreement") shall mean the terms and conditions for use, reproduction, distribution and modification of the Materials as defined by this Agreement.
8
+ b. "Ant" or "We" (or "Us") shall mean Ant Group.
9
+ c. "CodeFuse" shall mean the large language models (including CodeFuse-13B and CodeFuse-CodeLlaMa-34B), and software and algorithms, consisting of trained model weights, parameters (including optimizer states), machine-learning model code, and other elements of the foregoing distributed by Us.
10
+ d. "Documentation" shall mean the specifications, manuals and documentation accompanying CodeFuse distributed by Us.
11
+ e. "Materials" shall mean, collectively, Ant's proprietary CodeFuse and Documentation (and any portion thereof) made available under this Agreement.
12
+ f. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
13
+ g. "Source" form shall mean the preferred form for making modifications, including but not limited to model source code, documentation source, and configuration files.
14
+ h. "Third Parties" (or "Third Party") shall mean individuals or legal entities that are not controlling, controlled by Us or You, or under common control with Us or You.
15
+ i. "You" (or "Your") shall mean a natural person or legal entity exercising the rights granted by this Agreement and/or using the Materials for any purpose and in any field of use.
16
+
17
+ 2. Grant of Rights.
18
+ You are granted a non-exclusive, worldwide, non-transferable and royalty-free limited license under Ant's intellectual property or other rights owned by Ant embodied in the Materials to use, reproduce, distribute, copy, create derivative works of, and make modifications to the Materials.
19
+
20
+ 3. Redistribution.
21
+ You may distribute or make the Materials or derivative works thereof available to a Third Party in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
22
+ a. You shall provide a copy of this Agreement to such Third Party;
23
+ b. if You modify the CodeFuse model, You shall provide a prominent notice, stating how You have modified the CodeFuse model, to such Third Party; and
24
+ c. You shall retain in all copies of the Materials that You distribute the following attribution notices within a "Notice" text file distributed as a part of such copies: "CodeFuse is licensed under the CodeFuse COMMUNITY LICENSE AGREEMENT, Copyright (c) Ant Group. All Rights Reserved."
25
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such derivative works as a whole, provided Your use, reproduction, and distribution of the work otherwise complies with the terms and conditions of this Agreement.
26
+
27
+ 4. Rules of Use.
28
+ You shall comply with applicable laws and regulations (including without limitation export controls or restrictions) in Your use of the Materials.
29
+
30
+ 5. Intellectual Property.
31
+ a. Ant retains ownership of all intellectual property rights in and to the Materials and derivatives made by or for Ant. Conditioned upon compliance with the terms and conditions of this Agreement, with respect to any derivative works and modifications of the Materials that are made by You, You are and will be the owner of such derivative works and modifications.
32
+ b. No trademark license is granted to use the trade names, trademarks, service marks, or product names of Ant, except as required to fulfill notice requirements under this Agreement or as required for reasonable and customary use in describing and redistributing the Materials.
33
+ c. If You commence a lawsuit or other proceedings (including a cross-claim or counterclaim in a lawsuit) against Ant or any entity alleging that the Materials or any output therefrom, or any part of the foregoing, infringe any intellectual property or other right owned or licensable by You, then all licences granted to You under this Agreement shall terminate as of the date such lawsuit or other proceeding is commenced or brought.
34
+
35
+ 6. Disclaimer of Warranty and Limitation of Liability.
36
+ a. Ant is not obligated to support, update, provide training for, or develop any further version of the Materials or to grant any license thereto.
37
+ b. THE MATERIALS ARE PROVIDED "AS IS" WITHOUT ANY EXPRESS OR IMPLIED WARRANTY OF ANY KIND INCLUDING WARRANTIES OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, OR FITNESS FOR A PARTICULAR PURPOSE. WE MAKE NO WARRANTY AND ASSUME NO RESPONSIBILITY FOR THE SAFETY OR STABILITY OF THE MATERIALS AND ANY OUTPUT THEREFROM.
38
+ c. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING OR REDISTRIBUTING THE MATERIALS AND ASSUME ANY RISKS ASSOCIATED WITH YOUR USE OF THE MATERIALS AND ANY OUTPUT AND RESULTS. IN NO EVENT SHALL WE BE LIABLE TO YOU FOR ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, TORT, NEGLIGENCE, PRODUCTS LIABILITY, OR OTHERWISE, ARISING OUT OF THIS AGREEMENT OR ARISING FROM YOUR USE OR INABILITY TO USE THE MATERIALS OR ANY OUTPUT OF IT, FOR ANY DIRECT, OR INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL, EXEMPLARY OR PUNITIVE DAMAGES, NO MATTER HOW IT'S CAUSED OR EVEN IF ANT OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF ANY OF THE FOREGOING.
39
+ d. You will defend, indemnify and hold harmless Ant from and against any claim by any Third Party arising out of or related to Your use or distribution of the Materials.
40
+
41
+ 7. Survival and Termination.
42
+ a. The term of this Agreement shall commence upon Your acceptance of this Agreement or access to the Materials and will continue in full force and effect until terminated in accordance with the terms and conditions herein.
43
+ b. We may terminate this Agreement if You breach any of the terms or conditions of this Agreement. Upon termination of this Agreement, You must delete and cease use of the Materials. Sections 6 and 8 shall survive the termination of this Agreement.
44
+
45
+ 8. Governing Law and Jurisdiction.
46
+ a. This Agreement and any dispute arising out of or relating to it, whether in contract, tort, negligence, products liability, or otherwise, will be governed by the laws of China, without regard to conflict of law principles, and the UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement.
47
+ b. The People's Courts in Hangzhou City shall have exclusive jurisdiction over any dispute arising out of this Agreement.
README.md ADDED
@@ -0,0 +1,384 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ tasks:
4
+ - code-generation
5
+ ---
6
+ # Model Card for CodeFuse-DeepSeek-33B
7
+ ![logo](LOGO.jpg)
8
+
9
+ [[中文]](#chinese) [[English]](#english)
10
+
11
+
12
+
13
+ <a id="english"></a>
14
+
15
+ ## Model Description
16
+
17
+ CodeFuse-DeepSeek-33B is a 33B Code-LLM finetuned by QLoRA on multiple code-related tasks on the base model DeepSeek-Coder-33B.
18
+
19
+ <br>
20
+
21
+ ## News and Updates
22
+
23
+ 🔥🔥🔥 2024-01-12 CodeFuse-DeepSeek-33B has been released, achieving a pass@1 (greedy decoding) score of 78.65% on HumanEval.
24
+
25
+ 🔥🔥🔥 2024-01-12 CodeFuse-Mixtral-8x7B has been released, achieving a pass@1 (greedy decoding) score of 56.1% on HumanEval, which is a 15% increase compared to Mixtral-8x7b's 40%.
26
+
27
+ 🔥🔥 2023-11-10 CodeFuse-CodeGeeX2-6B has been released, achieving a pass@1 (greedy decoding) score of 45.12% on HumanEval, which is a 9.22% increase compared to CodeGeeX2 35.9%.
28
+
29
+ 🔥🔥 2023-10-20 CodeFuse-QWen-14B technical documentation has been released. For those interested, please refer to the CodeFuse article on our WeChat official account via the provided link.(https://mp.weixin.qq.com/s/PCQPkvbvfxSPzsqjOILCDw)
30
+
31
+ 🔥🔥 2023-10-16 CodeFuse-QWen-14B has been released, achieving a pass@1 (greedy decoding) score of 48.78% on HumanEval, which is a 16% increase compared to Qwen-14b's 32.3%.
32
+
33
+ 🔥🔥 2023-09-27 CodeFuse-StarCoder-15B has been released, achieving a pass@1 (greedy decoding) score of 54.9% on HumanEval, which is a 21% increase compared to StarCoder's 33.6%.
34
+
35
+ 🔥🔥 2023-09-26 We are pleased to announce the release of the 4-bit quantized version of CodeFuse-CodeLlama-34B. Despite the quantization process, the model still achieves a remarkable 73.8% accuracy (greedy decoding) on the HumanEval pass@1 metric.
36
+
37
+ 🔥🔥 2023-09-11 CodeFuse-CodeLlama-34B has achieved 74.4% of pass@1 (greedy decoding) on HumanEval, which is SOTA results for openspurced LLMs at present.
38
+
39
+ <br>
40
+
41
+ ## Code Community
42
+
43
+ **Homepage**: 🏡 https://github.com/codefuse-ai (**Please give us your support with a Star🌟 + Fork🚀 + Watch👀**)
44
+
45
+ + If you wish to fine-tune the model yourself, you can visit ✨[MFTCoder](https://github.com/codefuse-ai/MFTCoder)✨✨
46
+
47
+
48
+ + If you wish to see a demo of the model, you can visit ✨[CodeFuse Demo](https://github.com/codefuse-ai/codefuse)✨✨
49
+
50
+ <br>
51
+
52
+ ## Performance
53
+
54
+ ### Code
55
+
56
+ | Model | HumanEval(pass@1) | Date |
57
+ |:----------------------------|:-----------------:|:-------:|
58
+ | **CodeFuse-DeepSeek-33B** | **78.65%** | 2024.01 |
59
+ | **CodeFuse-Mixtral-8x7B** | **56.10%** | 2024.01 |
60
+ | **CodeFuse-CodeLlama-34B** | 74.4% | 2023.9 |
61
+ |**CodeFuse-CodeLlama-34B-4bits** | 73.8% | 2023.9 |
62
+ | **CodeFuse-StarCoder-15B** | 54.9% | 2023.9 |
63
+ | **CodeFuse-QWen-14B** | 48.78% | 2023.10 |
64
+ | **CodeFuse-CodeGeeX2-6B** | 45.12% | 2023.11 |
65
+ | WizardCoder-Python-34B-V1.0 | 73.2% | 2023.8 |
66
+ | GPT-4(zero-shot) | 67.0% | 2023.3 |
67
+ | PanGu-Coder2 15B | 61.6% | 2023.8 |
68
+ | CodeLlama-34b-Python | 53.7% | 2023.8 |
69
+ | CodeLlama-34b | 48.8% | 2023.8 |
70
+ | GPT-3.5(zero-shot) | 48.1% | 2022.11 |
71
+ | OctoCoder | 46.2% | 2023.8 |
72
+ | StarCoder-15B | 33.6% | 2023.5 |
73
+ | Qwen-14b | 32.3% | 2023.10 |
74
+
75
+
76
+
77
+
78
+ ### NLP
79
+
80
+ ![NLP Performance Radar](codefuse-deepseek-33b-nlp.png)
81
+
82
+ <br>
83
+
84
+ ## Requirements
85
+
86
+ * python>=3.8
87
+ * pytorch>=2.0.0
88
+ * transformers>=4.33.2
89
+ * Sentencepiece
90
+ * CUDA 11.4
91
+ <br>
92
+
93
+ ## Inference String Format
94
+
95
+ The inference string is a concatenated string formed by combining conversation data(system, human and bot contents) in the training data format. It is used as input during the inference process.
96
+ Here are examples of prompts used to request the model:
97
+
98
+ **Multi-Round with System Prompt:**
99
+ ```python
100
+ """
101
+ <s>system
102
+ System instruction
103
+ <s>human
104
+ Human 1st round input
105
+ <s>bot
106
+ Bot 1st round output<|end▁of▁sentence|>
107
+ <s>human
108
+ Human 2nd round input
109
+ <s>bot
110
+ Bot 2nd round output<|end▁of▁sentence|>
111
+ ...
112
+ ...
113
+ ...
114
+ <s>human
115
+ Human nth round input
116
+ <s>bot
117
+ """
118
+ ```
119
+
120
+ **Single-Round without System Prompt:**
121
+ ```python
122
+ """
123
+ <s>human
124
+ User prompt...
125
+ <s>bot
126
+
127
+ """
128
+ ```
129
+
130
+ In this format, the system section is optional and the conversation can be either single-turn or multi-turn. When applying inference, you always make your input string end with "\<s\>bot" to ask the model generating answers.
131
+
132
+ For example, the format used to infer HumanEval is like the following:
133
+
134
+ ```
135
+ <s>human
136
+ # language: Python
137
+ from typing import List
138
+ def separate_paren_groups(paren_string: str) -> List[str]:
139
+ """ Input to this function is a string containing multiple groups of nested parentheses. Your goal is to
140
+ separate those group into separate strings and return the list of those.
141
+ Separate groups are balanced (each open brace is properly closed) and not nested within each other
142
+ Ignore any spaces in the input string.
143
+ >>> separate_paren_groups('( ) (( )) (( )( ))')
144
+ ['()', '(())', '(()())']
145
+ """
146
+ <s>bot
147
+
148
+ ```
149
+
150
+ Specifically, we also add the Programming Language Tag (e.g. "```# language: Python```" for Python) used by CodeGeex models.
151
+
152
+ ## Quickstart
153
+
154
+
155
+ ```python
156
+ import torch
157
+ from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
158
+
159
+ model_dir = "codefuse-ai/CodeFuse-DeepSeek-33B"
160
+
161
+ def load_model_tokenizer(model_path):
162
+ tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
163
+ tokenizer.eos_token = "<|end▁of▁sentence|>"
164
+ tokenizer.pad_token = "<|end▁of▁sentence|>"
165
+ tokenizer.eos_token_id = tokenizer.convert_tokens_to_ids(tokenizer.eos_token)
166
+ tokenizer.pad_token_id = tokenizer.convert_tokens_to_ids(tokenizer.pad_token)
167
+ tokenizer.padding_side = "left"
168
+
169
+ model = AutoModelForCausalLM.from_pretrained(model_path, device_map='auto',torch_dtype=torch.bfloat16, trust_remote_code=True)
170
+ return model, tokenizer
171
+
172
+
173
+ HUMAN_ROLE_START_TAG = "<s>human\n"
174
+ BOT_ROLE_START_TAG = "<s>bot\n"
175
+
176
+ text_list = [f'{HUMAN_ROLE_START_TAG}Write a QuickSort program\n#Python\n{BOT_ROLE_START_TAG}']
177
+
178
+ model, tokenizer = load_model_tokenizer(model_dir)
179
+ inputs = tokenizer(text_list, return_tensors='pt', padding=True, add_special_tokens=False).to('cuda')
180
+ input_ids = inputs["input_ids"]
181
+ attention_mask = inputs["attention_mask"]
182
+ generation_config = GenerationConfig(
183
+ eos_token_id=tokenizer.eos_token_id,
184
+ pad_token_id=tokenizer.pad_token_id,
185
+ temperature=0.1,
186
+ max_new_tokens=512,
187
+ num_return_sequences=1,
188
+ num_beams=1,
189
+ top_p=0.95,
190
+ do_sample=False
191
+ )
192
+ outputs = model.generate(
193
+ inputs= input_ids,
194
+ attention_mask=attention_mask,
195
+ **generation_config.to_dict()
196
+ )
197
+ gen_text = tokenizer.batch_decode(outputs[:, input_ids.shape[1]:], skip_special_tokens=True)
198
+ print(gen_text[0])
199
+ ```
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+ <a id="chinese"></a>
209
+
210
+ ## 模型简介
211
+
212
+ CodeFuse-DeepSeek-33B 是一个通过QLoRA对基座模型DeepSeek-Coder-33B进行多代码任务微调而得到的代码大模型。
213
+ <br>
214
+
215
+ ## 新闻
216
+
217
+ 🔥🔥🔥 2024-01-12 CodeFuse-DeepSeek-33B模型发布,模型在HumanEval pass@1指标为78.65% (贪婪解码)。
218
+
219
+ 🔥🔥🔥 2023-11-10 开源了CodeFuse-CodeGeeX2-6B模型,在HumanEval pass@1(greedy decoding)上可以达到48.12%, 比CodeGeeX2提高了9.22%的代码能力(HumanEval)
220
+
221
+ 🔥🔥🔥 2023-10-20 公布了CodeFuse-QWen-14B技术文档,感兴趣详见微信公众号CodeFuse文章:https://mp.weixin.qq.com/s/PCQPkvbvfxSPzsqjOILCDw
222
+
223
+ 🔥🔥🔥 2023-10-16开源了CodeFuse-QWen-14B模型,在HumanEval pass@1(greedy decoding)上可以达到48.78%, 比Qwen-14b提高了16%的代码能力(HumanEval)
224
+
225
+ 🔥🔥🔥 2023-09-27开源了CodeFuse-StarCoder-15B模型,在HumanEval pass@1(greedy decoding)上可以达到54.9%, 比StarCoder提高了21%的代码能力(HumanEval)
226
+
227
+ 🔥🔥🔥 2023-09-26 [CodeFuse-CodeLlama-34B 4bits](https://modelscope.cn/models/codefuse-ai/CodeFuse-CodeLlama-34B-4bits/summary)量化版本发布,量化后模型在HumanEval pass@1指标为73.8% (贪婪解码)。
228
+
229
+ 🔥🔥🔥 2023-09-11 [CodeFuse-CodeLlama-34B](https://modelscope.cn/models/codefuse-ai/CodeFuse-CodeLlama-34B/summary)发布,HumanEval pass@1指标达到74.4% (贪婪解码), 为当前开源SOTA。
230
+
231
+ <br>
232
+
233
+ ## 代码社区
234
+ **大本营**: 🏡 https://github.com/codefuse-ai (**请支持我们的项目Star🌟 + Fork🚀 + Watch👀**)
235
+
236
+ + 如果您想自己微调该模型,可以访问 ✨[MFTCoder](https://github.com/codefuse-ai/MFTCoder)✨✨
237
+
238
+ + 如果您想观看该模型示例,可以访问 ✨[CodeFuse Demo](https://github.com/codefuse-ai/codefuse)✨✨
239
+
240
+ <br>
241
+
242
+
243
+ ## 评测表现
244
+
245
+ ### 代码
246
+
247
+
248
+ | 模型 | HumanEval(pass@1) | 日期 |
249
+ |:----------------------------|:-----------------:|:-------:|
250
+ | **CodeFuse-CodeLlama-34B** | 74.4% | 2023.9 |
251
+ |**CodeFuse-CodeLlama-34B-4bits** | 73.8% | 2023.9 |
252
+ | WizardCoder-Python-34B-V1.0 | 73.2% | 2023.8 |
253
+ | GPT-4(zero-shot) | 67.0% | 2023.3 |
254
+ | PanGu-Coder2 15B | 61.6% | 2023.8 |
255
+ | CodeLlama-34b-Python | 53.7% | 2023.8 |
256
+ | CodeLlama-34b | 48.8% | 2023.8 |
257
+ | GPT-3.5(zero-shot) | 48.1% | 2022.11 |
258
+ | OctoCoder | 46.2% | 2023.8 |
259
+ | StarCoder-15B | 33.6% | 2023.5 |
260
+ | Qwen-14b | 32.3% | 2023.10 |
261
+ | **CodeFuse-StarCoder-15B** | 54.9% | 2023.9 |
262
+ | **CodeFuse-QWen-14B** | 48.78% | 2023.8 |
263
+ | **CodeFuse-CodeGeeX2-6B** | 45.12% | 2023.11 |
264
+ | **CodeFuse-DeepSeek-33B**. | **78.65%** | 2024.01 |
265
+
266
+
267
+ ### NLP
268
+
269
+ ![NLP Performance Radar](codefuse-deepseek-33b-nlp.png)
270
+
271
+ ## Requirements
272
+
273
+ * python>=3.8
274
+ * pytorch>=2.0.0
275
+ * transformers>=4.33.2
276
+ * Sentencepiece
277
+ * CUDA 11.4
278
+ <br>
279
+
280
+ ## 推理数据格式
281
+
282
+ 推理数据为模型在训练数据格式下拼接的字符串形式,它也是推理时输入prompt拼接的方式. 下面分别是带系统提示的多轮会话格式和不带系统提示的单轮会话格式:
283
+
284
+ **带System提示的多轮会话格式:**
285
+ ```python
286
+ """
287
+ <s>system
288
+ System instruction
289
+ <s>human
290
+ Human 1st round input
291
+ <s>bot
292
+ Bot 1st round output<|end▁of▁sentence|>
293
+ <s>human
294
+ Human 2nd round input
295
+ <s>bot
296
+ Bot 2nd round output<|end▁of▁sentence|>
297
+ ...
298
+ ...
299
+ ...
300
+ <s>human
301
+ Human nth round input
302
+ <s>bot
303
+ """
304
+ ```
305
+
306
+ **不带System提示的单轮会话格式:**
307
+ ```python
308
+ """
309
+ <s>human
310
+ User prompt...
311
+ <s>bot
312
+
313
+ """
314
+ ```
315
+
316
+ 在这个格式中,System提示是可选的(按需设定),支持单轮会话也支持多轮会话。推理时,请确保拼接的prompt字符串以"\<s\>bot\n"结尾,引导模型生成回答。
317
+
318
+ 例如,推理HumanEval数据时使用的格式如下所示:
319
+
320
+ ```python
321
+ <s>human
322
+ # language: Python
323
+ from typing import List
324
+ def separate_paren_groups(paren_string: str) -> List[str]:
325
+ """ Input to this function is a string containing multiple groups of nested parentheses. Your goal is to
326
+ separate those group into separate strings and return the list of those.
327
+ Separate groups are balanced (each open brace is properly closed) and not nested within each other
328
+ Ignore any spaces in the input string.
329
+ >>> separate_paren_groups('( ) (( )) (( )( ))')
330
+ ['()', '(())', '(()())']
331
+ """
332
+ <s>bot
333
+
334
+ ```
335
+
336
+ 特别地,我们也使用了CodeGeeX系列模型采用的编程语言区分标签(例如,对于Python语言,我们会使用"```# language: Python```")。
337
+
338
+ ## 快速使用
339
+
340
+ ```python
341
+ import torch
342
+ from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
343
+
344
+ model_dir = "codefuse-ai/CodeFuse-DeepSeek-33B"
345
+
346
+ def load_model_tokenizer(model_path):
347
+ tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
348
+ tokenizer.eos_token = "<|end▁of▁sentence|>"
349
+ tokenizer.pad_token = "<|end▁of▁sentence|>"
350
+ tokenizer.eos_token_id = tokenizer.convert_tokens_to_ids(tokenizer.eos_token)
351
+ tokenizer.pad_token_id = tokenizer.convert_tokens_to_ids(tokenizer.pad_token)
352
+ tokenizer.padding_side = "left"
353
+
354
+ model = AutoModelForCausalLM.from_pretrained(model_path, device_map='auto',torch_dtype=torch.bfloat16, trust_remote_code=True)
355
+ return model, tokenizer
356
+
357
+ HUMAN_ROLE_START_TAG = "<s>human\n"
358
+ BOT_ROLE_START_TAG = "<s>bot\n"
359
+
360
+ text_list = [f'{HUMAN_ROLE_START_TAG}请写一个快排程序\n#Python\n{BOT_ROLE_START_TAG}']
361
+
362
+ model, tokenizer = load_model_tokenizer(model_dir)
363
+ inputs = tokenizer(text_list, return_tensors='pt', padding=True, add_special_tokens=False).to('cuda')
364
+ input_ids = inputs["input_ids"]
365
+ attention_mask = inputs["attention_mask"]
366
+ generation_config = GenerationConfig(
367
+ eos_token_id=tokenizer.eos_token_id,
368
+ pad_token_id=tokenizer.pad_token_id,
369
+ temperature=0.2,
370
+ max_new_tokens=512,
371
+ num_return_sequences=1,
372
+ num_beams=1,
373
+ top_p=0.95,
374
+ do_sample=False
375
+ )
376
+ outputs = model.generate(
377
+ inputs= input_ids,
378
+ attention_mask=attention_mask,
379
+ **generation_config.to_dict()
380
+ )
381
+ gen_text = tokenizer.batch_decode(outputs[:, input_ids.shape[1]:], skip_special_tokens=True)
382
+ print(gen_text[0])
383
+ ```
384
+
codefuse-deepseek-33b-nlp.png ADDED

Git LFS Details

  • SHA256: e78294652b904ef725866bade3e720fb9a15423841051033fc6e1d5718b4c66c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.23 MB
huggingface-metadata.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ url: https://huggingface.co/codefuse-ai/CodeFuse-DeepSeek-33B
2
+ branch: main
3
+ download date: 2024-01-30 10:30:00
4
+ sha256sum:
5
+ 0f081f016a31d1edd2561b187d9ed7f82ee380a3e205db5cae393a5f54d622be pytorch_model-00001-of-00007.bin
6
+ 1f187f2758a9c669e2b9acab47ec4db0850a6c0c2d5543ef2d8cffb8fa046e15 pytorch_model-00002-of-00007.bin
7
+ 992e16711432e48c63d738038c4d7ced05d2875450fb52bd80faff94488c1354 pytorch_model-00003-of-00007.bin
8
+ b3ffbd51b183509b9c5460959235cd2561bb3d73aef14c8abfe690f507b100d9 pytorch_model-00004-of-00007.bin
9
+ d1250e56767a85d0e6155c0e9ec192e1645703c2bbb45f9fdcc5f93a1a3eaeac pytorch_model-00005-of-00007.bin
10
+ 9a155bdb0a98cff5eeab91119eb30189bf402e94c80cd998215593938a9f4dd8 pytorch_model-00006-of-00007.bin
11
+ 8e6d7a50c20fa18a246a84f83b3de6f02561df3b03d5707cfe465e86d2c2e545 pytorch_model-00007-of-00007.bin
requirements.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ numpy
2
+ pandas
3
+ einops
4
+ sentencepiece
5
+ deepspeed==0.9.3
6
+ transformers==4.33.2
7
+ accelerate==0.21.0
8
+ peft==0.4.0
9
+ BitsAndBytes==0.40.2
10
+ xformers==0.0.21
11
+ ujson
12
+ jsonlines
13
+ tiktoken
14
+ transformers_stream_generator