Instructions to use mrm8488/codebert-base-finetuned-detect-insecure-code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mrm8488/codebert-base-finetuned-detect-insecure-code with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mrm8488/codebert-base-finetuned-detect-insecure-code")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mrm8488/codebert-base-finetuned-detect-insecure-code") model = AutoModelForSequenceClassification.from_pretrained("mrm8488/codebert-base-finetuned-detect-insecure-code", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
upload flax model
78b753c -
allow flax
6a21ec8
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/mrm8488/codebert-base-finetuned-detect-insecure-code/README.md3492bd8
-
Update vocab.json
54b4b5e -
Update pytorch_model.bin
c471fa0 -
Update merges.txt
81f7c5d -
Update config.json
be701e0 -
Update special_tokens_map.json
ba24093 -
Update tokenizer_config.json
99639bd
-
Update vocab.json
7e3bf41 -
Update config.json
3161bbf -
Update tokenizer_config.json
26bdf3d -
Update merges.txt
f317af9 -
Update special_tokens_map.json
a85e89b -
initial commit
75687c7