Instructions to use jweston/gemma-2-2B-it-thinking-function_calling-V0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jweston/gemma-2-2B-it-thinking-function_calling-V0 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jweston/gemma-2-2B-it-thinking-function_calling-V0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download chat_template.jinja from jweston/gemma-2-2B-it-thinking-function_calling-V0: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/jweston/gemma-2-2B-it-thinking-function_calling-V0/resolve/main/chat_template.jinja
- Command line
-
hf download hf://jweston/gemma-2-2B-it-thinking-function_calling-V0/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/jweston/gemma-2-2B-it-thinking-function_calling-V0/resolve/main/chat_template.jinja
324 Bytes
| {{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{{ '<start_of_turn>' + message['role'] + ' | |
| ' + message['content'] | trim + '<end_of_turn><eos> | |
| ' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model | |
| '}}{% endif %} |