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

BeketML
/
suicide-detection-text

Text Classification
Transformers
Safetensors
English
Russian
xlm-roberta
suicide
Model card Files Files and versions
xet
Community

Instructions to use BeketML/suicide-detection-text with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use BeketML/suicide-detection-text with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="BeketML/suicide-detection-text")
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("BeketML/suicide-detection-text")
    model = AutoModelForSequenceClassification.from_pretrained("BeketML/suicide-detection-text", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
suicide-detection-text
11.1 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
BeketML's picture
BeketML
Delete test.py
a543b66 verified 10 months ago
  • checkpoint-7000
    Upload folder using huggingface_hub 10 months ago
  • checkpoint-8000
    Upload folder using huggingface_hub 10 months ago
  • checkpoint-8500
    Upload folder using huggingface_hub 10 months ago
  • .gitattributes
    1.52 kB
    initial commit 10 months ago
  • README.md
    229 Bytes
    Update README.md 10 months ago
  • config.json
    725 Bytes
    Upload folder using huggingface_hub 10 months ago
  • model.safetensors
    1.11 GB
    xet
    Upload folder using huggingface_hub 10 months ago
  • sentencepiece.bpe.model
    5.07 MB
    xet
    Upload folder using huggingface_hub 10 months ago
  • special_tokens_map.json
    280 Bytes
    Upload folder using huggingface_hub 10 months ago
  • tokenizer_config.json
    1.2 kB
    Upload folder using huggingface_hub 10 months ago
  • training_args.bin

    Detected Pickle imports (10)

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

    How to fix it?

    5.78 kB
    xet
    Upload folder using huggingface_hub 10 months ago