Volko76 commited on
Commit
d32b081
β€’
1 Parent(s): 596ce70

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* 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
 
 
 
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
36
+ opencoder-1.5b-base.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
37
+ opencoder-1.5b-base.bf16.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: inf
4
+ license_link: https://huggingface.co/infly/OpenCoder-1.5B-Base/blob/main/LICENSE
5
+ language:
6
+ - en
7
+ - zh
8
+ pipeline_tag: text-generation
9
+ library_name: transformers
10
+ tags:
11
+ - autoquant
12
+ - gguf
13
+ ---
14
+
15
+
16
+
17
+ <div align="center">
18
+ <img src="https://github.com/OpenCoder-llm/opencoder-llm.github.io/blob/main/static/images/opencoder_icon.jpg?raw=true" width="50%" alt="OpenCoder-Icon" />
19
+ </div>
20
+
21
+
22
+
23
+ <p align="center">
24
+ <!-- <a href="https://arxiv.org/pdf/2411.04905"><b>Paper Link</b>πŸ‘οΈ</a> -->
25
+ 🏠 <a href="https://opencoder-llm.github.io/">Home Page</a>&nbsp&nbsp |
26
+ &nbsp&nbsp πŸ€— <a href="https://huggingface.co/collections/infly/opencoder-672cec44bbb86c39910fb55e">Model</a>&nbsp&nbsp |
27
+ &nbsp&nbsp πŸ“Š <a href="https://huggingface.co/collections/OpenCoder-LLM/opencoder-datasets-672e6db6a0fed24bd69ef1c2">Dataset</a>&nbsp&nbsp |
28
+ &nbsp&nbsp πŸ“„<a href="https://arxiv.org/abs/2411.04905">Paper</a>&nbsp&nbsp
29
+ </p>
30
+
31
+
32
+ ## 1. Introduction
33
+
34
+ **OpenCoder** is an open and reproducible code LLM family which includes 1.5B and 8B base and chat models, supporting both English and Chinese languages. Starting from scratch, OpenCoder is pretrained on 2.5 trillion tokens composed of 90% raw code and 10% code-related web data, and supervised finetuned on over 4.5M high-quality SFT examples, finally reaching the performance of top-tier code LLMs. We provide not only model weights and inference code, but also the reproducible training data, the complete data processing pipeline, rigorous experimental ablation results, and detailed training protocols. Empowering researchers to build and innovate, OpenCoder is your open foundation for advancing code AI.
35
+
36
+ - **Complete Open Source**: OpenCoder ensures full transparency by releasing not only the model weights and forthcoming inference code but also the complete data-cleaning code for training. This release includes high-quality synthetic data, an extensive set of checkpoints, and a dataset of over 4.5 million supervised fine-tuning (SFT) entries, making OpenCoder one of the most comprehensively open-sourced models available.
37
+ - **Comprehensive Experimental Analysis**: OpenCoder is rigorously tested through extensive ablation studies on various data-cleaning strategies and training processes, including file-level and repository-level deduplication experiments, ensuring thorough exploration and validation of the model’s performance.
38
+ - **High-Quality Synthetic Data**: OpenCoder provides a fully developed synthetic data generation process and over 4.5 million SFT data entries, establishing a robust data foundation for model training and evaluation.
39
+ - **Exceptional Performance**: OpenCoder achieves high performance across multiple language model benchmarks, positioning it among the leading open-source models for code.
40
+
41
+
42
+ ## 2. Models
43
+
44
+ | Model | Sequence Length | Download |
45
+ |:---------------------:|:---------------:|:-----------------------------------------------------------------------:|
46
+ | OpenCoder-1.5B-Base | 4K | πŸ€— [HuggingFace](https://huggingface.co/infly/OpenCoder-1.5B-Base) |
47
+ | OpenCoder-8B-Base | 8K | πŸ€— [HuggingFace](https://huggingface.co/infly/OpenCoder-8B-Base) |
48
+ | OpenCoder-1.5B-Instruct | 4K | πŸ€— [HuggingFace](https://huggingface.co/infly/OpenCoder-1.5B-Instruct) |
49
+ | OpenCoder-8B-Instruct | 8K | πŸ€— [HuggingFace](https://huggingface.co/infly/OpenCoder-8B-Instruct) |
50
+
51
+
52
+ ## 3. Datasets
53
+
54
+ ### Pre-training
55
+
56
+ | Dataset | Size | Download |
57
+ |:---------------------:|:---------------:|:-----------------------------------------------------------------------:|
58
+ | fineweb-code-corpus | 148 GB | πŸ€— [HuggingFace](https://huggingface.co/datasets/OpenCoder-LLM/fineweb-code-corpus) |
59
+ | fineweb-math-corpus | 10 GB | πŸ€— [HuggingFace](https://huggingface.co/datasets/OpenCoder-LLM/fineweb-math-corpus) |
60
+
61
+
62
+ **This is not the end; we are organizing the remaining data and uploading it progressively.**
63
+
64
+ ## 4. Benchmarks
65
+
66
+ **Note:** For the detailed evaluation results, please refer to [our paper](https://arxiv.org/pdf/2411.04905).
67
+
68
+ <!-- ### Base Model -->
69
+ | model | OpenCoder-1.5B-Base | OpenCoder-8B-Base |
70
+ |:---------------:|:-------------:|:------------:|
71
+ | HumanEval(+) | 54.3 (49.4) | 66.5 (63.4) |
72
+ | MBPP(+) | 70.6 (58.7) | 79.9 (70.4) |
73
+ | BigCodeBench | 24.5 | 40.5 |
74
+ | BigCodeBench-Hard | 5.4 | 9.5 |
75
+
76
+
77
+ <!-- ### Chat Model
78
+ | model | OpenCoder-1.5B-Instruct | OpenCoder-8B-Instruct |
79
+ |:---------------:|:-------------:|:------------:|
80
+ | HumanEval(+) | 72.5 (67.7) | 83.5 (78.7) |
81
+ | MBPP(+) | 72.7 (61.9) | 79.1 (69.0) |
82
+ | BigCodeBench | 33.3 | 40.3 |
83
+ | BigCodeBench-Hard | 11.5 | 16.9 |
84
+ | LiveCodeBench | 12.8 | 23.2 |
85
+ | MultiPL-E (AVG) | 57.5 | 71.0 | -->
86
+
87
+
88
+ ## 5. Inference
89
+
90
+ ### Inference with Huggingface's Transformers
91
+
92
+ ```python
93
+ import torch
94
+ from transformers import AutoTokenizer, AutoModelForCausalLM
95
+
96
+ model_name = "infly/OpenCoder-1.5B-Base"
97
+ model = AutoModelForCausalLM.from_pretrained(model_name,
98
+ torch_dtype=torch.bfloat16,
99
+ device_map="auto",
100
+ trust_remote_code=True)
101
+ tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
102
+
103
+
104
+ inputs = tokenizer("# write a quick sort algorithm", return_tensors="pt")
105
+ outputs = model.generate(**inputs.to(model.device), max_new_tokens=128)
106
+
107
+ result = tokenizer.decode(outputs[0], skip_special_tokens=True)
108
+ print(result)
109
+ ```
110
+
111
+ <!-- ### Inference with vLLM (recommended) -->
112
+
113
+ ## 6. License
114
+
115
+ OpenCoder series (including Base and Chat) support commercial applications under a permissive [License](https://huggingface.co/infly/OpenCoder-1.5B-Base/blob/main/LICENSE).
116
+
117
+ ## 7. Citation
118
+ ```
119
+ @inproceedings{Huang2024OpenCoderTO,
120
+ title={OpenCoder: The Open Cookbook for Top-Tier Code Large Language Models},
121
+ author={Siming Huang and Tianhao Cheng and Jason Klein Liu and Jiaran Hao and Liuyihan Song and Yang Xu and J. Yang and J. H. Liu and Chenchen Zhang and Linzheng Chai and Ruifeng Yuan and Zhaoxiang Zhang and Jie Fu and Qian Liu and Ge Zhang and Zili Wang and Yuan Qi and Yinghui Xu and Wei Chu},
122
+ year={2024},
123
+ url={https://arxiv.org/pdf/2411.04905}
124
+ }
125
+ ```
opencoder-1.5b-base.Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2061e9f17efa95a4369a4a800f55ed5de068e80daf087d973818c67fcb06447c
3
+ size 1138903744
opencoder-1.5b-base.bf16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4767c0dbea0297cee02a666562044e7b6544dea2dcd313b8723aef5a9771a64e
3
+ size 3813750464