Text Classification
Transformers
PyTorch
Safetensors
Arabic
bert
custom_code
text-embeddings-inference
Instructions to use tunis-ai/TunBERT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tunis-ai/TunBERT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tunis-ai/TunBERT", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tunis-ai/TunBERT", trust_remote_code=True) model = AutoModelForSequenceClassification.from_pretrained("tunis-ai/TunBERT", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
fix typo
Verified signaturefb3cc84 -
add process method
Verified signature6bf8f07 -
select [cls] token only
Verified signature822b8da -
Update modeling_tunbert.py
Verified signature1c4c2f3 -
Update modeling_tunbert.py
Verified signature9a22429 -
Update modeling_tunbert.py
Verified signature9edfd90 -
Update modeling_tunbert.py
Verified signatured0c15af
-
renamed file
86f425a -
added custom config
a09becc
-
Update modeling_tunbert.py
35d3945 -
Update modeling_tunbert.py
7e5912b -
Create modeling_tunbert.py
83dab7c