File size: 883 Bytes
713909c d89892b 713909c ae63acb 713909c 8528a81 713909c 8528a81 713909c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
---
license: apache-2.0
---
# Model Card for Jennny/flan-t5-base-summarization-exp
This repository contains the LoRA of `flan-t5-base` that has been fine-tuned on [`knkarthick/dialogsum`](https://huggingface.co/datasets/knkarthick/dialogsum) dataset.
## Usage
Use this adapter with `peft` library
```python
# pip install peft transformers
import torch
from peft import PeftModel
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
base_model_id = "google/flan-t5-base"
peft_model_id = "Jennny/flan-t5-base-summarization-exp"
# Load tokenizer and models
tokenizer = AutoTokenizer.from_pretrained(base_model_id)
base_model = AutoModelForSeq2SeqLM.from_pretrained(
base_model_id, torch_dtype=torch.bfloat16
).to(device)
model = PeftModel.from_pretrained(
base_model_id,
peft_model_id,
torch_dtype=torch.bfloat16,
is_trainable=False,
).to(device)
```
|