Instructions to use dzungpham/graphcodebert-code-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dzungpham/graphcodebert-code-classification with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("dzungpham/graphcodebert-code-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download codebert-base/final_model/special_tokens_map.json from dzungpham/graphcodebert-code-classification: direct link, hf CLI and curl.
- Browser
- Download file 958 Bytes
-
https://huggingface.co/dzungpham/graphcodebert-code-classification/resolve/34959f8150aa72974f031232b8d5f8b74b50e9fe/codebert-base/final_model/special_tokens_map.json
- Command line
-
hf download hf://dzungpham/graphcodebert-code-classification@34959f8150aa72974f031232b8d5f8b74b50e9fe/codebert-base/final_model/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/dzungpham/graphcodebert-code-classification/resolve/34959f8150aa72974f031232b8d5f8b74b50e9fe/codebert-base/final_model/special_tokens_map.json
958 Bytes
| { | |
| "bos_token": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "cls_token": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "mask_token": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "sep_token": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |