Text Generation
PEFT
Safetensors
English
lora
apertus
optical-networks
intent-based-networking
hack-apertus
conversational
Instructions to use blackfish021/apertus-lightpath-lora-v2-e2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use blackfish021/apertus-lightpath-lora-v2-e2 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("andreasmartin/apertus-v1.5-8b-text") model = PeftModel.from_pretrained(base_model, "blackfish021/apertus-lightpath-lora-v2-e2") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from blackfish021/apertus-lightpath-lora-v2-e2: direct link, hf CLI and curl.
- Browser
- Download file 2.12 kB
-
https://huggingface.co/blackfish021/apertus-lightpath-lora-v2-e2/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://blackfish021/apertus-lightpath-lora-v2-e2/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/blackfish021/apertus-lightpath-lora-v2-e2/resolve/main/tokenizer_config.json
2.12 kB
| { | |
| "add_prefix_space": false, | |
| "added_tokens_count": 135368, | |
| "audio_begin_token": [ | |
| 131080 | |
| ], | |
| "audio_end_token": [ | |
| 131081 | |
| ], | |
| "audio_token": "<|audio|>", | |
| "audio_tokenizer": { | |
| "codebook_size": 4096, | |
| "type": "wavtokenizer" | |
| }, | |
| "backend": "tokenizers", | |
| "base_vocab_size": 131072, | |
| "boa_token": "<|audio_start|>", | |
| "boi_token": "<|img_start|>", | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": false, | |
| "eoa_token": "<|audio_end|>", | |
| "eoi_token": "<|img_end|>", | |
| "eol_token": "<|img_end_of_row|>", | |
| "eos_token": "<|assistant_end|>", | |
| "image_token": "<|image|>", | |
| "image_wrapper_token": "<|img_token_start|>", | |
| "is_local": false, | |
| "local_files_only": false, | |
| "model_input_names": [ | |
| "input_ids", | |
| "attention_mask" | |
| ], | |
| "model_max_length": 1000000000000000019884624838656, | |
| "model_specific_special_tokens": { | |
| "audio_token": "<|audio|>", | |
| "boa_token": "<|audio_start|>", | |
| "boi_token": "<|img_start|>", | |
| "eoa_token": "<|audio_end|>", | |
| "eoi_token": "<|img_end|>", | |
| "eol_token": "<|img_end_of_row|>", | |
| "image_token": "<|image|>", | |
| "image_wrapper_token": "<|img_token_start|>" | |
| }, | |
| "omnimodal_config": { | |
| "modalities": [ | |
| { | |
| "end_token": 131074, | |
| "name": "vision", | |
| "offset": 131272, | |
| "start_token": 131073, | |
| "vocab_size": 131072 | |
| }, | |
| { | |
| "end_token": 131081, | |
| "name": "audio", | |
| "offset": 262344, | |
| "start_token": 131080, | |
| "vocab_size": 4096 | |
| } | |
| ], | |
| "omni_special_token_offset": 131072 | |
| }, | |
| "pad_token": "<pad>", | |
| "padding_side": "left", | |
| "processor_class": "Apertus1p5Processor", | |
| "sft_assistant_begin_sequence": [ | |
| 67 | |
| ], | |
| "sft_eot_token": [ | |
| 68 | |
| ], | |
| "sft_user_begin_sequence": [ | |
| 65 | |
| ], | |
| "tokenizer_class": "TokenizersBackend", | |
| "unk_token": "<unk>", | |
| "vision_begin_token": [ | |
| 131073 | |
| ], | |
| "vision_end_token": [ | |
| 131074 | |
| ], | |
| "vision_tokenizer": { | |
| "codebook_size": 131072, | |
| "path": "/capstor/store/cscs/swissai/infra01/MLLM/tokenizer/Emu3.5-VisionTokenizer", | |
| "type": "Emu3.5" | |
| }, | |
| "vocab_size": 131072 | |
| } | |