madewithlaya

Catalog / Tools & apps

0095GitHub

Laya vs Jev Arena: a Snake race and a Mortal-Kombat-style fight, nothing scripted

From the Prompt Engineer 48 video. Both models get the same input and typed questions; only the model differs. Laya needs no key.

Open source ↗ github.comcostfree, local (Laya)time-
PromptEngineer48/laya-vs-jev-arenaREADME ↗
# Laya vs Jev — AI vs AI Arena

Two AI models go head to head in a **snake race** and a **Mortal-Kombat-style fight**.
Every move is a real decision from the model — nothing is scripted.

- **Laya** — open source, Apache 2.0, runs **locally** on your machine · [GitHub](https://github.com/NandhaKishorM/laya) · [Hugging Face](https://huggingface.co/convaiinnovations/laya)
- **Jev** — TypeSafe's closed model, runs over their **API** · [announcement](https://typesafe.ai/blog/introducing-system-one-models-and-jev)

Both take the same input and answer the same typed questions, so the only thing that
changes between the two sides is the model. From the **Prompt Engineer 48** YouTube video.

---

## Quickstart

**You need:** Python 3.10+, a browser, and (for Jev) a TypeSafe API key from
[console.typesafe.ai](https://console.typesafe.ai). Laya needs no key.

```bash
git clone https://github.com/PromptEngineer48/laya-vs-jev-arena.git
cd laya-vs-jev-arena
pip install -r requirements.txt
```

Add your Jev key:

```bash
cp .env.example .env          # Windows: copy .env.example .env
```

Open `.env` and paste your key after `TYPESAFE_API_KEY=`.

Start the server:

```bash
python server.py 8740
```

Then open:

| | |
|---|---|
| Front page | http://localhost:8740/ |
| Snake race | http://localhost:8740/snake/ |
| Kombat | http://localhost:8740/fight/ |

Pick a model for each side from the dropdowns and hit **Start race** / **Fight**.

### Good to know

- **The first Laya call takes ~30–60 s** — it downloads and loads the checkpoints once.
  That happens during "Priming…", before the clock starts.
- **Keep the tab in the foreground.** Browsers throttle background tabs, and the game only
  advances while the page is drawing.
- **No key?** Set both sides to Laya — or play yourself with 

Also filed under Tools & apps

  1. 0005

    laya-mlx plays Snake at 60 decisions per second

    介绍比Jev快50倍,在你设备上跑的laya-mlx! 只在你的设备上占用最高1G内存 Laya是一个开源的类似于Jev的,基于文本输出概率的分类系统 我将其移植到MLX,并且做了一些性能优化! 视频中就是这个模型在我的本地M3Max上玩贪吃蛇 这个模型能够以每秒决策60次的速度玩贪吃蛇! https://t.co/31KGUiNunb

    @mizorewww · Tools & apps · free, local · 60 decisions/s

  2. 0112

    Laya on Axera AX650 and AX8850 edge NPUs, under 70 ms

    AXERA-TECH's conversion of all three Laya checkpoints for its edge AI chips, reported at latency under 70 ms per decision on AX650/AX8850.

    AXERA-TECH · Tools & apps · free, on-device · < 70 ms on AX650 / AX8850

  3. 0099

    laya-mcp (PerryLink): a warm sidecar that fixes Laya's silent truncation and constant noul

    MCP server plus HTTP sidecar: token-budget preflight that reports what would be cut, a persisted calibration store, structured errors, and a noul fix (P(true) 0.5 → 1.0).

    @PerryLink · Tools & apps · free, local

  4. 0097

    Gomoku against Laya-MLX: you play black, the model picks white's move from six candidates

    Local 15x15 Gomoku on Apple Silicon. Rules in Python, board in the browser, every AI move one real Laya choice over up to six candidates, probabilities shown. No Gomoku training.

    smile-magic · Tools & apps · free, local