Instructions to use sectionme/granite-clm-g2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sectionme/granite-clm-g2 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sectionme/granite-clm-g2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from sectionme/granite-clm-g2: direct link, hf CLI and curl.
- Browser
- Download file 608 Bytes
-
https://huggingface.co/sectionme/granite-clm-g2/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://sectionme/granite-clm-g2/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/sectionme/granite-clm-g2/resolve/main/tokenizer_config.json
608 Bytes
| { | |
| "backend": "tokenizers", | |
| "bos_token": "<|startoftext|>", | |
| "clean_up_tokenization_spaces": false, | |
| "cls_token": "<|startoftext|>", | |
| "eos_token": "<|return|>", | |
| "is_local": false, | |
| "mask_token": "[MASK]", | |
| "max_length": 32768, | |
| "model_input_names": [ | |
| "input_ids", | |
| "attention_mask" | |
| ], | |
| "model_max_length": 32768, | |
| "pad_to_multiple_of": null, | |
| "pad_token": "<|endoftext|>", | |
| "pad_token_type_id": 0, | |
| "padding_side": "right", | |
| "sep_token": "<|return|>", | |
| "stride": 0, | |
| "tokenizer_class": "TokenizersBackend", | |
| "truncation_side": "right", | |
| "truncation_strategy": "longest_first" | |
| } | |