TomPei commited on
Commit
44d388a
·
verified ·
1 Parent(s): 3568d1e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -47
README.md CHANGED
@@ -94,57 +94,20 @@ sequences = pipeline(
94
  for seq in sequences:
95
  print(f"Result: {seq['generated_text']}")
96
  ```
 
97
 
98
- ## Model Details
99
- *Note: Use of this model is governed by the Meta license. Meta developed and publicly released the Code Llama family of large language models (LLMs).
100
 
101
- **Model Developers** Meta
102
 
103
- **Variations** Code Llama comes in three model sizes, and three variants:
104
 
105
- * Code Llama: base models designed for general code synthesis and understanding
106
- * Code Llama - Python: designed specifically for Python
107
- * Code Llama - Instruct: for instruction following and safer deployment
108
 
109
- All variants are available in sizes of 7B, 13B and 34B parameters.
110
 
111
- **This repository contains the base model of 7B parameters.**
 
 
112
 
113
- **Input** Models input text only.
114
-
115
- **Output** Models generate text only.
116
-
117
- **Model Architecture** Code Llama is an auto-regressive language model that uses an optimized transformer architecture.
118
-
119
- **Model Dates** Code Llama and its variants have been trained between January 2023 and July 2023.
120
-
121
- **Status** This is a static model trained on an offline dataset. Future versions of Code Llama - Instruct will be released as we improve model safety with community feedback.
122
-
123
- **License** A custom commercial license is available at: [https://ai.meta.com/resources/models-and-libraries/llama-downloads/](https://ai.meta.com/resources/models-and-libraries/llama-downloads/)
124
-
125
- **Research Paper** More information can be found in the paper "[Code Llama: Open Foundation Models for Code](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/)" or it's [arXiv page](https://arxiv.org/abs/2308.12950).
126
-
127
- ## Intended Use
128
- **Intended Use Cases** Code Llama and its variants is intended for commercial and research use in English and relevant programming languages. The base model Code Llama can be adapted for a variety of code synthesis and understanding tasks, Code Llama - Python is designed specifically to handle the Python programming language, and Code Llama - Instruct is intended to be safer to use for code assistant and generation applications.
129
-
130
- **Out-of-Scope Uses** Use in any manner that violates applicable laws or regulations (including trade compliance laws). Use in languages other than English. Use in any other way that is prohibited by the Acceptable Use Policy and Licensing Agreement for Code Llama and its variants.
131
-
132
- ## Hardware and Software
133
- **Training Factors** We used custom training libraries. The training and fine-tuning of the released models have been performed Meta’s Research Super Cluster.
134
-
135
- **Carbon Footprint** In aggregate, training all 9 Code Llama models required 400K GPU hours of computation on hardware of type A100-80GB (TDP of 350-400W). Estimated total emissions were 65.3 tCO2eq, 100% of which were offset by Meta’s sustainability program.
136
-
137
- ## Training Data
138
-
139
- All experiments reported here and the released models have been trained and fine-tuned using the same data as Llama 2 with different weights (see Section 2 and Table 1 in the [research paper](https://ai.meta.com/research/publications/code-llama-open-foundation-models-for-code/) for details).
140
-
141
- ## Evaluation Results
142
-
143
- See evaluations for the main models and detailed ablations in Section 3 and safety evaluations in Section 4 of the research paper.
144
-
145
-
146
- ## Ethical Considerations and Limitations
147
-
148
- Code Llama and its variants are a new technology that carries risks with use. Testing conducted to date has been in English, and has not covered, nor could it cover all scenarios. For these reasons, as with all LLMs, Code Llama’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate or objectionable responses to user prompts. Therefore, before deploying any applications of Code Llama, developers should perform safety testing and tuning tailored to their specific applications of the model.
149
-
150
- Please see the Responsible Use Guide available available at [https://ai.meta.com/llama/responsible-use-guide](https://ai.meta.com/llama/responsible-use-guide).
 
94
  for seq in sequences:
95
  print(f"Result: {seq['generated_text']}")
96
  ```
97
+ # Training
98
 
99
+ ## Model
 
100
 
 
101
 
102
+ ## Hardware
103
 
104
+ - **GPUs:** 8 Tesla A800
105
+ - **Training time:** 4 hours
 
106
 
107
+ ## Software
108
 
109
+ - **Orchestration:** [Deepspeed](https://github.com/OpenCSGs)
110
+ - **Neural networks:** [PyTorch](https://github.com/pytorch/pytorch)
111
+ - **BP16 if applicable:** [apex](https://github.com/NVIDIA/apex)
112
 
113
+ # License