Views
No views yet
effect@4.0.0-beta.8x, effect/unstable/*). Built
$0-local on a single Apple M5 Max (48 GB). It is the React half of a dual-LoRA library that shares ONE
base with the Effect "write" LoRA — the two are hot-swapped in-process behind one server.Architecture it bakes in: Contract = EffectSchema· Logic = Effect · View = React (NO business logic in.tsx) · typed errors carried across the server-fn boundary as aSchemadiscriminated union (pattern A) or reconstructed client-side viaeffect/unstable/rpc(pattern B). It writes idiomatic v4 seam code:Context.Service(notContext.Tag),Result(notEither),queryOptions/mutationOptions,useMutation().isPending(v5),Schema.TaggedErrorClassfor RPC contract errors — nothrowacross boundaries.
Honest framing. This is a rank-8 adapter (apply unfused on the base), not a fused model. The headline numbers below are the served PRODUCT (best-of-N sampling + a realtsc --strictgate with the Mantine/TanStack/Effect type roots), not bare greedy weights —tscis the only arbiter. The win is concentrated where it matters: the seam, which the base model gets wrong.
mlx-community/Qwen3.6-35B-A3B-4bit (qwen3_5_moe, 35.9B total / ~3B active).react_v1s42_i100): rank-8 LoRA (seed 42, the val-minimum checkpoint), warm-started from the
shared CPT base, SFT on 94 tsc+LSP-gated pairs (38 react-view + 56 seam) covering all 11 seam topics.adapter_config.json + adapters.safetensors, the 408-tensor delta).
Apply it unfused with mlx_lm.tsc)eval/tasks_heldout_react.jsonl, 11 react-view + 15 seam) is frozen; each task is
routed to the gate it must pass (react-view → React+Mantine JSX gate; seam → Effect+TanStack+Mantine gate).
The same prompts are used for the base and the adapter, so any delta is the adapter's baked-in idioms.| config | compiled @ 26 | compiled+rubric @ 26 |
|---|---|---|
| base model (no adapter) | 13 / 26 | 8 / 26 |
this adapter (react_v1s42_i100) | 24 / 26 | 15 / 26 |
serve/serve.py in the training repo) routes by intent: seam / react → this
adapter; Effect business-logic / edits → the Effect "write" champion — both LoRAs on one resident base,
hot-swapped in-process (a load_weights weight-overwrite; the two adapters share an identical tensor
namespace). Each request is best-of-N sampled and kept only if it passes the lane's real tsc gate.1pip install mlx-lm
2python -c "
3from mlx_lm import load, generate
4# apply the adapter unfused on the base
5model, tok = load('mlx-community/Qwen3.6-35B-A3B-4bit', adapter_path='./')
6prompt = 'Write a TanStack queryOptions factory userQuery(id) that fetches a User via a createServerFn running an Effect, returning a Result discriminated union. Output one tsx block.'
7msgs = [{'role':'user','content':prompt}]
8text = tok.apply_chat_template(msgs, add_generation_prompt=True, enable_thinking=False)
9print(generate(model, tok, text, max_tokens=640, verbose=True))
10"tsc --strict against your
React/Mantine/TanStack/Effect type roots — that is the served product, not bare greedy.effect@4.0.0-beta.8x + Mantine v9 + TanStack Query v5 / Start + React 19; other versions may drift..tsx.enable_thinking=False); it's a direct code generator.jrad123777/effect-qwen36-35b-write-lora)..d.ts with tsc --strict as the only
arbiter, and documented honestly.