Skip to content

Releases

Sharplight v0.3.3

Choose a tag to compare

@github-actions github-actions released this 26 Nov 00:22

Sharplight 0.3

The second stable release of Sharplight and Sharplight Studio. 0.3 adds a native CUDA execution provider next to Vulkan, CPU and
Metal, brings LLM serving to vLLM's level on the same GPU, runs mixture-of-experts models far larger than GPU memory (experts in
system memory or on disk), adds video enhancement, many new speech, audio, vision and image models, and makes the task API
consistent across every model kind.

Packages: NuGet 0.3.N (N = the git height of release/v0.3; the GitHub release v0.3.N carries the Studio installers).

dotnet add package Sharplight

All performance numbers below were measured on one NVIDIA RTX PRO 4500 Blackwell (32 GB) under Linux, against the other engine on
the same GPU with the same model files and the same statistic. Sections refer to
docs/benchmarks.md.

Highlights

  • CUDA execution provider (Sharplight.Cuda, driver API only; NVRTC and the CUDA runtime libraries ship as
    Sharplight.Cuda.Runtime, no CUDA toolkit needed). Tensor cores, hand-written f16 / bf16 / FP8 / MXFP4 / NVFP4 GEMMs, CUDA graphs,
    FlashAttention-2-style prefill and tensor-core decode attention, programmatic dependent launches, stream-K. The generated kernel
    library is shared with Vulkan, and Vulkan stays a first-class provider (within a few per cent of CUDA on most workloads).
  • LLM serving at vLLM's level (vLLM 0.33, same GPU, same weights): throughput 0.99-1.03x at 16 and 64 streams with about half
    the time to first token (§104); at 256 streams with mixed request lengths 1.04-1.22x (§105). Every serving run checks its batched
    text against single-sequence output.
  • Quantized formats on tensor cores: block-scaled FP8 (on by default where the weights and GPU support it), native MXFP4 expert
    GEMMs (gpt-oss), native NVFP4 / W4A4 on Blackwell (§106), K-quant GGUF GEMMs on CUDA and Vulkan cooperative matrices.
  • Models larger than the GPU: routed experts on the CPU (like llama.cpp's --n-cpu-moe, 1.2-1.6x llama.cpp on Vulkan and
    0.99-1.6x on CUDA, §107 / §111) and experts on disk for models larger than RAM + VRAM (DeepSeek-V3.1 Q4_K_M, 405 GB, on a
    62 GB RAM / 32 GB GPU machine; io_uring reads with a cache, §85-§87).
  • Batched generation far ahead of llama.cpp on the same GPU: 1.6-3.2x tokens per second at 16-64 sequences on Vulkan, 1.1-2.0x on
    CUDA (§107).
  • Video enhancement: SeedVR2 3B / 7B (IVideoEnhancer, kind video-enhancement) on CPU, Vulkan and CUDA, faster than the official
    PyTorch inference (3B, 33 frames: 240p→480p 8.9 vs 10.1 s, 360p→720p 24.8 vs 35.3 s, ~49 dB parity), with memory constant in clip
    length (960p output runs where the reference runs out of memory on 32 GB; §108, §110).
  • 16-bit convolutions: channels-last f16 / bf16 implicit-GEMM convolution, 2-3x faster on CUDA and Vulkan (VAE decoders, video
    VAEs, CNNs), and an automatic bf16 fallback for components whose activations overflow f16 (SDXL's VAE: 11.2 → 67.8 dB at the
    same speed; §110, §112).
  • Serving features: vLLM-style automatic prefix caching (also for hybrid recurrent models), image and audio inputs in the batched
    engine, window-sized KV caches, KV cache types f16 / q8_0 / q4_0 / FP8 (E4M3, opt-in), a KV admission policy at KV saturation
    (queue by default, or preempt with recomputation; §109), adaptive step budgets.
  • Multi-node pipeline parallelism (preview): Sharplight.Distributed splits a model over remote segment workers (TCP / mTLS).

New models

  • Text: Gemma 4 (incl. vision tower), Gemma 3 from Hugging Face, Qwen3.5 / Qwen3.8, Qwen3-Coder-Next, gpt-oss 20b / 120b, huge MoE checkpoints verified with experts on disk (DeepSeek-V3.1, DeepSeek-V4-Flash, GLM-5.2;
    Kimi K3 on a truncated checkpoint).
  • Speech to text: Cohere Transcribe, Voxtral Mini 4B Realtime, Nemotron 3.5 ASR streaming, Qwen3-ASR 0.6B, VibeVoice ASR.
  • Text to speech: Qwen3-TTS, VibeVoice 1.5B, OmniVoice (with the Higgs Audio v2 codec), Sesame CSM-1B, Dia-1.6B, VoxCPM2.
  • Audio and music: Stable Audio Open 1.0, Stable Audio 3, ACE-Step 1.5 turbo text-to-music.
  • Vision: GLM-OCR (text, formulas, tables) with PP-DocLayoutV3 layout and a DocumentReader pipeline, Depth Anything 3, RF-DETR,
    DINOv3, MobileNetV3, EfficientNet / EfficientNetV2.
  • Image generation and editing: Qwen-Image-Edit 2509 / 2511, InstructPix2Pix, SDXL refiner, SD-Turbo, FLUX.2 Klein 9B and base 4B,
    undistilled Z-Image.
  • Video: SeedVR2 3B / 7B enhancement.

