Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,69 @@
|
|
1 |
-
---
|
2 |
-
license: cc-by-nc-4.0
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-nc-4.0
|
3 |
+
datasets:
|
4 |
+
- nickrosh/Evol-Instruct-Code-80k-v1
|
5 |
+
- MBZUAI/LaMini-instruction
|
6 |
+
language:
|
7 |
+
- en
|
8 |
+
base_model:
|
9 |
+
- Bertug1911/BrtGPT-1-Pre
|
10 |
+
pipeline_tag: text-generation
|
11 |
+
tags:
|
12 |
+
- code
|
13 |
+
---
|
14 |
+
|
15 |
+
# BrtGPT-1-Pre-Code
|
16 |
+
|
17 |
+
## Model Summary
|
18 |
+
|
19 |
+
We're introducing "BratGPT-1-Pre-Code"! Our model was retrained using the "BrtGPT-1-Pre" model, which was already pre-trained, using code data.
|
20 |
+
|
21 |
+
Compared to the BrtGPT-1-Pre model, it can write much better code, even with typos.
|
22 |
+
|
23 |
+
No change was observed in general/daily chat and simple knowledge-based question-and-answer capabilities.
|
24 |
+
|
25 |
+
It may produce some harmful output.
|
26 |
+
|
27 |
+
## Difference Between Models
|
28 |
+
|
29 |
+
Examples:
|
30 |
+
|
31 |
+
| Prompt | BrtGPT-1-Pre | BrtGPT-1-Pre-Code |
|
32 |
+
| :------------: | :------------: | :------------: |
|
33 |
+
| "Write me a code that prints "Hello World". | "Here's a code that prints "Hello World" in a list of words:```for i in range(1, 2, 3, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5," |
|
34 |
+
| "Write me a code that generates random number."| Code: |
|
35 |
+
|
36 |
+
|
37 |
+
```
|
38 |
+
def random(1):
|
39 |
+
return random(1)
|
40 |
+
|
41 |
+
```
|
42 |
+
|
43 |
+
BrtGPT-1-Pre-Code's answers:
|
44 |
+
|
45 |
+
1- "Write me a code that prints "Hello World" Code:
|
46 |
+
|
47 |
+
```
|
48 |
+
```python
|
49 |
+
def print_hello_numbers(numbers):
|
50 |
+
if num < num:
|
51 |
+
return num
|
52 |
+
elif num % num % num % num % num % num % num % num % num % num % num % num % num % num % num % num % num
|
53 |
+
```
|
54 |
+
|
55 |
+
2- "Write me a code that generates random number. Code:
|
56 |
+
|
57 |
+
```
|
58 |
+
#Here is a code that generates random number in python 3:
|
59 |
+
|
60 |
+
```python
|
61 |
+
def generate_random_number(num):
|
62 |
+
# Create a new random number between 1 and 1
|
63 |
+
random_number = random.randint(num)
|
64 |
+
random_number = random.randint(num)
|
65 |
+
random_number = random.randint(num)
|
66 |
+
|
67 |
+
# Create a new
|
68 |
+
```
|
69 |
+
|