Package smile.llm.model.deepseek
package smile.llm.model.deepseek
-
ClassDescriptionDeepSeek-V4.1 behind the continuous-batching engine: a
LanguageModelandModelExecutoroverDeepSeekModel.Reads tensors of a DeepSeek-V4.1 checkpoint (sharded safetensors) one at a time, so a slice of the model can be loaded without touching the other shards.Maps every token id to a "compressed" id, so that tokens which normalize alike (" The", "the", "THE") share one.DeepSeek-V4.1 text model for validation: a (possibly truncated) stack ofDeepSeekBlocks over ahc-fold residual stream, single sequence, CPU-friendly, float32 weights.All mutable per-sequence state of the model (each layer's caches and the engram token history).DeepSeek-V4.1 text-tower hyperparameters (checkpointconfig.json, sectiontext_config).Tensor operations of the DeepSeek-V4.1 forward pass, written with generic ATen ops (Aten) so they run on any device.DeepSeek-V4.1 tokenizer: no normalizer; added tokens are matched first and stay atomic; the text between them goes through the three "Isolated" splits oftokenizer.json(1-3 digit groups, CJK/kana runs, then the word/punctuation/whitespace regex) before byte-level BPE.One entry ofadded_tokensintokenizer.json.