Instructions to use STUTI12345/scibert_epd_5tag_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use STUTI12345/scibert_epd_5tag_lora with PEFT:
from peft import PeftModel from transformers import AutoModelForTokenClassification base_model = AutoModelForTokenClassification.from_pretrained("allenai/scibert_scivocab_uncased") model = PeftModel.from_pretrained(base_model, "STUTI12345/scibert_epd_5tag_lora") - Transformers
How to use STUTI12345/scibert_epd_5tag_lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="STUTI12345/scibert_epd_5tag_lora")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("STUTI12345/scibert_epd_5tag_lora") model = AutoModelForTokenClassification.from_pretrained("STUTI12345/scibert_epd_5tag_lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!