Training loss is not a benchmark score. Publish evaluation results separately
before comparing this checkpoint with other public models.
Intended Use
This release is suitable for reproducibility checks, loading smoke tests, and
lightweight text-generation experiments. It is not a safety-aligned assistant
release unless a downstream alignment and evaluation report is attached.
The exported remote code wraps SparkLM's native PyTorch implementation in a
transformers.PreTrainedModel interface.
Release Contract
A public release is considered loadable when the repository root includes:
config.json
generation_config.json
tokenizer_config.json
tokenizer vocabulary artifacts
model.safetensors or pytorch_model.bin
configuration_sparklm.py
modeling_sparklm.py
tokenization_sparklm.py
release_manifest.json
The config and tokenizer config should expose auto_map entries so
AutoConfig, AutoTokenizer, and AutoModelForCausalLM can load with
trust_remote_code=True.
Expert Parallel Training
This model supports end-to-end expert-parallel training via a differentiable
all-to-all dispatch/combine primitive (_AllToAllSingle autograd.Function).
The backward pass through the EP all-to-all is a reverse all-to-all with
swapped split sizes, enabling gradient flow across EP ranks.
Files
The exporter writes model.safetensors when the safetensors package is
available, falling back to pytorch_model.bin in minimal environments.
Release Validation
Run this before uploading or after cloning the repository: