Skip to content

Releases

Zyguard v0.1.0-beta.2.8

Pre-release

Choose a tag to compare

@MakPr016 MakPr016 released this 05 Oct 06:23

Zyguard v0.1.0-beta.2.8

New: Linux

Zyguard now runs on Linux, on x86_64 and aarch64 (for example AWS Graviton), with any distribution from glibc 2.28 up: Amazon Linux 2023, Ubuntu 20.04+, Debian 10+, RHEL 8+.

curl -fsSL https://raw.githubusercontent.com/MakPr016/zyguard-releases/main/install.sh | sh

Installs zyguard, zyguard-tui and zyguard-server into ~/.local/bin, after checking the download against the SHA-256 GitHub records for it. You also need the Vulkan loader and a GPU driver: sudo apt install libvulkan1 mesa-vulkan-drivers (Debian/Ubuntu) or sudo dnf install vulkan-loader mesa-vulkan-drivers (Amazon Linux/Fedora); on NVIDIA machines the NVIDIA driver provides Vulkan. Models, keys and logs live in ~/.local/share/zyguard.

The Linux builds start and find their folders on Amazon Linux 2023 and Ubuntu 20.04, but no model has been run on a Linux GPU yet, NVIDIA included. Please report what you see.

A GPU is required on every platform: software Vulkan (Mesa's llvmpipe) is below the engine's minimum buffer size, so CPU-only machines are refused at start-up with that reason.

New: Spark-X2.5-4B in 4-bit (Q4_K_M)

+ Download a model offers Spark-X2.5-4B (Q4_K_M): a 2.6 GB download (8 GB for the Q8 version) that takes 3.3 GB on disk. The weights stay 4-bit on the GPU and run on new Q4_K / Q6_K kernels instead of being converted to Q8. Pick it with --precision q4_k_m, or precision: "q4_k_m" in the server's model settings.

New: smaller KV cache for long contexts (Spark)

The KV cache, which grows with the context size, can now be stored at half or a quarter of its size. Use --kv-dtype f16 or --kv-dtype q8 (CLI, TUI and zyguard launch claude), ZYGUARD_KV_DTYPE, or kv_dtype in the server's engine settings. On the Spark Q4_K_M model (Intel Arc 140V), memory after load is:

context f32 (default) f16 q8
8,200 4.7 GB 3.6 GB 3.0 GB
22,100 8.5 GB 5.5 GB 4.0 GB
65,536 does not fit 11.5 GB (estimate) 7.1 GB

f16 gave the same output as f32 in every test, at the same speed. q8 is slightly lossier but makes a 65k-token context possible. Spark only for now; LFM2 and Gemma 4 keep f32.

Clearer out-of-memory errors

A model that doesn't fit in GPU memory now reports what it needed (weights plus KV cache, and what the other KV cache types would take) and what to try, in the TUI as well as the server, instead of crashing. A crash while generating now shows as an error in the chat, rather than leaving the reply unfinished and the app looking frozen.

Fixes

  • Scoop: scoop update zyguard didn't notice new releases, because all of them are pre-releases. Fixed in the bucket.

Install / upgrade

  • Windows, one command: irm https://raw.githubusercontent.com/MakPr016/zyguard-releases/main/install.ps1 | iex
  • Linux: see above.
  • Scoop: scoop update, then scoop update zyguard (or scoop install zyguard for a fresh install).
  • Installer: zyguard-setup-0.1.0-beta.2.8.exe below.

Zyguard v0.1.0-beta.2.7

Pre-release

Choose a tag to compare

@MakPr016 MakPr016 released this 04 Oct 09:16

Zyguard v0.1.0-beta.2.7

New: one-command install

irm https://raw.githubusercontent.com/MakPr016/zyguard-releases/main/install.ps1 | iex

or from cmd.exe:

curl -fsSL https://raw.githubusercontent.com/MakPr016/zyguard-releases/main/install.ps1 -o "%TEMP%\zyguard-install.ps1" && powershell -NoProfile -ExecutionPolicy Bypass -File "%TEMP%\zyguard-install.ps1"

Installs the newest release to %LOCALAPPDATA%\Programs\zyguard and adds it to your user PATH. The zip is checked against the SHA-256 GitHub records for it before anything is unpacked. Run it again to upgrade. ZYGUARD_VERSION=0.1.0-beta.2.7 pins a release, and ZYGUARD_INSTALL_DIR picks another folder.

New: every supported model in "Download a model"

The TUI's download menu now offers all six supported models, not just two:

Model Download On disk
LFM2.5-350M (recommended) 0.7 GB 1.1 GB
LFM2.5-350M-Thinking 0.7 GB 1.1 GB
LFM2.5-1.2B-Instruct 2.3 GB 3.7 GB
LFM2.5-2.6B 5.4 GB 8.4 GB
Gemma 4 E2B (instruct) 5 GB 5.3 GB
Spark-X2.5-4B 8 GB 5.3 GB

Each is downloaded, converted and loaded automatically. Models already in your models folder are marked installed. Press o on the model list or in the download menu to open the models folder in Explorer.

New: zyguard launch claude

Runs Claude Code against a local model:

zyguard launch claude

It starts zyguard-server if none is running, then lets you pick the model, the precision (Q8 or BF16, where the model has both) and the context size. It shows how much memory each choice needs before loading. Only that Claude Code session is pointed at the local server; no config file or global setting is changed. Claude Code must already be installed.

zyguard-server gains the Anthropic Messages API that this uses: POST /v1/messages (streaming and tool use), POST /v1/messages/count_tokens, GET /v1/models and GET /v1/models/:id.

New models and tools

  • Spark-X2.5-4B (a thinking model) and Gemma 4 E2B run in the TUI, the CLI and the server, with tool calling for both.
  • Tool calling is reorganised into three groups: web (web_search with your own Tavily or Firecrawl key, fetch_url), files (read_file, list_dir, grep, glob, write_file, edit_file) and misc (get_weather, calculator). Long web results are saved in full for the model to search, instead of being cut off. Use zyguard-tui --tools web,files, /tools in the TUI, and zyguard keys set tavily <key>.
  • The default context is now 8192 tokens.

Faster long prompts

Prompt processing (prefill) uses the GPU's matrix units for Spark's and LFM2's matrix multiplies and for Spark and Gemma 4 attention. Measured on an Intel Arc 140V:

Spark-X2.5-4B prompt v0.1.0-beta.2.6 v0.1.0-beta.2.7
2,000 tokens 24 s 5 s
8,000 tokens 173 s 24 s

Follow-up turns in the same conversation reuse the prompt already processed. At a ~3,600-token prompt, a cached turn starts in about 1 s on Spark (8–10 s before) and about 2 s on Gemma 4 (24–29 s before). The cache uses up to 3 GB of memory by default, which the context picker includes in its estimate; set ZYGUARD_PREFIX_CACHE_MB to change it.

Fixes

  • LFM2.5-350M-Thinking: its published tokenizer padded every prompt to 1024 tokens and truncated longer ones at 1024. zyguard now ignores those settings.
  • Gemma 4: tool-call markers such as <|tool_call> were split into several ordinary tokens in prompts. They are now single tokens.

Install / upgrade

  • One command: see above.
  • Scoop: scoop update, then scoop update zyguard (or scoop install zyguard for a fresh install).

Zyguard v0.1.0-beta.2.6

Pre-release

Choose a tag to compare

@MakPr016 MakPr016 released this 30 Sep 10:08

Zyguard v0.1.0-beta.2.6

New: zyguard-server

Zyguard now ships a local HTTP API server, installed alongside zyguard and zyguard-tui. It exposes the same inference engine through a REST API, so other tools and apps can load models and generate text without going through the terminal.

scoop update
scoop update zyguard
zyguard-server

API overview

Health

  • GET /health: check that the service is up.

Model management

  • GET /models: list all available models.
  • GET /models/:id: get details for a specific model.
  • POST /models/:id/load: load a model into memory and make it the active model.
  • POST /models/:id/unload: unload the active model to free up resources.

Inference

  • POST /generate: send a prompt to the active model and get a generated response.
    • 200: generation succeeded.
    • 409: no model is active. Load one first.
    • 422: the request failed validation.

Settings

  • GET /settings: get the current runtime configuration.
  • PATCH /settings: update runtime settings. If a change requires reloading the model, the server returns 409 MODEL_RELOAD_REQUIRED. Reload the model, then apply the change again.

Full request and response examples are in the Postman docs: https://documenter.getpostman.com/view/41642003/2sBYB4M7Js

Notes

  • The server is in beta. Endpoints and response shapes may change between releases.
  • Only one model is active at a time. /generate always uses the currently loaded model.

Install / upgrade

  • Scoop: scoop update then scoop update zyguard (or scoop install zyguard for a fresh install)

Zyguard v0.1.0-beta.2

Zyguard v0.1.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@MakPr016 MakPr016 released this 27 Sep 17:02

v0.1.0-beta.2

Diagnostic release. This does not fix a known issue — it exists so the issue can be diagnosed.

Known issue being investigated

On some machines, zyguard-tui exits immediately and silently on launch — no error, no message — even though zyguard check reports the GPU as fully supported on the same machine. This release doesn't fix that yet; it adds the instrumentation needed to find out why.

Changed

  • Crash logging: both zyguard and zyguard-tui now write any panic (message, location, and backtrace) to %LOCALAPPDATA%\zyguard\crash.log, in addition to printing it to the console as before. This exists because a packaged build's console window can close the instant the process exits, and a panic on a background thread can be painted over the TUI's alternate screen — either way, the message never reaches the user. Writing to disk survives both.
  • Larger stack for the GPU pre-flight/model-load thread (16 MiB, up from the default): a defensive change in case an unusual Vulkan driver's deep call chain was overflowing the background thread's stack, which would abort the process before any error-handling code ever runs.

If you're hitting the silent-crash issue

Please update and try again:

scoop update zyguard

Zyguard v0.1.0-beta.1

Zyguard v0.1.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@MakPr016 MakPr016 released this 27 Sep 10:56

First public beta of Zyguard — a from-scratch Rust/wgpu/Vulkan LLM inference
engine and terminal UI for LFM2.5 models, with hand-written GPU kernels
validated against an Intel Arc 140V integrated GPU.

This is a beta: functional and tested end-to-end, but with a few
specific gaps called out honestly below rather than glossed over.

Install

  • Windows installer: download zyguard-setup-0.1.0-beta.1.exe below and run it
  • Scoop: scoop bucket add zyguard https://github.com/MakPr016/Zyguard then scoop install zyguard
  • Cargo: cargo install zyguard --version 0.1.0-beta.1 (pre-release versions aren't installed by a bare cargo install zyguard)
  • winget: public submission is pending; for now, winget install --manifest <path-to-a-local-clone>/packaging/winget works

Highlights

  • TUI with a model picker, loading screen, and live RAM/GPU resource graphs
  • A GPU pre-flight check runs before any model loads, reporting missing requirements up front instead of failing deep inside a kernel
  • A first-run "Download a model" flow built into the TUI — no manual hf download + quantize step required
  • Models now live in one shared, per-user location (%LOCALAPPDATA%\zyguard\models), available to every project instead of being re-downloaded or copied per directory
  • Tool-calling loop with 5 tools (get_weather, add_numbers, fetch_url, sandboxed read_file/write_file), sandboxed to your current working directory by default
  • Downloaded model files are verified against the Hub's own hashes, not just file size
  • Tiled Q8_0 prefill GEMMs and resumable tool-loop generation

Known limitations

  • Subgroup widths ≥64 lanes are fixed but unverified on real hardware — validated via a same-shape proxy test on 32- and 4-lane hardware, not a true 64-lane GPU
  • No real interactive-terminal visual pass yet on the device-check screen, sidebar wordmark, or model-download progress screen — all unit/render-tested, never watched running end to end
  • Cross-volume model migration (e.g. app and model cache on different drives) is verified against a simulated filesystem error, not two real physical volumes
  • The 2.6B model download, and a genuine live network interruption mid-download, are tested against fakes and a local test server — not the real Hugging Face Hub under real bad network conditions

If you hit any of these, or anything else, please open an issue — that's
exactly what this beta is for.