Views
No views yet
effect@4.0.0-beta.80) TypeScript. Built $0-local on a single Apple M5 Max (48 GB):
continued-pretraining → instruction SFT (LoRA), fused into the base, then converted to GGUF for
portable CPU/GPU inference with llama.cpp. Same champion weights (v7s43_i200) as the
MLX release — this repo is the portable
GGUF build.Why this exists:effect@4.0.0-beta.80is a beta that postdates the pretraining of essentially every LLM — its exact API surface is absent from base models, so they hallucinate v3-isms. That sparsity is the whole point: this is a small, honest domain expert for a library the big models haven't seen.
Honest framing first. These are the fine-tuned weights. On a frozen, real-tsc --strictcompile gate (24 held-out tasks) they are a genuine but limited expert: single-greedy + RAG ≈ 9.7/24 mean (best checkpoint 13/24). The headline ~23/24 number is the full serving pipeline (best-of-16 sampling + retrieval + a deterministic import-resolver + atscverifier), not the bare weights — see How to actually get 23/24. Treat this as a research artifact, strongest when paired with retrieval and a compiler-in-the-loop.
mlx-community/Qwen3.6-35B-A3B-4bit — the text tower of the Qwen3.6 hybrid GatedDeltaNet MoE
(qwen3_5_moe, 35.9B total / ~3B active). Vision tower dropped (text code model).v7s43_i200): CPT on a curated Effect-v4 source corpus (effect-smol,
EffectPatterns, examples) → instruction SFT (rank-8 LoRA, 423 gate-validated instruction→code pairs,
every target compiled under the exact tsc gate).llama.cpp (mainline). Verified to generate coherent Effect TypeScript on a raw greedy
CPU smoke test before release.Conversion note (GatedDeltaNet + MoE): converting this hybrid arch from MLX-origin weights required one non-obvious fix — mlx-lm bakes the+1zero-centered-RMSNorm shift into its saved norm weights, andconvert_hf_to_gguf.pyadds+1again, so the norms must be un-shifted before conversion or every layer is double-shifted into garbage. With that corrected, the GGUF matches the MLX model's behavior. (The earlier…-v3-ggufrepo predates this fix and is broken — use this repo instead.)
| file | quant | size | notes |
|---|---|---|---|
effect-qwen36-35b-champion-q4_k_m.gguf | Q4_K_M | ~20 GB | recommended default — small, fast, smoke-verified |
effect-qwen36-35b-champion-q8_0.gguf | Q8_0 | ~36 GB | near-lossless, for max fidelity |
tsc --strict, frozen 24-task held-out benchmark)| config | compile@24 |
|---|---|
| base model (no fine-tune) | 3 / 24 |
| this model, single-greedy + RAG (flat mean) | 9.67 / 24 |
| this model, best checkpoint single point | 13 / 24 |
serve/serve.py) wraps these weights with:tsc is a perfect verifier; keep any sample that compiles,TS2307/TS2304 namespace imports),tsc-feedback repair.1# build/download llama.cpp, then:
2
3# one-shot raw completion
4llama-completion -m effect-qwen36-35b-champion-q4_k_m.gguf -no-cnv -n 256 --temp 0 \
5 -p 'import { Effect } from "effect"'
6
7# chat (Qwen chat template is embedded in the GGUF)
8llama-cli -m effect-qwen36-35b-champion-q4_k_m.gguf \
9 -p 'Write Effect v4 code: a Schema.Struct for a User with a branded UserId.'
10
11# OpenAI-compatible server
12llama-server -m effect-qwen36-35b-champion-q4_k_m.gguf --port 8080tsc.tsc gate.effect@4.0.0-beta.80 only; later betas may shift APIs.jrad123777/effect-qwen36-35b-v3-gguf (an earlier, weaker checkpoint from a broken pipeline)..d.ts with tsc as the only arbiter, and
documented honestly.