Model Card for summykai/Qwen3-14B-chem-dyn-tokenizer
A Qwen3-14B model augmented with the InternS1 dynamic tokenizer for chemistry/biomolecular text.
No full fine-tune was performed; we adapted tokenization and warmed the new token rows so the model is ready for downstream SFT/RL on chemistry tasks.
InternS1 tokenizer compression
Figure: Tokenization efficiency from the InternS1 technical report — SMILES/IUPAC compression ~2.64× vs ~1.44–1.51× for common LLM tokenizers.
Model Details
Developed by: Summykai
License: Apache-2.0
Finetuned from: Qwen/Qwen3-14B
Model type: QwenForCausalLM
Languages: Multilingual (inherits from Qwen3)
What changed vs. base Qwen3-14B?
Dynamic tokenizer integration (InternS1)
We ship tokenization_interns1.py and three SentencePiece models:
tokenizer_SMILES.model (SMILES/SELFIES)
tokenizer_IUPAC.model (IUPAC names)
tokenizer_FASTA.model (protein sequences)
The tokenizer auto-detects long chemistry/biomolecular spans and switches to the SP model, or you can wrap with explicit tags:
Initialization strategy (better than random):
New rows were not left random. We projected domain embeddings into Qwen3’s space (ridge-regularized linear map) to give chemistry tokens meaningful initial locations. After merging, test_merge.py verified max |Δ| emb/head = 0.0.
How to Use
Install: RDKit is strongly recommended for high-quality SMILES auto-detection.
bash
1pip install rdkit-pypi sentencepiece transformers
2# or via conda:3# conda install -c conda-forge rdkit