Index of every page on this site: llms.txt
All skills
Run it yourself

Local, free, offline typed decisions with the Laya model on Windows/Linux (PyTorch, CUDA or CPU). Use when a workflow needs a fast yes/no judgment, a pick-one-of-N choice, or an ordinal score over some text — routing, classification, triage, gating, comment/ad moderation — and a local model is preferred over an API (no credits, no network after first download). Not for open-ended writing, long reasoning, or exact lookups.

  • 24 files
  • 1.6 MB
  • Updated 2 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/astrodevit-creator/laya-windows/laya-windows

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈111 tokens for metadata: the name and description. ≈455 when used: this file. ≈27k more on demand in 5 files.

Description uses 5.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈432 characters, or 5.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Laya (Windows port)

Powered by www.huggehub.com.

Project: <path-to>/laya-windows (port of github.com/mizorewww/laya-coreml, which is macOS-only). Weights: convaiinnovations/laya-multilingual (pinned revision, cached in ~/.cache/huggingface). Verified against upstream golden outputs: 16/16 cases, max logit diff ~2e-5 (tests/parity.py).

Run

<path-to>/laya-windows/.venv/Scripts/laya.exe --offline \
  --state "text to judge" \
  --questions '{"refund":{"type":"noul","instructions":"Does the customer ask for money back?"}}'
  • --questions: a JSON file path or an inline JSON string.
  • --state-file path or --state - (stdin) for long text. State may be a JSON object too.
  • --device cpu|cuda (default cuda). Load ~3 s, then ~30 ms per call on GPU.
  • For many items, use Python once instead of the CLI per item: from laya_windows import load; agent = load(local_files_only=True); agent.predict(state, questions) with <path-to>/laya-windows/.venv/Scripts/python.exe.

Question types

type criteria answer fields
choice list of labels, or {label: description} choice, probabilities, confidence
score list of level descriptions (index = score) score (expected value), probabilities
noul (yes/no) optional {"false": "...", "true": "..."} noul = P(true), confidence

Max input is 512 tokens (question + options + state); longer state is truncated.

Rules

  • Treat confidence < ~0.7 as uncertain: escalate to a stronger model or the user instead of acting.
  • It's a small classifier, not a policy engine: never use it as the only gate for spending money, deleting, or publishing.
  • A RuntimeWarning about clamped temperatures at load is expected (upstream calibration fix).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at e091f9b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago

README badge

README badge for astrodevit-creator/laya-windows