Instructions to use CodeHima/finetunedPHP_starcoder2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use CodeHima/finetunedPHP_starcoder2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("bigcode/starcoder2-3b") model = PeftModel.from_pretrained(base_model, "CodeHima/finetunedPHP_starcoder2") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from CodeHima/finetunedPHP_starcoder2: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/CodeHima/finetunedPHP_starcoder2/resolve/d89da3d7f281ca80d091994e731259f308a34cff/special_tokens_map.json
- Command line
-
hf download hf://CodeHima/finetunedPHP_starcoder2@d89da3d7f281ca80d091994e731259f308a34cff/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/CodeHima/finetunedPHP_starcoder2/resolve/d89da3d7f281ca80d091994e731259f308a34cff/special_tokens_map.json
1.33 kB
| { | |
| "additional_special_tokens": [ | |
| "<|endoftext|>", | |
| "<fim_prefix>", | |
| "<fim_middle>", | |
| "<fim_suffix>", | |
| "<fim_pad>", | |
| "<repo_name>", | |
| "<file_sep>", | |
| "<issue_start>", | |
| "<issue_comment>", | |
| "<issue_closed>", | |
| "<jupyter_start>", | |
| "<jupyter_text>", | |
| "<jupyter_code>", | |
| "<jupyter_output>", | |
| "<jupyter_script>", | |
| "<empty_output>", | |
| "<code_to_intermediate>", | |
| "<intermediate_to_code>", | |
| "<pr>", | |
| "<pr_status>", | |
| "<pr_is_merged>", | |
| "<pr_base>", | |
| "<pr_file>", | |
| "<pr_base_code>", | |
| "<pr_diff>", | |
| "<pr_diff_hunk>", | |
| "<pr_comment>", | |
| "<pr_event_id>", | |
| "<pr_review>", | |
| "<pr_review_state>", | |
| "<pr_review_comment>", | |
| "<pr_in_reply_to_review_id>", | |
| "<pr_in_reply_to_comment_id>", | |
| "<pr_diff_hunk_comment_line>", | |
| "<NAME>", | |
| "<EMAIL>", | |
| "<KEY>", | |
| "<PASSWORD>" | |
| ], | |
| "bos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": "<|endoftext|>", | |
| "unk_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |