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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

ychafiqui
/
moroccan_law_classif_marbert2

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

Instructions to use ychafiqui/moroccan_law_classif_marbert2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use ychafiqui/moroccan_law_classif_marbert2 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="ychafiqui/moroccan_law_classif_marbert2")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("ychafiqui/moroccan_law_classif_marbert2")
    model = AutoModelForSequenceClassification.from_pretrained("ychafiqui/moroccan_law_classif_marbert2", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
moroccan_law_classif_marbert2
655 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
ychafiqui's picture
ychafiqui
Upload tokenizer
3bac35b verified 7 months ago
  • .gitattributes
    1.52 kB
    initial commit 7 months ago
  • README.md
    5.17 kB
    Upload BertForSequenceClassification 7 months ago
  • config.json
    3.91 kB
    Upload BertForSequenceClassification 7 months ago
  • model.safetensors
    651 MB
    xet
    Upload BertForSequenceClassification 7 months ago
  • special_tokens_map.json
    125 Bytes
    Upload tokenizer 7 months ago
  • tokenizer.json
    2.69 MB
    Upload tokenizer 7 months ago
  • tokenizer_config.json
    1.29 kB
    Upload tokenizer 7 months ago
  • vocab.txt
    1.1 MB
    Upload tokenizer 7 months ago