Instructions to use Swarnadeep-28/bengali-code-mix-sentiment-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Swarnadeep-28/bengali-code-mix-sentiment-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("xlm-roberta-base") model = PeftModel.from_pretrained(base_model, "Swarnadeep-28/bengali-code-mix-sentiment-lora") - Transformers
How to use Swarnadeep-28/bengali-code-mix-sentiment-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Swarnadeep-28/bengali-code-mix-sentiment-lora")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Swarnadeep-28/bengali-code-mix-sentiment-lora", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!