Instructions to use katuni4ka/tiny-random-internlm2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use katuni4ka/tiny-random-internlm2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="katuni4ka/tiny-random-internlm2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("katuni4ka/tiny-random-internlm2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from katuni4ka/tiny-random-internlm2: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/katuni4ka/tiny-random-internlm2/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://katuni4ka/tiny-random-internlm2/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/katuni4ka/tiny-random-internlm2/resolve/main/tokenizer_config.json
509 Bytes
| { | |
| "add_bos_token": true, | |
| "add_eos_token": false, | |
| "auto_map": { | |
| "AutoTokenizer": [ | |
| "tokenization_internlm2.InternLM2Tokenizer", | |
| "tokenization_internlm2_fast.InternLM2TokenizerFast" | |
| ] | |
| }, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": false, | |
| "decode_with_prefix_space": false, | |
| "eos_token": "</s>", | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "</s>", | |
| "sp_model_kwargs": null, | |
| "tokenizer_class": "InternLM2Tokenizer", | |
| "unk_token": "<unk>" | |
| } | |