Update README.md
Browse files
README.md
CHANGED
@@ -8,4 +8,41 @@ tags:
|
|
8 |
- dolly
|
9 |
- flan-t5
|
10 |
- fine-tuned
|
11 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
- dolly
|
9 |
- flan-t5
|
10 |
- fine-tuned
|
11 |
+
---
|
12 |
+
|
13 |
+
## Model
|
14 |
+
|
15 |
+
Flan-T5-Large fine-tuned on databricks dolly 15k dataset for 10 epochs. Potentially useful as a baseline or for messing around with.
|
16 |
+
|
17 |
+
## Examples
|
18 |
+
|
19 |
+
Examples generating with
|
20 |
+
|
21 |
+
```python
|
22 |
+
model.generate(tokens, do_sample=True, top_p=.99, repetition_penalty=1.2, max_new_tokens=2048)
|
23 |
+
```
|
24 |
+
|
25 |
+
```
|
26 |
+
Input: Come up with an idea for a good startup
|
27 |
+
Flan-T5-Dolly: You can start your own private stock exchange company with a minimum capital and no partners. Your goal should be to sell you the right type of shares at the right price. Make sure you build an equity model where your investors are buying short-term, medium-term and long-term contracts.
|
28 |
+
|
29 |
+
Input: How do you create a good YouTube video?
|
30 |
+
Flan-T5-Dolly: Start by deciding what the purpose of the video should be. If it is for comedy, you've already figured out the direction of the movie, so make sure that your video is focused on that. Next – put it all together. Make notes and follow the directions for the storyboard. Also add a bit of humor so that you can fully enjoy your video. Once you have this sorted, put it all together.
|
31 |
+
|
32 |
+
Input: When were the middle ages?
|
33 |
+
Flan-T5-Dolly: The Middle Ages was from 5th to 11th century AD
|
34 |
+
|
35 |
+
Input: Compare python or julia as programming languages
|
36 |
+
Flan-T5-Dolly: Julia is a small, open-source languages for computer and web development. Python is a general-purpose programming language. Julia does not support classes in collections, as Python does. Julia has some specialized features such as: - Ability to convert integers into decimals - Ability to convert strings to syllables - Ability to read objects / strings - Ability to store data under the int and variable types - Ability to do binary search - Ability to set variables in functions - Ability to combine multiple functions - Ability to import memory management functions - Ability to convert integers from decimal types - Supports multithreading - Ability to generate dynamic graphs - Ability to use multiple compiled languages - Ability to create arrays and arrays from copy/paste
|
37 |
+
```
|
38 |
+
|
39 |
+
|
40 |
+
## Training
|
41 |
+
|
42 |
+
Trained with this code: https://github.com/dylan-slack/Exploring-Instruction-Tuning
|
43 |
+
|
44 |
+
With the following command
|
45 |
+
|
46 |
+
```python
|
47 |
+
python train.py -m "google/flan-t5-large" --train -b 2 --accum 8 --overwrite-cache
|
48 |
+
```
|