Sharplight Studio

  • CUDA provider on Linux x64 / arm64 and Windows x64, with a per-GPU provider choice.
  • Model feed as an install source (signed, verified resumable installs, stable and unstable channels), a first-run welcome flow
    with starter models, licence acceptance for restrictive licences, storage overview and safe cleanup.
  • New load options: CPU offload and experts on disk, block-scaled FP8 and FP4 (W4A4), step floor, prompt rows per slot,
    KV admission policy and the FP8 KV cache; options that do not apply to the device or model are disabled with the reason.
  • Enhance page for video-enhancement models with a live before/after comparison (blend slider or split divider, always the
    newest finished frame while running, scrub and play).
  • Pages for the new speech, TTS, audio and music models (multi-speaker scripts, voices, lyrics), a Search page with hybrid search and
    answers with citations, the embedded API server for every resident task model.
  • Headless UI tests in CI, published-build smoke tests, page screenshots for every page.

Breaking changes since 0.2

The task API is now the same across every model kind (CHANGELOG.md lists every member):

  • Text embeddings and reranking are task clients (kinds text-embedding, text-reranking): ITextEmbedder.EmbedAsync /
    EmbedTokensAsync and ITextReranker.RerankAsync replace Embed / EmbedTokens / Score; register with AddTextEmbedder(...) /
    AddTextReranker(...). EmbeddingModel, Reranker, EmbeddingLoadOptions, RerankerLoadOptions and the hosting embedding /
    reranker loaders are removed; SharplightEmbeddingGenerator.Load is removed.
  • Seeds are long? everywhere. Seeds within the int range reproduce earlier output bit for bit.
  • Audio and music generation follow the image / video shape: GenerateAsync(request, options) returns a result with audio and
    seed, GenerateStreamingAsync yields AudioGenerationUpdates, Defaults records replace DefaultSteps / Supports*; steps,
    guidance and seed moved from the request to the options. The IProgress parameters are gone.
  • Typed Defaults on IImageGenerator, IVideoGenerator, IVideoEnhancer replace GetService(typeof(...Defaults)).
  • Vision and audio per-request options are immutable records (with).
  • Renamed: UpscaleOptions → ImageUpscalingOptions, EmbedOptions → TextEmbeddingOptions,
    IVoiceActivityDetector.ProbabilitiesAsync → ComputeProbabilitiesAsync; IImageUpscaler.UpscaleAsync takes an
    IProgress<double> parameter.
  • VideoEnhancementUpdate positional order is (Phase, Batch, TotalBatches, Result, Frames).
  • Performance A/B environment switches were removed with their non-default paths (SHARPLIGHT_CUDA_PDL_SHARED,
    SHARPLIGHT_CPU_POOL, SHARPLIGHT_EXPERT_CACHE, SHARPLIGHT_STREAM_*, SHARPLIGHT_SHARED_ARENA, SHARPLIGHT_VK_TRANSFER_QUEUE and
    others; full list in CHANGELOG.md).
  • Block-scaled FP8 is on by default where it applies (TaskLoadOptions.BlockScaledFp8, --fp8-block-scaled).

Where Sharplight is behind

  • Prompt processing on Vulkan against vLLM: 0.70-0.90x on Qwen3-8B (bf16 and FP8) at 512-8192 tokens.
  • Inter-token latency tail at 16 streams against vLLM: p99 48-85 ms against 21-28 ms (mean 2-5 % higher).
  • gpt-oss-120b with experts in system memory on CUDA: prompts 0.85x of llama.cpp (0.96x with all experts page-locked).
  • Gemma 4 31B on CUDA, one sequence: 0.98x of llama.cpp; GLM-5.2 from disk 0.75x of llama.cpp in a first run.
  • TensorRT is ahead on 6 of 19 ONNX cases by 1.08-1.23x (onnxruntime is behind Sharplight on all 23 measured cases).
  • FP8 KV cache: functional and opt-in; its serving numbers against vLLM are still being measured.
  • Only one GPU model (NVIDIA RTX PRO 4500 Blackwell) has been benchmarked; AMD, Intel and Apple hardware pass the test suites but have
    no published numbers.

Known issues

  • Unsigned packages: Windows SmartScreen and macOS Gatekeeper warn on first start of Studio.
  • Metal is a preview (verified on GitHub's virtual M1 runner only).
  • SeedVR2: no VAE tiling yet (1080p output does not fit 32 GB), recompiles at 720p and above, no FP8 / GGUF weights; the 7B model has not
    been re-timed after the convolution work.
  • CosyVoice streaming on the CPU differs from the non-streaming output (relative RMS 0.43); under investigation.
  • Studio: the comparison view keeps preview frames within a 1 GiB budget; very long clips drop their oldest preview frames (the
    written file is complete).

Sharplight v0.3.1

Choose a tag to compare

@github-actions github-actions released this 25 Nov 23:15

Sharplight 0.3

The second stable release of Sharplight and Sharplight Studio. 0.3 adds a native CUDA execution provider next to Vulkan, CPU and
Metal, brings LLM serving to vLLM's level on the same GPU, runs mixture-of-experts models far larger than GPU memory (experts in
system memory or on disk), adds video enhancement, many new speech, audio, vision and image models, and makes the task API
consistent across every model kind.

Packages: NuGet 0.3.N (N = the git height of release/v0.3; the GitHub release v0.3.N carries the Studio installers).

dotnet add package Sharplight

All performance numbers below were measured on one NVIDIA RTX PRO 4500 Blackwell (32 GB) under Linux, against the other engine on
the same GPU with the same model files and the same statistic. Sections refer to
docs/benchmarks.md.

Highlights

  • CUDA execution provider (Sharplight.Cuda, driver API only; NVRTC and the CUDA runtime libraries ship as
    Sharplight.Cuda.Runtime, no CUDA toolkit needed). Tensor cores, hand-written f16 / bf16 / FP8 / MXFP4 / NVFP4 GEMMs, CUDA graphs,
    FlashAttention-2-style prefill and tensor-core decode attention, programmatic dependent launches, stream-K. The generated kernel
    library is shared with Vulkan, and Vulkan stays a first-class provider (within a few per cent of CUDA on most workloads).
  • LLM serving at vLLM's level (vLLM 0.33, same GPU, same weights): throughput 0.99-1.03x at 16 and 64 streams with about half
    the time to first token (§104); at 256 streams with mixed request lengths 1.04-1.22x (§105). Every serving run checks its batched
    text against single-sequence output.
  • Quantized formats on tensor cores: block-scaled FP8 (on by default where the weights and GPU support it), native MXFP4 expert
    GEMMs (gpt-oss), native NVFP4 / W4A4 on Blackwell (§106), K-quant GGUF GEMMs on CUDA and Vulkan cooperative matrices.
  • Models larger than the GPU: routed experts on the CPU (like llama.cpp's --n-cpu-moe, 1.2-1.6x llama.cpp on Vulkan and
    0.99-1.6x on CUDA, §107 / §111) and experts on disk for models larger than RAM + VRAM (DeepSeek-V3.1 Q4_K_M, 405 GB, on a
    62 GB RAM / 32 GB GPU machine; io_uring reads with a cache, §85-§87).
  • Batched generation far ahead of llama.cpp on the same GPU: 1.6-3.2x tokens per second at 16-64 sequences on Vulkan, 1.1-2.0x on
    CUDA (§107).
  • Video enhancement: SeedVR2 3B / 7B (IVideoEnhancer, kind video-enhancement) on CPU, Vulkan and CUDA, faster than the official
    PyTorch inference (3B, 33 frames: 240p→480p 8.9 vs 10.1 s, 360p→720p 24.8 vs 35.3 s, ~49 dB parity), with memory constant in clip
    length (960p output runs where the reference runs out of memory on 32 GB; §108, §110).
  • 16-bit convolutions: channels-last f16 / bf16 implicit-GEMM convolution, 2-3x faster on CUDA and Vulkan (VAE decoders, video
    VAEs, CNNs), and an automatic bf16 fallback for components whose activations overflow f16 (SDXL's VAE: 11.2 → 67.8 dB at the
    same speed; §110, §112).
  • Serving features: vLLM-style automatic prefix caching (also for hybrid recurrent models), image and audio inputs in the batched
    engine, window-sized KV caches, KV cache types f16 / q8_0 / q4_0 / FP8 (E4M3, opt-in), a KV admission policy at KV saturation
    (queue by default, or preempt with recomputation; §109), adaptive step budgets.
  • Multi-node pipeline parallelism (preview): Sharplight.Distributed splits a model over remote segment workers (TCP / mTLS).

New models

  • Text: Gemma 4 (incl. vision tower), Gemma 3 from Hugging Face, Qwen3.5 / Qwen3.8, Qwen3-Coder-Next, gpt-oss 20b / 120b, huge MoE checkpoints verified with experts on disk (DeepSeek-V3.1, DeepSeek-V4-Flash, GLM-5.2;
    Kimi K3 on a truncated checkpoint).
  • Speech to text: Cohere Transcribe, Voxtral Mini 4B Realtime, Nemotron 3.5 ASR streaming, Qwen3-ASR 0.6B, VibeVoice ASR.
  • Text to speech: Qwen3-TTS, VibeVoice 1.5B, OmniVoice (with the Higgs Audio v2 codec), Sesame CSM-1B, Dia-1.6B, VoxCPM2.
  • Audio and music: Stable Audio Open 1.0, Stable Audio 3, ACE-Step 1.5 turbo text-to-music.
  • Vision: GLM-OCR (text, formulas, tables) with PP-DocLayoutV3 layout and a DocumentReader pipeline, Depth Anything 3, RF-DETR,
    DINOv3, MobileNetV3, EfficientNet / EfficientNetV2.
  • Image generation and editing: Qwen-Image-Edit 2509 / 2511, InstructPix2Pix, SDXL refiner, SD-Turbo, FLUX.2 Klein 9B and base 4B,
    undistilled Z-Image.
  • Video: SeedVR2 3B / 7B enhancement.

