Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

tunis-ai
/
TunBERT

Text Classification
Transformers
PyTorch
Safetensors
Arabic
bert
custom_code
text-embeddings-inference
Model card Files Files and versions
xet
Community
7

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)
    # 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)
  • Notebooks
  • Google Colab
  • Kaggle
TunBERT
882 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 58 commits
not-lain's picture
not-lain
Update the readme file to take into consideration the latest changes
91c6ed8 verified 8 months ago
  • .gitattributes
    1.52 kB
    initial commit over 2 years ago
  • README.md
    1.21 kB
    Update the readme file to take into consideration the latest changes 8 months ago
  • config.json
    1.13 kB
    commit files to HF hub over 2 years ago
  • config_tunbert.py
    1.94 kB
    Rename config_TunBERT.py to config_tunbert.py over 2 years ago
  • model.safetensors
    440 MB
    xet
    Upload TunBERT over 2 years ago
  • modeling_tunbert.py
    2.22 kB
    fix typo 8 months ago
  • pytorch_model.bin

    Detected Pickle imports (3)

    • "torch.FloatStorage",
    • "torch._utils._rebuild_tensor_v2",
    • "collections.OrderedDict"

    What is a pickle import?

    440 MB
    xet
    Upload BertForSequenceClassification over 2 years ago
  • special_tokens_map.json
    695 Bytes
    commit files to HF hub over 2 years ago
  • tokenizer.json
    711 kB
    added tokenizer over 2 years ago
  • tokenizer_config.json
    1.19 kB
    Upload tokenizer over 2 years ago
  • tunBertClassificationPipeline.py
    1.43 kB
    commit files to HF hub over 2 years ago
  • vocab.txt
    232 kB
    added tokenizer over 2 years ago