Instructions to use uclanlp/plbart-c-cpp-defect-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use uclanlp/plbart-c-cpp-defect-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="uclanlp/plbart-c-cpp-defect-detection")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("uclanlp/plbart-c-cpp-defect-detection") model = AutoModelForSequenceClassification.from_pretrained("uclanlp/plbart-c-cpp-defect-detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from uclanlp/plbart-c-cpp-defect-detection: direct link, hf CLI and curl.
- Browser
- Download file 26 Bytes
-
https://huggingface.co/uclanlp/plbart-c-cpp-defect-detection/resolve/d38fbf5d7ab6cf85259af2abdec32a71bd1ffedd/tokenizer_config.json
- Command line
-
hf download hf://uclanlp/plbart-c-cpp-defect-detection@d38fbf5d7ab6cf85259af2abdec32a71bd1ffedd/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/uclanlp/plbart-c-cpp-defect-detection/resolve/d38fbf5d7ab6cf85259af2abdec32a71bd1ffedd/tokenizer_config.json
26 Bytes
| {"model_max_length": 1024} |