Tiny Apertus 1.5 processor

A small processor-only checkpoint for testing the Apertus 1.5 processor implementation in Transformers (Apertus1p5Processor). It contains no model weights and cannot be used for inference. For the models, use swiss-ai/Apertus-v1.5-8B or swiss-ai/Apertus-v1.5-70B, which share the same processor.

The processor tests in tests/models/apertus1p5/test_processing_apertus1p5.py load it through tiny_model_id, so they run the real image processor, feature extractor and chat template with a tokenizer small enough for fast CI.

Contents

  • processor_config.json (image processor and WavTokenizer feature extractor, including the -3 dBFS peak normalization) and chat_template.jinja are identical to the full checkpoints.
  • config.json and generation_config.json are copied unchanged from the 8B checkpoint for reference. Their token offsets refer to the full vocabulary, not to this tokenizer.
  • tokenizer.json keeps the normalizer, pre-tokenizer, decoder and post-processor of the full tokenizer, with a trimmed vocabulary. The token layout mirrors the full tokenizer: special tokens, then the BPE vocabulary, then the image and audio structure tokens, image codes and audio codes as added tokens. Token ids differ from the full checkpoints, and text splits into more, shorter tokens ("Hello world!" is 9 tokens instead of 3).
  • tokenizer_config.json keeps the standard keys only. The swiss-ai pipeline keys of the full checkpoints (omnimodal_config, sft_*, ...) hold ids of the full vocabulary and are left out.

Built from the processor files of swiss-ai/Apertus-v1.5-8B at revision 3b9f74b85572c52584f53c8bc56639d4516fcc12.

Comparison with the full checkpoints

Apertus-v1.5-8B / 70B This checkpoint
Model weights 8B / 70B parameters None
tokenizer.json size 44 MB 53 KB
Tokens in total 266,440 656
BPE vocabulary 131,072 (ids 0 to 131,071) 520 (ids 0 to 519)
Special and added text tokens 1,190 20, those used by the tokenizer config, the chat template and the normalizer
Image and audio structure tokens 8, added tokens only (ids 131,073 to 131,085) 8, added tokens only (ids 520 to 527)
Image codes (<|visual token N|>) 131,072 (ids 131,272 to 262,343) 64 (ids 528 to 591)
Audio codes (<|audio token N|>) 4,096 (ids 262,344 to 266,439) 64 (ids 592 to 655)
Image processor, feature extractor, chat template Identical
Downloads last month
145
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support