Update README.md
Browse files
README.md
CHANGED
@@ -20,15 +20,11 @@ It achieves the following results on the evaluation set:
|
|
20 |
|
21 |
## Model description
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
## Intended uses & limitations
|
26 |
-
|
27 |
-
More information needed
|
28 |
|
29 |
## Training and evaluation data
|
30 |
|
31 |
-
|
32 |
|
33 |
## Training procedure
|
34 |
|
@@ -61,3 +57,14 @@ The following hyperparameters were used during training:
|
|
61 |
- Pytorch 2.1.2+cu118
|
62 |
- Datasets 2.16.1
|
63 |
- Tokenizers 0.15.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
## Model description
|
22 |
|
23 |
+
This model summarizes the diary.
|
|
|
|
|
|
|
|
|
24 |
|
25 |
## Training and evaluation data
|
26 |
|
27 |
+
This model was trained by the self-instruction process. All data used for fine-tuning this model were generated by chatGPT 3.5.
|
28 |
|
29 |
## Training procedure
|
30 |
|
|
|
57 |
- Pytorch 2.1.2+cu118
|
58 |
- Datasets 2.16.1
|
59 |
- Tokenizers 0.15.0
|
60 |
+
|
61 |
+
|
62 |
+
### How to Get Started with the Model
|
63 |
+
Use the code below to get started with the model. You can adjust hyperparameters to fit on your data.
|
64 |
+
'''
|
65 |
+
def diary_summary(text):
|
66 |
+
input_ids = tokenizer.encode(text, return_tensors = 'pt').to(device)
|
67 |
+
summary_text_ids = model.generate(input_ids = input_ids, bos_token_id = model.config.bos_token_id, eos_token_id = model.config.eos_token_id,
|
68 |
+
length_penalty = 2.0, max_length = 150, num_beams = 2)
|
69 |
+
return tokenizer.decode(summary_text_ids[0], skip_special_tokens = True)
|
70 |
+
'''
|