Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

jasontitus/dsv41-loop-eval

Machine LearningModel research

Evaluate a Looped DeepSeek-V4.1 reasoning adapter on Apple Silicon or NVIDIA CUDA setups.

159
16
Python
MIT
3 days old
+20 stars in 24h

What this is

This repository is an evaluation and installation kit for a Looped Reasoning adapter (R5-A@300) on the deepseek-ai/DeepSeek-V4.1-Flash-1017 model. The adapter is small — about 35.4M parameters, roughly 135 MiB in FP32 or 71 MB in BF16 — and loops 12 middle layers (L24–35) with coda layers L36–39. Its weights are published on Hugging Face under sliderforthewin/Looped-DeepSeek-V4.1-Flash (model weights).

The kit covers two inference stacks: sushi for Apple Silicon Macs with streaming of routed experts and Engram tables from NVMe (sushi, its Looped support PR), and vLLM on NVIDIA CUDA via a drop-in dsv41_loop plugin (vLLM). It is aimed at people who already have the base DeepSeek-V4.1-Flash weights and high-end hardware and want to benchmark the looped variant on LiveCodeBench v6.

Install on Apple Silicon

The Mac installer reuses existing STQ-1.75bpw or STQ-2.7bpw packs if present and otherwise fetches weights; you can point it at an external SSD with STQ_PACK_DIR. The command form given is:

curl -fsSL https://raw.githubusercontent.com/jasontitus/dsv41-loop-eval/main/install_mac.sh | bash

With a custom pack directory:

STQ_PACK_DIR=/Volumes/<YourDrive>/dsv41-stq curl -fsSL https://raw.githubusercontent.com/jasontitus/dsv41-loop-eval/main/install_mac.sh | bash

Disk needs are about 330 GiB on NVMe for the 1.75-bpw pack or about 450 GiB for 2.7-bpw. The installer uses sushi's LoadPlanner to fit free RAM and the Metal GPU limit and disables vision below 96 GB (installer).

Install on NVIDIA CUDA

Start inside a Python environment with vLLM >= 0.34.1rc1 installed from the nightly wheels, then run the CUDA installer, which downloads a ~250 MB adapter archive, registers dsv41_loop, and launches a serve command on :8000/v1:

uv pip install --pre vllm --extra-index-url https://wheels.vllm.ai/nightly
curl -fsSL https://raw.githubusercontent.com/jasontitus/dsv41-loop-eval/main/install_cuda.sh | bash

A fresh base-model download occupies roughly 500 GiB on disk; cached snapshots are reused (installer, vLLM nightly wheels).

Run the benchmarks

Download the evaluation kit and unpack it:

curl -fL https://github.com/jasontitus/dsv41-loop-eval/releases/latest/download/dsv41-loop-friend-eval-kit.tar.gz | tar xz
cd dsv41-loop-friend-eval-kit

On a Mac, run the 4-problem smoke set first, then loops 2 and 3 across the 33 LiveCodeBench v6 problems:

./run_friend_eval 2 --suite smoke4
./run_friend_eval 2-3

On a Ray-joined DGX Spark cluster, use ./run_sparks_vllm_cluster.sh 2-3, or pass --sparks <ip,...> to bootstrap raw SSH-reachable nodes (evaluation kit, problem splits).

Constraints

  • Apple Silicon path expects macOS 26.2+ and recommends 64 GB+ unified memory; 48 GB is described as experimental.
  • CUDA path needs 4× GPUs of at least 94 GB, 8× 80 GB H100s, or merged DGX Sparks, and vLLM 0.34.1rc1 or newer.
  • Most users cannot run this locally: the base model is hundreds of GiB and the adapter is only a small add-on.
  • Both installers pipe remote scripts directly into a shell; review them before running.
  • The code is MIT-licensed, but the base model and adapter weights carry their own terms from their publishers.

HotRepo's take

The repository appeared on the new-project list on 2026-12-03 and gained a few stars in a short window, reaching 109 stars and 13 forks. That activity is thin and recent, so it does not establish reliability or broad adoption. The project's value depends on the quality of the loop adapter and of the two engine integrations; the README documents hardware, disk and model requirements in unusual detail, which makes the setup reproducible for someone with the listed hardware, but the evaluation results themselves are not summarized here.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. eelbaz/Recursive-Self-Improving-LoopersEdits loop-control weights in looped MoE transformers to stabilize multi-pass inference and self-improve without backprop.Python131
  2. jasontitus/loopedqwenRecurrent-loop adapter and serving plugins that make Qwen3.8-27B reason in fewer visible tokens on Mac and CUDA GPUs.Python107
  3. Vaibhaav-Tiwari/deepseek-v3-jaxA 190-line pure-JAX reimplementation of the DeepSeek-V3 architecture, trainable and runnable on a MacBook Air.Python109
  4. tobi/dgx-station-autoresearchRust + CUDA LLM inference engine specialized for one NVIDIA DGX Station GB300 machine.Rust103
  5. deepseek-ai/DeepInferServes DeepSeek's own inference stack to teams running DeepSeek-V4.1-Flash at production scale on NVIDIA or Ascend hardware.Python21,703