Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

mahdin70
/
unixcoder-code-vulnerability-detector

Text Classification
Transformers
Safetensors
English
roberta
C/C++
Code
Vulnerability
Detection
Model card Files Files and versions
xet
Community

Instructions to use mahdin70/unixcoder-code-vulnerability-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use mahdin70/unixcoder-code-vulnerability-detector with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("text-classification", model="mahdin70/unixcoder-code-vulnerability-detector")
    # Load model directly
    from transformers import AutoTokenizer, AutoModelForSequenceClassification
    
    tokenizer = AutoTokenizer.from_pretrained("mahdin70/unixcoder-code-vulnerability-detector")
    model = AutoModelForSequenceClassification.from_pretrained("mahdin70/unixcoder-code-vulnerability-detector")
  • Notebooks
  • Google Colab
  • Kaggle
unixcoder-code-vulnerability-detector
504 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 13 commits
mahdin70's picture
mahdin70
Update README.md
39ca55e verified about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    3.92 kB
    Update README.md about 1 year ago
  • config.json
    807 Bytes
    Upload RobertaForSequenceClassification about 1 year ago
  • model.safetensors
    504 MB
    xet
    Upload RobertaForSequenceClassification about 1 year ago