Instructions to use azherali/CodeDetect-BERT-T2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use azherali/CodeDetect-BERT-T2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="azherali/CodeDetect-BERT-T2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("azherali/CodeDetect-BERT-T2") model = AutoModelForSequenceClassification.from_pretrained("azherali/CodeDetect-BERT-T2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download model.safetensors from azherali/CodeDetect-BERT-T2: direct link, hf CLI and curl.
- Browser
- Download file 438 MB
-
https://huggingface.co/azherali/CodeDetect-BERT-T2/resolve/main/model.safetensors
- Command line
-
hf download hf://azherali/CodeDetect-BERT-T2/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/azherali/CodeDetect-BERT-T2/resolve/main/model.safetensors
438 MB
- Xet hash:
- 36c5a1837dc73c6c8971671c9b3023dfa7c9a44c71d34f49f0908a06e2077872
- Size of remote file:
- 438 MB
- SHA256:
- f8f3ab0ce5117f5677b7b950d1086e7690b06d519576ec1a5f3b550c328d4e3c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.