Sharplight Studio

  • CUDA provider on Linux x64 / arm64 and Windows x64, with a per-GPU provider choice.
  • Model feed as an install source (signed, verified resumable installs, stable and unstable channels), a first-run welcome flow
    with starter models, licence acceptance for restrictive licences, storage overview and safe cleanup.
  • New load options: CPU offload and experts on disk, block-scaled FP8 and FP4 (W4A4), step floor, prompt rows per slot,
    KV admission policy and the FP8 KV cache; options that do not apply to the device or model are disabled with the reason.
  • Enhance page for video-enhancement models with a live before/after comparison (blend slider or split divider, always the
    newest finished frame while running, scrub and play).
  • Pages for the new speech, TTS, audio and music models (multi-speaker scripts, voices, lyrics), a Search page with hybrid search and
    answers with citations, the embedded API server for every resident task model.
  • Headless UI tests in CI, published-build smoke tests, page screenshots for every page.

Breaking changes since 0.2

The task API is now the same across every model kind (CHANGELOG.md lists every member):

  • Text embeddings and reranking are task clients (kinds text-embedding, text-reranking): ITextEmbedder.EmbedAsync /
    EmbedTokensAsync and ITextReranker.RerankAsync replace Embed / EmbedTokens / Score; register with AddTextEmbedder(...) /
    AddTextReranker(...). EmbeddingModel, Reranker, EmbeddingLoadOptions, RerankerLoadOptions and the hosting embedding /
    reranker loaders are removed; SharplightEmbeddingGenerator.Load is removed.
  • Seeds are long? everywhere. Seeds within the int range reproduce earlier output bit for bit.
  • Audio and music generation follow the image / video shape: GenerateAsync(request, options) returns a result with audio and
    seed, GenerateStreamingAsync yields AudioGenerationUpdates, Defaults records replace DefaultSteps / Supports*; steps,
    guidance and seed moved from the request to the options. The IProgress parameters are gone.
  • Typed Defaults on IImageGenerator, IVideoGenerator, IVideoEnhancer replace GetService(typeof(...Defaults)).
  • Vision and audio per-request options are immutable records (with).
  • Renamed: UpscaleOptions → ImageUpscalingOptions, EmbedOptions → TextEmbeddingOptions,
    IVoiceActivityDetector.ProbabilitiesAsync → ComputeProbabilitiesAsync; IImageUpscaler.UpscaleAsync takes an
    IProgress<double> parameter.
  • VideoEnhancementUpdate positional order is (Phase, Batch, TotalBatches, Result, Frames).
  • Performance A/B environment switches were removed with their non-default paths (SHARPLIGHT_CUDA_PDL_SHARED,
    SHARPLIGHT_CPU_POOL, SHARPLIGHT_EXPERT_CACHE, SHARPLIGHT_STREAM_*, SHARPLIGHT_SHARED_ARENA, SHARPLIGHT_VK_TRANSFER_QUEUE and
    others; full list in CHANGELOG.md).
  • Block-scaled FP8 is on by default where it applies (TaskLoadOptions.BlockScaledFp8, --fp8-block-scaled).

Where Sharplight is behind

  • Prompt processing on Vulkan against vLLM: 0.70-0.90x on Qwen3-8B (bf16 and FP8) at 512-8192 tokens.
  • Inter-token latency tail at 16 streams against vLLM: p99 48-85 ms against 21-28 ms (mean 2-5 % higher).
  • gpt-oss-120b with experts in system memory on CUDA: prompts 0.85x of llama.cpp (0.96x with all experts page-locked).
  • Gemma 4 31B on CUDA, one sequence: 0.98x of llama.cpp; GLM-5.2 from disk 0.75x of llama.cpp in a first run.
  • TensorRT is ahead on 6 of 19 ONNX cases by 1.08-1.23x (onnxruntime is behind Sharplight on all 23 measured cases).
  • FP8 KV cache: functional and opt-in; its serving numbers against vLLM are still being measured.
  • Only one GPU model (NVIDIA RTX PRO 4500 Blackwell) has been benchmarked; AMD, Intel and Apple hardware pass the test suites but have
    no published numbers.

Known issues

  • Unsigned packages: Windows SmartScreen and macOS Gatekeeper warn on first start of Studio.
  • Metal is a preview (verified on GitHub's virtual M1 runner only).
  • SeedVR2: no VAE tiling yet (1080p output does not fit 32 GB), recompiles at 720p and above, no FP8 / GGUF weights; the 7B model has not
    been re-timed after the convolution work.
  • CosyVoice streaming on the CPU differs from the non-streaming output (relative RMS 0.43); under investigation.
  • Studio: the comparison view keeps preview frames within a 1 GiB budget; very long clips drop their oldest preview frames (the
    written file is complete).

Sharplight v0.3.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 22:57

Sharplight 0.3

The second stable release of Sharplight and Sharplight Studio. 0.3 adds a native CUDA execution provider next to Vulkan, CPU and
Metal, brings LLM serving to vLLM's level on the same GPU, runs mixture-of-experts models far larger than GPU memory (experts in
system memory or on disk), adds video enhancement, many new speech, audio, vision and image models, and makes the task API
consistent across every model kind.

