Instructions to use cfan233/sst2-roberta-sft-lora-layer2-smoke-final with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cfan233/sst2-roberta-sft-lora-layer2-smoke-final with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("roberta-base") model = PeftModel.from_pretrained(base_model, "cfan233/sst2-roberta-sft-lora-layer2-smoke-final") - Transformers
How to use cfan233/sst2-roberta-sft-lora-layer2-smoke-final with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("cfan233/sst2-roberta-sft-lora-layer2-smoke-final", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!