Instructions to use azherali/CodeGenDetect-Unixcoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use azherali/CodeGenDetect-Unixcoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="azherali/CodeGenDetect-Unixcoder")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("azherali/CodeGenDetect-Unixcoder") model = AutoModelForSequenceClassification.from_pretrained("azherali/CodeGenDetect-Unixcoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from azherali/CodeGenDetect-Unixcoder: direct link, hf CLI and curl.
- Browser
- Download file 2.14 MB
-
https://huggingface.co/azherali/CodeGenDetect-Unixcoder/resolve/main/tokenizer.json
- Command line
-
hf download hf://azherali/CodeGenDetect-Unixcoder/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/azherali/CodeGenDetect-Unixcoder/resolve/main/tokenizer.json
2.14 MB
File too large to display, you can check the raw version instead.