Qwen3-1.7B-Base-ReTok

Qwen3-1.7B-Base-ReTok is a tokenizer-replaced and continued-pretrained variant of Qwen/Qwen3-1.7B-Base. The original Qwen tokenizer was replaced with a custom Piece tokenizer, then the model was recovered with continued pretraining.

This is the final tie-preserving v18 checkpoint from the Summer/ReTok experiments: phase2_ckpt_v18_tie.

Hugging Face repo id: Ismantic/Qwen3-1.7B-Base-ReTok

Important Tokenizer Note

This repository contains the custom tokenizer assets:

  • piece.model
  • dict.txt
  • token_mapping.json
  • tokenizer_wrapper.py

The model architecture can be loaded by Transformers as Qwen3, but the tokenizer is not a standard Qwen tokenizer. For generation, encode prompts with the provided Piece tokenizer wrapper or the Summer/ReTok evaluation scripts.

Training Summary

  1. Replaced the original Qwen3-1.7B-Base tokenizer with an 81,903-token Piece tokenizer.
  2. Initialized new embeddings by mapping each new piece through the original Qwen tokenizer and averaging old embeddings.
  3. Phase 1: trained new embeddings on about 999M packed tokens while freezing the transformer.
  4. Phase 2: annealed on about 200M packed tokens with LoRA q/v adapters, Aurora, and tied embedding/head preservation.

See training_lineage.md for the full reproduction record.

Evaluation

WMT22 1000-sample translation:

Model zh-en BLEU zh-en COMET en-zh BLEU en-zh COMET
Qwen3-1.7B-Base 22.3408 0.8122 38.3380 0.8597
ReTok v18 Phase 1 20.2588 0.7821 35.1632 0.8276
ReTok v18 Phase 2 tie 20.4599 0.7933 36.0314 0.8444

WMT23 full-set translation:

Model zh-en BLEU zh-en COMET en-zh BLEU en-zh COMET
ReTok v18 Phase 1 19.1310 0.7767 38.8251 0.8198
ReTok v18 Phase 2 tie 19.6046 0.7834 40.9905 0.8377

General benchmark results:

Model LAMBADA PIQA ARC-C HellaSwag CEVAL GSM8K
ReTok v18 Phase 1 0.5674 0.7301 0.5137 0.6375 0.6263 0.0417
ReTok v18 Phase 2 tie 0.5768 0.7367 0.5145 0.6389 0.6204 0.0356

Limitations

  • This is a base model, not an instruction-tuned assistant.
  • Generic Hugging Face hosted inference may not work until the custom Piece tokenizer is packaged as a standard AutoTokenizer implementation.
  • Results remain below the original Qwen3-1.7B-Base on the WMT22 translation sample after tokenizer replacement.

License

The base model Qwen/Qwen3-1.7B-Base is released under Apache 2.0. This derivative checkpoint is prepared with the same license.

Downloads last month
-
Safetensors
Model size
2B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Ismantic/Qwen3-1.7B-Base-ReTok

Finetuned
(425)
this model