Instructions to use Zacktree/code-bench-CodeGemma-7B-cgv1-ds with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Zacktree/code-bench-CodeGemma-7B-cgv1-ds with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/codegemma-7b") model = PeftModel.from_pretrained(base_model, "Zacktree/code-bench-CodeGemma-7B-cgv1-ds") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from Zacktree/code-bench-CodeGemma-7B-cgv1-ds: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/Zacktree/code-bench-CodeGemma-7B-cgv1-ds/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://Zacktree/code-bench-CodeGemma-7B-cgv1-ds/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/Zacktree/code-bench-CodeGemma-7B-cgv1-ds/resolve/main/special_tokens_map.json
557 Bytes
| { | |
| "additional_special_tokens": [ | |
| { | |
| "content": "<|im_start|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| ], | |
| "bos_token": "<|im_start|>", | |
| "eos_token": "<|im_end|>", | |
| "pad_token": "<|im_end|>", | |
| "unk_token": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |