Instructions to use GuhanTofu/gemma-7b-sft-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use GuhanTofu/gemma-7b-sft-4bit with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/gemma-7b-bnb-4bit") model = PeftModel.from_pretrained(base_model, "GuhanTofu/gemma-7b-sft-4bit") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from GuhanTofu/gemma-7b-sft-4bit: direct link, hf CLI and curl.
- Browser
- Download file 1.95 kB
-
https://huggingface.co/GuhanTofu/gemma-7b-sft-4bit/resolve/f0a6ff24832861850b766b34c2baffd042fa2d1e/tokenizer_config.json
- Command line
-
hf download hf://GuhanTofu/gemma-7b-sft-4bit@f0a6ff24832861850b766b34c2baffd042fa2d1e/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/GuhanTofu/gemma-7b-sft-4bit/resolve/f0a6ff24832861850b766b34c2baffd042fa2d1e/tokenizer_config.json
1.95 kB
| { | |
| "add_bos_token": false, | |
| "add_eos_token": false, | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<eos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "<bos>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "106": { | |
| "content": "<|im_start|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "107": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>" | |
| ], | |
| "bos_token": "<bos>", | |
| "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}", | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": "<eos>", | |
| "legacy": null, | |
| "model_max_length": 2048, | |
| "pad_token": "<pad>", | |
| "sp_model_kwargs": {}, | |
| "spaces_between_special_tokens": false, | |
| "tokenizer_class": "GemmaTokenizer", | |
| "unk_token": "<unk>", | |
| "use_default_system_prompt": false | |
| } | |