Instructions to use google-cloud-partnership/gemma-2-2b-it-function_calling with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use google-cloud-partnership/gemma-2-2b-it-function_calling with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-2-2b-it") model = PeftModel.from_pretrained(base_model, "google-cloud-partnership/gemma-2-2b-it-function_calling") - Notebooks
- Google Colab
- Kaggle
Upload tokenizer
Browse files- special_tokens_map.json +1 -7
special_tokens_map.json
CHANGED
|
@@ -14,13 +14,7 @@
|
|
| 14 |
"rstrip": false,
|
| 15 |
"single_word": false
|
| 16 |
},
|
| 17 |
-
"eos_token":
|
| 18 |
-
"content": "<eos>",
|
| 19 |
-
"lstrip": false,
|
| 20 |
-
"normalized": false,
|
| 21 |
-
"rstrip": false,
|
| 22 |
-
"single_word": false
|
| 23 |
-
},
|
| 24 |
"pad_token": {
|
| 25 |
"content": "<pad>",
|
| 26 |
"lstrip": false,
|
|
|
|
| 14 |
"rstrip": false,
|
| 15 |
"single_word": false
|
| 16 |
},
|
| 17 |
+
"eos_token": "<eos>",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
"pad_token": {
|
| 19 |
"content": "<pad>",
|
| 20 |
"lstrip": false,
|