Packages: NuGet 0.3.N (N = the git height of release/v0.3; the GitHub release v0.3.N carries the Studio installers).

dotnet add package Sharplight

All performance numbers below were measured on one NVIDIA RTX PRO 4500 Blackwell (32 GB) under Linux, against the other engine on
the same GPU with the same model files and the same statistic. Sections refer to
docs/benchmarks.md.

Highlights

  • CUDA execution provider (Sharplight.Cuda, driver API only; NVRTC and the CUDA runtime libraries ship as
    Sharplight.Cuda.Runtime, no CUDA toolkit needed). Tensor cores, hand-written f16 / bf16 / FP8 / MXFP4 / NVFP4 GEMMs, CUDA graphs,
    FlashAttention-2-style prefill and tensor-core decode attention, programmatic dependent launches, stream-K. The generated kernel
    library is shared with Vulkan, and Vulkan stays a first-class provider (within a few per cent of CUDA on most workloads).
  • LLM serving at vLLM's level (vLLM 0.33, same GPU, same weights): throughput 0.99-1.03x at 16 and 64 streams with about half
    the time to first token (§104); at 256 streams with mixed request lengths 1.04-1.22x (§105). Every serving run checks its batched
    text against single-sequence output.
  • Quantized formats on tensor cores: block-scaled FP8 (on by default where the weights and GPU support it), native MXFP4 expert
    GEMMs (gpt-oss), native NVFP4 / W4A4 on Blackwell (§106), K-quant GGUF GEMMs on CUDA and Vulkan cooperative matrices.
  • Models larger than the GPU: routed experts on the CPU (like llama.cpp's --n-cpu-moe, 1.2-1.6x llama.cpp on Vulkan and
    0.99-1.6x on CUDA, §107 / §111) and experts on disk for models larger than RAM + VRAM (DeepSeek-V3.1 Q4_K_M, 405 GB, on a
    62 GB RAM / 32 GB GPU machine; io_uring reads with a cache, §85-§87).
  • Batched generation far ahead of llama.cpp on the same GPU: 1.6-3.2x tokens per second at 16-64 sequences on Vulkan, 1.1-2.0x on
    CUDA (§107).
  • Video enhancement: SeedVR2 3B / 7B (IVideoEnhancer, kind video-enhancement) on CPU, Vulkan and CUDA, faster than the official
    PyTorch inference (3B, 33 frames: 240p→480p 8.9 vs 10.1 s, 360p→720p 24.8 vs 35.3 s, ~49 dB parity), with memory constant in clip
    length (960p output runs where the reference runs out of memory on 32 GB; §108, §110).
  • 16-bit convolutions: channels-last f16 / bf16 implicit-GEMM convolution, 2-3x faster on CUDA and Vulkan (VAE decoders, video
    VAEs, CNNs), and an automatic bf16 fallback for components whose activations overflow f16 (SDXL's VAE: 11.2 → 67.8 dB at the
    same speed; §110, §112).
  • Serving features: vLLM-style automatic prefix caching (also for hybrid recurrent models), image and audio inputs in the batched
    engine, window-sized KV caches, KV cache types f16 / q8_0 / q4_0 / FP8 (E4M3, opt-in), a KV admission policy at KV saturation
    (queue by default, or preempt with recomputation; §109), adaptive step budgets.
  • Multi-node pipeline parallelism (preview): Sharplight.Distributed splits a model over remote segment workers (TCP / mTLS).

New models

  • Text: Gemma 4 (incl. vision tower), Gemma 3 from Hugging Face, Qwen3.5 / Qwen3.8, Qwen3-Coder-Next, gpt-oss 20b / 120b, huge MoE checkpoints verified with experts on disk (DeepSeek-V3.1, DeepSeek-V4-Flash, GLM-5.2;
    Kimi K3 on a truncated checkpoint).
  • Speech to text: Cohere Transcribe, Voxtral Mini 4B Realtime, Nemotron 3.5 ASR streaming, Qwen3-ASR 0.6B, VibeVoice ASR.
  • Text to speech: Qwen3-TTS, VibeVoice 1.5B, OmniVoice (with the Higgs Audio v2 codec), Sesame CSM-1B, Dia-1.6B, VoxCPM2.
  • Audio and music: Stable Audio Open 1.0, Stable Audio 3, ACE-Step 1.5 turbo text-to-music.
  • Vision: GLM-OCR (text, formulas, tables) with PP-DocLayoutV3 layout and a DocumentReader pipeline, Depth Anything 3, RF-DETR,
    DINOv3, MobileNetV3, EfficientNet / EfficientNetV2.
  • Image generation and editing: Qwen-Image-Edit 2509 / 2511, InstructPix2Pix, SDXL refiner, SD-Turbo, FLUX.2 Klein 9B and base 4B,
    undistilled Z-Image.
  • Video: SeedVR2 3B / 7B enhancement.

