Neural Transformer for Mistral-7B - Checkpoints for predicting neuron paths
2 min read
A set of weights and calibration files for the Neural Transformer (NT) model, created based on research by Travis Waters. The model predicts which MLP (multilayer perceptron) neurons in Mistral-7B layers need to be activated for the current token in advance, before executing the layers themselves. The development is intended for researchers of SwiGLU LLM architectures and students of compute optimization methods. The checkpoints vary by target neuron retention percentage (from 20% to 50%). Note that the files themselves do not speed up inference, but are used for simulation and evaluation.
Key features
- Based on the Mistral-7B-v0.1 architecture.
- Includes scheduler weights for four retention levels (NT-20, NT-30, NT-40, NT-50).
- Comes with ready-made calibration files and general activation threshold values.
- Based on research on predicting the full token neuron path in SwiGLU language models.
What you can do
- Download weights via Hugging Face CLI for research experiments with the author's code.
- Evaluate and simulate skipping layers and computations with different neuron retention budgets.
- Use together with the base Mistral-7B-v0.1 model according to the instructions from the repository.
Example
Downloading schedulers and calibration files using the CLI command:
hf download Tmoney29/neural-transformer --local-dir checkpoints/neural-transformerRead more
DetailsNT-50 benchmark: retains 49.15% of eligible MLP neurons with a 5.21% increase in perplexity (model uncertainty metric) relative to dense Mistral-7B.
Files in the repository: safetensors weights, JSON calibration files with `offsets` arrays, and general `thresholds.safetensors` thresholds.
Requires a separate download of the base mistralai/Mistral-7B-v0.1 model.










Comments