Instructions to use Diaa-Essam/arabert-v2-ner-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Diaa-Essam/arabert-v2-ner-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForTokenClassification base_model = AutoModelForTokenClassification.from_pretrained("aubmindlab/bert-base-arabertv2") model = PeftModel.from_pretrained(base_model, "Diaa-Essam/arabert-v2-ner-lora") - Transformers
How to use Diaa-Essam/arabert-v2-ner-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Diaa-Essam/arabert-v2-ner-lora")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Diaa-Essam/arabert-v2-ner-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!