Sharplight Studio

  • CUDA provider on Linux x64 / arm64 and Windows x64, with a per-GPU provider choice.
  • Model feed as an install source (signed, verified resumable installs, stable and unstable channels), a first-run welcome flow
    with starter models, licence acceptance for restrictive licences, storage overview and safe cleanup.
  • New load options: CPU offload and experts on disk, block-scaled FP8 and FP4 (W4A4), step floor, prompt rows per slot,
    KV admission policy and the FP8 KV cache; options that do not apply to the device or model are disabled with the reason.
  • Enhance page for video-enhancement models with a live before/after comparison (blend slider or split divider, always the
    newest finished frame while running, scrub and play).
  • Pages for the new speech, TTS, audio and music models (multi-speaker scripts, voices, lyrics), a Search page with hybrid search and
    answers with citations, the embedded API server for every resident task model.
  • Headless UI tests in CI, published-build smoke tests, page screenshots for every page.

Breaking changes since 0.2

The task API is now the same across every model kind (CHANGELOG.md lists every member):

  • Text embeddings and reranking are task clients (kinds text-embedding, text-reranking): ITextEmbedder.EmbedAsync /
    EmbedTokensAsync and ITextReranker.RerankAsync replace Embed / EmbedTokens / Score; register with AddTextEmbedder(...) /
    AddTextReranker(...). EmbeddingModel, Reranker, EmbeddingLoadOptions, RerankerLoadOptions and the hosting embedding /
    reranker loaders are removed; SharplightEmbeddingGenerator.Load is removed.
  • Seeds are long? everywhere. Seeds within the int range reproduce earlier output bit for bit.
  • Audio and music generation follow the image / video shape: GenerateAsync(request, options) returns a result with audio and
    seed, GenerateStreamingAsync yields AudioGenerationUpdates, Defaults records replace DefaultSteps / Supports*; steps,
    guidance and seed moved from the request to the options. The IProgress parameters are gone.
  • Typed Defaults on IImageGenerator, IVideoGenerator, IVideoEnhancer replace GetService(typeof(...Defaults)).
  • Vision and audio per-request options are immutable records (with).
  • Renamed: UpscaleOptions → ImageUpscalingOptions, EmbedOptions → TextEmbeddingOptions,
    IVoiceActivityDetector.ProbabilitiesAsync → ComputeProbabilitiesAsync; IImageUpscaler.UpscaleAsync takes an
    IProgress<double> parameter.
  • VideoEnhancementUpdate positional order is (Phase, Batch, TotalBatches, Result, Frames).
  • Performance A/B environment switches were removed with their non-default paths (SHARPLIGHT_CUDA_PDL_SHARED,
    SHARPLIGHT_CPU_POOL, SHARPLIGHT_EXPERT_CACHE, SHARPLIGHT_STREAM_*, SHARPLIGHT_SHARED_ARENA, SHARPLIGHT_VK_TRANSFER_QUEUE and
    others; full list in CHANGELOG.md).
  • Block-scaled FP8 is on by default where it applies (TaskLoadOptions.BlockScaledFp8, --fp8-block-scaled).

Where Sharplight is behind

  • Prompt processing on Vulkan against vLLM: 0.70-0.90x on Qwen3-8B (bf16 and FP8) at 512-8192 tokens.
  • Inter-token latency tail at 16 streams against vLLM: p99 48-85 ms against 21-28 ms (mean 2-5 % higher).
  • gpt-oss-120b with experts in system memory on CUDA: prompts 0.85x of llama.cpp (0.96x with all experts page-locked).
  • Gemma 4 31B on CUDA, one sequence: 0.98x of llama.cpp; GLM-5.2 from disk 0.75x of llama.cpp in a first run.
  • TensorRT is ahead on 6 of 19 ONNX cases by 1.08-1.23x (onnxruntime is behind Sharplight on all 23 measured cases).
  • FP8 KV cache: functional and opt-in; its serving numbers against vLLM are still being measured.
  • Only one GPU model (NVIDIA RTX PRO 4500 Blackwell) has been benchmarked; AMD, Intel and Apple hardware pass the test suites but have
    no published numbers.

