emonty777 commited on
Commit
51ebe21
1 Parent(s): c079f78

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -3
README.md CHANGED
@@ -2,11 +2,18 @@
2
  license: apache-2.0
3
  tags:
4
  - generated_from_trainer
 
 
 
 
 
5
  datasets:
6
  - cnn_dailymail
7
  model-index:
8
  - name: QLoRA-Flan-T5-Small
9
  results: []
 
 
10
  ---
11
 
12
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -32,7 +39,7 @@ More information needed
32
 
33
  1. Loading the model
34
 
35
- '''python
36
  import torch
37
  from peft import PeftModel, PeftConfig
38
  from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
@@ -53,7 +60,7 @@ tokenizer = AutoTokenizer.from_pretrained(config.base_model_name_or_path)
53
  # Load the Lora model
54
  model = PeftModel.from_pretrained(model, peft_model_id, device_map={"":0})
55
  model.eval()
56
- '''
57
 
58
  ## Training procedure
59
 
@@ -83,4 +90,4 @@ Evaluated on full CNN Dailymail test set
83
  - Transformers 4.27.1
84
  - Pytorch 2.0.1+cu118
85
  - Datasets 2.9.0
86
- - Tokenizers 0.13.3
 
2
  license: apache-2.0
3
  tags:
4
  - generated_from_trainer
5
+ - t5
6
+ - flan
7
+ - small
8
+ - peft
9
+ - QLoRA
10
  datasets:
11
  - cnn_dailymail
12
  model-index:
13
  - name: QLoRA-Flan-T5-Small
14
  results: []
15
+ metrics:
16
+ - rouge
17
  ---
18
 
19
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
39
 
40
  1. Loading the model
41
 
42
+ ```python
43
  import torch
44
  from peft import PeftModel, PeftConfig
45
  from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
 
60
  # Load the Lora model
61
  model = PeftModel.from_pretrained(model, peft_model_id, device_map={"":0})
62
  model.eval()
63
+ ```
64
 
65
  ## Training procedure
66
 
 
90
  - Transformers 4.27.1
91
  - Pytorch 2.0.1+cu118
92
  - Datasets 2.9.0
93
+ - Tokenizers 0.13.3