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

Akashpaul123
/
modernbert-crisis-detection

Text Classification
Transformers
Safetensors
PyTorch
English
modernbert
mental-health
crisis-detection
healthcare
nlp
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use Akashpaul123/modernbert-crisis-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use Akashpaul123/modernbert-crisis-detection with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="Akashpaul123/modernbert-crisis-detection")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("Akashpaul123/modernbert-crisis-detection")
    model = AutoModelForSequenceClassification.from_pretrained("Akashpaul123/modernbert-crisis-detection", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
modernbert-crisis-detection
303 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 3 commits
Akashpaul123's picture
Akashpaul123
update readmd
d633b92 verified 12 months ago
  • .gitattributes
    1.52 kB
    initial commit 12 months ago
  • README.md
    4.21 kB
    update readmd 12 months ago
  • config.json
    1.28 kB
    Upload fine-tuned ModernBERT crisis detection model 12 months ago
  • model.safetensors
    299 MB
    xet
    Upload fine-tuned ModernBERT crisis detection model 12 months ago
  • model_info.json
    645 Bytes
    Upload fine-tuned ModernBERT crisis detection model 12 months ago
  • performance_metrics.json
    6.91 kB
    Upload fine-tuned ModernBERT crisis detection model 12 months ago
  • special_tokens_map.json
    694 Bytes
    Upload fine-tuned ModernBERT crisis detection model 12 months ago
  • tokenizer.json
    3.58 MB
    Upload fine-tuned ModernBERT crisis detection model 12 months ago
  • tokenizer_config.json
    20.8 kB
    Upload fine-tuned ModernBERT crisis detection model 12 months ago
  • training_args.bin

    Detected Pickle imports (10)

    • "torch.device",
    • "transformers.trainer_utils.HubStrategy",
    • "transformers.training_args.TrainingArguments",
    • "transformers.trainer_utils.IntervalStrategy",
    • "transformers.trainer_utils.SchedulerType",
    • "accelerate.state.PartialState",
    • "accelerate.utils.dataclasses.DistributedType",
    • "transformers.trainer_pt_utils.AcceleratorConfig",
    • "transformers.trainer_utils.SaveStrategy",
    • "transformers.training_args.OptimizerNames"

    How to fix it?

    5.71 kB
    xet
    Upload fine-tuned ModernBERT crisis detection model 12 months ago