Update README.md
Browse files
README.md
CHANGED
|
@@ -16,7 +16,7 @@ metrics:
|
|
| 16 |
- accuracy
|
| 17 |
- rouge
|
| 18 |
---
|
| 19 |
-
|
| 20 |
|
| 21 |
#Information:
|
| 22 |
|
|
@@ -44,7 +44,7 @@ metrics:
|
|
| 44 |
Fuzzywizzy similarity: 0.75
|
| 45 |
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
```python
|
| 50 |
from peft import PeftModel, PeftConfig
|
|
@@ -58,7 +58,7 @@ metrics:
|
|
| 58 |
QG_model = PeftModel.from_pretrained(model, peft_model_id)
|
| 59 |
```
|
| 60 |
|
| 61 |
-
|
| 62 |
|
| 63 |
```python
|
| 64 |
def get_question(context, answer):
|
|
@@ -72,7 +72,7 @@ metrics:
|
|
| 72 |
return out
|
| 73 |
```
|
| 74 |
|
| 75 |
-
|
| 76 |
|
| 77 |
The following were used during training:
|
| 78 |
|
|
@@ -101,7 +101,7 @@ metrics:
|
|
| 101 |
|
| 102 |
lr_scheduler_type="linear"
|
| 103 |
|
| 104 |
-
|
| 105 |
|
| 106 |
| Epoch | Training Loss | Validation Loss |
|
| 107 |
|-------|---------------|-----------------|
|
|
|
|
| 16 |
- accuracy
|
| 17 |
- rouge
|
| 18 |
---
|
| 19 |
+
# Model Card
|
| 20 |
|
| 21 |
#Information:
|
| 22 |
|
|
|
|
| 44 |
Fuzzywizzy similarity: 0.75
|
| 45 |
|
| 46 |
|
| 47 |
+
# Loading the model
|
| 48 |
|
| 49 |
```python
|
| 50 |
from peft import PeftModel, PeftConfig
|
|
|
|
| 58 |
QG_model = PeftModel.from_pretrained(model, peft_model_id)
|
| 59 |
```
|
| 60 |
|
| 61 |
+
# At inference time
|
| 62 |
|
| 63 |
```python
|
| 64 |
def get_question(context, answer):
|
|
|
|
| 72 |
return out
|
| 73 |
```
|
| 74 |
|
| 75 |
+
# Training parameters and hyperparameters
|
| 76 |
|
| 77 |
The following were used during training:
|
| 78 |
|
|
|
|
| 101 |
|
| 102 |
lr_scheduler_type="linear"
|
| 103 |
|
| 104 |
+
# Training Results
|
| 105 |
|
| 106 |
| Epoch | Training Loss | Validation Loss |
|
| 107 |
|-------|---------------|-----------------|
|