NCM-iWSP-GPT1
A chat generation tool based on a frozen Next-Concept Model
2 min readupdated
The repository features official inference artifacts for the NCM-iWSP-GPT1 model alongside decoding scripts and a research paper. Since the base generator model is not inherently a causal chat language model, it employs a special approach: prefix prediction, vector quantization (VQ), and a decode-side splice method combined with an external planner TinyLlama/TinyLlama-1.1B-Chat-v1.0. The model targets researchers and developers exploring non-autoregressive or alternative text generation architectures.
Key features
- Uses a frozen ssunroll2 generator architecture (12 layers, 768 hidden dimensions, 12 attention heads).
- Applies decode-side splice to merge the official assistant response with the plan from the external TinyLlama language model.
- Trained and adapted on instruction-response entries from the databricks/databricks-dolly-15k dataset.
- Distributed under the CC BY-SA 3.0 license for weights due to the use of Dolly 15k data, while the inference code is supplied under the MIT license.
What you can do
- Run local official chat inference using the scripts from the repository.
- Download the TinyLlama planner model separately for collaboration with the NCM generator.
- Study the author's accompanying 15-page research paper on building readable chat from a frozen model.
Example
Running the official chat in the terminal after installing dependencies and downloading the planner:
python -u inference/chat_lmsplice.py \
--config configs/target_phase3.yaml \
--tokenizer weights/tokenizer.pt \
--finetune weights/latest.pt \
--prefix-head weights/prefix_level0.pt \
--planner-dir planner \
--worktree . \
--dialogue \
--temperature 0 --top-k 0 --top-p 1 --seed 0 \
--device cuda \
--prompt "How are you?"Read more
DetailsToken context: 512
Pre-tokenizer vocabulary size: 50304 (GPT-2 byte-level BPE)
Generator weights size: about 618 MB (weights/latest.pt file)
Using a discrete graphics card (GPU) for inference is recommended.










Comments