Known issues

  • Unsigned packages: Windows SmartScreen and macOS Gatekeeper warn on first start of Studio.
  • Metal is a preview (verified on GitHub's virtual M1 runner only).
  • SeedVR2: no VAE tiling yet (1080p output does not fit 32 GB), recompiles at 720p and above, no FP8 / GGUF weights; the 7B model has not
    been re-timed after the convolution work.
  • CosyVoice streaming on the CPU differs from the non-streaming output (relative RMS 0.43); under investigation.
  • Studio: the comparison view keeps preview frames within a 1 GiB budget; very long clips drop their oldest preview frames (the
    written file is complete).

Sharplight v0.2.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 12:33

Sharplight 0.2

The first stable release of Sharplight, a .NET 11 / C# 14 inference engine with a Vulkan GPU backend and a CPU backend, and of
Sharplight Studio, its desktop app. 0.2 follows the 0.1.x alpha series (last: v0.1.22-alpha) and changes the scope from
"language and ONNX models" to every model kind on one engine: text, speech recognition, speech synthesis, audio, vision, image
generation and video generation, all loaded through the same importers, compiled through the same graph IR and called through one
task-client pattern.

Packages: NuGet 0.2.N (N = the git height of release/v0.2; the GitHub release v0.2.N carries the Studio installers). Most
applications need only the entry package:

dotnet add package Sharplight
var services = new ServiceCollection()
    .AddSharplight()
    .AddTextGenerator((o, sp) => { /* o.ModelPath, o.Devices */ });

See the README ("Getting started") and docs/api-overview.md.

Highlights

  • One engine for every model kind. A task layer in Sharplight.Core with one client per kind (ITextGenerator,
    ISpeechRecognizer, ISpeechSynthesizer, IImageGenerator, IVideoGenerator, IImageClassifier, IImageEmbedder,
    IObjectDetector, IDepthEstimator, IImageSegmenter, ISemanticSegmenter, ITextRecognizer, IImageUpscaler, IAudioCodec,
    IVoiceActivityDetector, IAudioEmbedder, IMusicGenerator, IAudioSeparator), registered with Microsoft.Extensions.DependencyInjection
    and safe to call from a UI thread (documented threading contract: no compute before the first await, background stream producers,
    cancellation between steps).
  • The .slm package stores every kind: a model description (kind and components such as encoder, decoder, tokenizer, denoiser,
    VAE, scheduler, vocoder), graphs, weights, attachments, and precompiled artifacts per execution provider (two-stage code generation:
    portable code plus device-specific code, VK_KHR_pipeline_binary with a pipeline-cache fallback).
  • Verified-model catalog: 203 entries (179 installable) with pinned revisions, files, checksums and companion files, each
    verified against its reference implementation (transformers, diffusers, llama.cpp, whisper.cpp, onnxruntime, the authors' code). The
    tables of docs/compatible-models.md are generated from it, and Studio installs its entries with one click.
  • Native Metal provider (preview) for Apple silicon on the same Slang kernel library (compiled to MSL), with simdgroup_matrix
    GEMMs; on macOS the provider order is Metal, Vulkan (MoltenVK), CPU.
  • Server foundations: Sharplight.Hosting (multi-model host management from options or JSON, fit planning, capacity status for
    health checks and cluster coordinators), multi-tenant serving seams (tenant resolver, isolation scope, prefix-cache partitions,
    admission, usage and metrics, per-model defaults) and sharplight serve on top of it.
  • Sharplight Studio grew from a chat app into a workbench for every model kind (see below), with stable and unstable update
    channels (Velopack) for Linux, Windows and macOS.

Model kinds and families

All entries below are verified against a reference; numbers and conditions are in docs/compatible-models.md
and docs/model-support.md.

  • Text generation. 168 of the 172 llama.cpp architectures end to end (GGUF and Hugging Face safetensors), a Hub top-20 sweep plus
    9 large models (safetensors against transformers, GGUF against llama.cpp), OPT, slow BPE tokenizers, Metaspace handling. New since
    0.1.22: Gemma 4 MoE, DeepSeek-V4 native, bring-up rounds 9-11 (lfm3, spark2_5, llava_onevision2, clover_moe, mimo_v2,
    nemotron_h_omni, PaliGemma text, DFlash drafters, Inkling, Kimi K3, DeepSeek-OCR family, GroveMoE, ...). MTP draft heads
    (qwen4exp NextN from HF, GGUF or an mtp-*.gguf sidecar, MiMo-7B MTP, Qwen3-Next and GLM-4 MoE NextN) for speculative decoding.
  • Quantized Hugging Face checkpoints: NVFP4, MXFP4, FP8, GPTQ (incl. Marlin), AWQ (incl. gemv_fast), bitsandbytes NF4/FP4/LLM.int8,
    MLX (2/3/4/5-bit, mxfp4/nvfp4/mxfp8), AutoRound, HQQ, EETQ, Quark int4/int8/MXFP6, optimum-quanto, torchao int8/float8, GGUF I2_S
    kept quantized; AQLM, FP-Quant, HIGGS, VPTQ, EXL2 dequantized at import. A restricted pickle loader (Sharplight.Import.PyTorch) reads
    .bin checkpoints without running pickled code.
  • Speech to text: Whisper (HF, whisper.cpp ggml and GGUF; beam search, long-form, VAD pre-segmentation), Distil-Whisper, Moonshine,
    Parakeet CTC/TDT/RNN-T (incl. GGUF), Canary, wav2vec2 CTC, and audio language models Qwen3-ASR 1.7B and Voxtral Mini 3B
    (token-exact against transformers).
  • Text to speech: OuteTTS 0.2, Kokoro-82M, Orpheus 3B + SNAC, Chatterbox (built-in voice and voice cloning), F5-TTS v1 + Vocos,
    XTTS v2 (58 speakers and voice cloning), CosyVoice 3 0.5B (zero-shot and instructions). Streaming synthesis (CosyVoice chunked
    flow, XTTS, Chatterbox) with playback while generating, saved voices (VoiceLibrary) and text normalization for 8 languages.
  • Audio: EnCodec, DAC and Mimi codecs, Silero VAD, CLAP audio/text embeddings, MusicGen small, Demucs htdemucs source separation.
  • Vision: ViT, timm and Hugging Face ResNets, ConvNeXt V1 (HF and timm), CLIP / SigLIP / SigLIP 2 (zero-shot), DINOv2, DETR, RT-DETR v1/v2, YOLOS, Ultralytics YOLOv8/v10/11
    (detection and instance segmentation, ONNX exports), Table Transformer, Depth Anything V1/V2, SAM 2.1 (points and boxes),
    SegFormer, BiRefNet and RMBG-2.0 background removal, TrOCR, Florence-2 (OCR, captions, detection), Real-ESRGAN and SwinIR upscaling.
  • Image generation: Stable Diffusion 1.5 / 2.x / SDXL / SDXL-Turbo / SDXL-Lightning / SD-Turbo (diffusers, single file, .ckpt,
    stable-diffusion.cpp GGUF), SD3 / SD3.5 Medium, FLUX.1 schnell and dev (incl. city96 GGUF), FLUX.2 Klein 4B, Chroma1-HD,
    Z-Image-Turbo, Qwen-Image, Qwen-Image 2.1 and 2.1 Turbo, Krea 2 Turbo; popular SD1.5/SDXL/Illustrious fine-tunes as single files;
    FLUX.2 Dev 32B (GGUF with the Mistral 3.2 text encoder); reference-image editing (FLUX.2, FLUX.1 Kontext) with a Studio edit mode;
    LoRA merging at load (kohya and PEFT for SD1.5, SDXL, FLUX and Krea 2); txt2img, img2img and inpainting; /v1/images/generations.
  • Video generation: Wan 2.1 T2V 1.3B, Wan 2.2 TI2V 5B, Wan 2.2 T2V/I2V A14B (two experts), Wan 2.1 I2V and FLF2V 14B (incl. GGUF),
    LTX-Video 0.9.0, 0.9.5 and 13B 0.9.8 distilled (single files and GGUF), HunyuanVideo (diffusers and GGUF, tiled causal 3-D VAE decode).
  • ONNX: operator rounds 7-8 (verified against onnxruntime 1.32: GQA, RotaryEmbedding, SimplifiedLayerNorm, NMS, RoiAlign, Loop,
    Range, STFT, StringSplit, MurmurHash3, ...), opt-in fast (TF32-class) matrix precision.

Media I/O

  • Native audio library (Sharplight.Audio): Sharplight's own C library over miniaudio, libopus, libogg, opusfile and libvorbis,
    cross-compiled with zig for linux-x64, linux-arm64, win-x64, win-arm64 and osx-arm64. Decoders for WAV, FLAC, MP3, Ogg Vorbis and
    Ogg Opus, encoders for WAV and Ogg Opus, playback and capture devices. The core's managed WAV I/O stays the fallback.
  • Video (Sharplight.Video): Sharplight's own LGPL FFmpeg 9.0.2 build for the same five runtimes (OpenH264, SVT-AV1, dav1d, libvpx,
    libopus, statically linked into the FFmpeg shared libraries) through FFmpeg.AutoGen: MP4, WebM, MOV, Matroska, GIF and APNG
    encoding (H.264, AV1, VP9, VP8, ProRes, FFV1 and the machine's hardware encoders: NVENC, VideoToolbox, Media Foundation) and decoding.
    Managed APNG and GIF encoders in the core are the fallback.

Serving and APIs

  • OpenAI- and Anthropic-compatible server (Sharplight.AspNetCore) with continuous batching; speech recognition
    (/v1/audio/transcriptions) and image generation (/v1/images/generations) endpoints.
  • Microsoft.Extensions.AI adapters for chat, embeddings, speech to text, text to speech and image generation.
  • Prefill in passes of up to 2048 rows (auto-sized from the available memory) and whole-pass prefill in the server: time to first
    token at 16 streams is now at vLLM's level.
  • Sharplight.Hosting: one ModelHost for chat, embedding, reranker and task models on shared devices, configured from options or
    JSON (ModelHostingJson), with placement, fit planning and HostStatus; ServingChatClient.
  • Sharplight.DesignTokens: the CSS and icons of the Sharplight look for web UIs (Studio's theme is generated from the same tokens).
  • Prerelease packages of develop on a GitHub Packages feed.
  • sharplight command line (assembly Sharplight.Cli): chat, generate, bench, serve (one or several models over HTTP), --gpus,
    storage and store commands; samples for
    transcription, speech, vision, image and video generation.
  • Storage modes for every written file: system (default), portable (next to the AppImage / executable) or a custom folder, switchable
    with sharplight storage use ... or in Studio, with migration.
  • SHARPLIGHT_VK_DEVICES pins the Vulkan devices a process uses.

Sharplight Studio

  • Pages per model kind: Chat, Transcribe, Speak (built-in voices and cloning from a recording), Audio (codecs, VAD, CLAP, MusicGen,
    Demucs), Vision (classification, zero-shot, detection, depth, segmentation with SAM points/box, semantic segmentation with legend and
    cut-out export, OCR, upscaling with a compare slider, background removal), Image (txt2img, img2img, inpainting, live preview, LoRA
    slots, PNG metadata, persistent gallery), Video (text-, image- and last-frame-to-video, video gallery, export panel with FFmpeg
    formats and hardware...
Read more

Sharplight v0.1.22-alpha

Pre-release

Choose a tag to compare

@github-actions github-actions released this 14 Nov 18:55