Instructions to use NUSTM/laptop-t5-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NUSTM/laptop-t5-base with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("NUSTM/laptop-t5-base") model = AutoModelForSeq2SeqLM.from_pretrained("NUSTM/laptop-t5-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (107bd53a411f624c33f6c1eb188a84aca7dcf40a) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>798db5f
-
Update README.md
7eb95aa
-
Update README.md
54aad73 -
Update README.md
3b2aa31 -
Update README.md
5fb751d -
Update README.md
711f9ab -
Update README.md
# Laptop-T5-Base The Laptop-T5-Base model was introduced in [A Simple yet Effective Framework for Few-Shot Aspect-Based Sentiment Analysis (SIGIR'23)](https://doi.org/10.1145/3539618.3591940) by Zengzhi Wang, Qiming Xie, and Rui Xia. The details are available at [Github:FS-ABSA](https://github.com/nustm/fs-absa) and [SIGIR'23 paper](https://doi.org/10.1145/3539618.3591940). # Model Description To bridge the domain gap between general pre-training and the task of interest in a specific domain (i.e., `laptop` in this repo), we conducted *domain-adaptive pre-training*, i.e., continuing pre-training the language model (i.e., T5) on the unlabeled corpus of the domain of interest (i.e., `laptop`) with the *text-infilling objective* (corruption rate of 15% and average span length of 1). We collect relevant 100k unlabeled reviews from Yelp for the aptop domain, respectively. For pre-training, we employ the [Adafactor](https://arxiv.org/abs/1804.04235) optimizer with a batch size of 80 …b4bb4e2 -
upload model files
mind-yi5324bf5 -
initial commit
a6afbc6