span-02 / NOTICE
lihe07's picture
span-02: single-source release folder (engine final path, soft blend)
19886eb verified
Raw History Blame Contribute Delete
3.36 kB
span-02 serving engine (engine/)
Copyright 2026 the span-02 authors. Licensed under the Apache License, Version 2.0 (SPDX: Apache-2.0).
The model weights in this repository are a derivative of Google's Gemma 4 (google/gemma-4-26B-A4B-it) and are
distributed under the Gemma 4 license terms (Apache 2.0): https://ai.google.dev/gemma/docs/gemma_4_license
The engine is new code. Several parts port algorithms or follow the structure of the projects below; the
source files carry an SPDX header and name the original file they follow.
Apache License 2.0
* vLLM (https://github.com/vllm-project/vllm), Copyright the vLLM project contributors.
Reduction / RMSNorm / RoPE + KV-cache-write / MoE routing and alignment / greedy rejection sampling and
draft-proposer idioms: engine/crates/kernels/cuda/{common.cuh, rmsnorm.cu, rope_kv_write.cu, qkv_prep.cu,
embed.cu, moe_route.cu, spec.cu}, engine/crates/model/src/{spec.rs, draft.rs}.
* SGLang (https://github.com/sgl-project/sglang), Copyright the SGLang project contributors.
Radix prefix cache (radix_cache.py, v0.5.21): engine/crates/runtime/src/radix.rs; scheduling policy ideas and the
sliding-window KV pool: engine/crates/runtime/src/engine.rs; EAGLE greedy chain verification:
engine/crates/kernels/cuda/spec.cu, engine/crates/model/src/spec.rs.
* FlashInfer (https://github.com/flashinfer-ai/flashinfer), Copyright the FlashInfer contributors.
Split-KV decode attention + state merge, paged prefill layout, SM120 NVFP4 MMA form, fused MoE design:
engine/crates/kernels/cuda/{attn_decode.cu, attn_prefill.cu, fp4.cuh, moe.cu, moe_prefill.cu, vision_attn.cu,
vision_gemm.cu}.
* HF transformers (https://github.com/huggingface/transformers), Copyright The HuggingFace Team.
Gemma-4 model semantics (decoder, vision tower, MTP assistant, image processor): engine/crates/model/src/*,
engine/crates/vision/src/*, engine/crates/kernels/cuda/{embed.cu, rope_kv_write.cu, qkv_prep.cu, norm.cu,
moe.cu, moe_prefill.cu, vision_misc.cu}.
BSD-3-Clause
* NVIDIA CUTLASS (https://github.com/NVIDIA/cutlass), Copyright (c) NVIDIA CORPORATION & AFFILIATES.
SM120 block-scaled MMA instruction form: engine/crates/kernels/cuda/fp4.cuh, vision_gemm.cu.
* FlashAttention (https://github.com/Dao-AILab/flash-attention), Copyright (c) Tri Dao.
Online-softmax attention structure: engine/crates/kernels/cuda/{attn_prefill.cu, vision_attn.cu}.
* PyTorch (https://github.com/pytorch/pytorch), Copyright (c) 2016- Facebook, Inc (Adam Paszke) and the PyTorch
contributors. Antialiased bicubic uint8 resize (UpSampleKernel.cpp): engine/crates/vision/src/resize.rs
(full notice in the file header).
Other permissive licenses
* Pillow (https://github.com/python-pillow/Pillow), HPND license, Copyright (c) 1997-2011 by Secret Labs AB,
(c) 1995-2011 by Fredrik Lundh, (c) 2010 by Jeffrey A. Clark and contributors: Resample.c (via PyTorch):
engine/crates/vision/src/resize.rs (notice in the file header).
* libpng (https://github.com/pnggroup/libpng), libpng license: structure of the SSE2 PNG unfilter kernels:
engine/crates/vision/src/png_fast.rs.
Third-party Rust crates are fetched by Cargo at build time under their own licenses (see engine/Cargo.lock).
The MTP draft model (google/gemma-4-26B-A4B-it-assistant) is downloaded from its own repository at launch and is
not redistributed here.