Package smile.llm.model.deepseek


package smile.llm.model.deepseek
  • Class
    Description
    DeepSeek-V4.1 behind the continuous-batching engine: a LanguageModel and ModelExecutor over DeepSeekModel.
    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 of DeepSeekBlocks over a hc-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 (checkpoint config.json, section text_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 of tokenizer.json (1-3 digit groups, CJK/kana runs, then the word/punctuation/whitespace regex) before byte-level BPE.
    One entry of added_tokens in tokenizer.json.