Spaces:
Running on Zero
Running on Zero
serve mini-beatrix-3, the mission running now: 376M over 32 blocks, mid-pretraining, so no conversation frame and no arms and Completion is the honest view. Held in bfloat16, the dtype its checkpoints are saved in and built straight into it: the first attempt held all three crafts in fp32 and the replica never left APP_STARTING
Browse files
README.md
CHANGED
|
@@ -9,16 +9,17 @@ python_version: '3.12'
|
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: mit
|
| 12 |
-
short_description:
|
| 13 |
models:
|
| 14 |
- AbstractPhil/mini-beatrix-2.5s
|
|
|
|
| 15 |
- AbstractPhil/alephllm-mini-beatrix-training
|
| 16 |
---
|
| 17 |
|
| 18 |
# Beatrix — AlephLLM chat
|
| 19 |
|
| 20 |
-
|
| 21 |
-
Pick the **Craft** first; everything below it follows.
|
| 22 |
|
| 23 |
**mini-beatrix-1** — 112.5M parameters, pretrained on 15.3 billion raw
|
| 24 |
bytes, serving with a **library of detachable arms**: small aleph
|
|
@@ -33,6 +34,14 @@ stacks, routed dispatches and recurrent arms, each labelled with its
|
|
| 33 |
measured score and how settled it is — and opens on the best-measured
|
| 34 |
one.
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
**Take it home — mini-beatrix-2.5s.** The arms marked 📦 in the picker
|
| 37 |
ship with this exact 2s core, bit for bit, as
|
| 38 |
[mini-beatrix-2.5s](https://huggingface.co/AbstractPhil/mini-beatrix-2.5s):
|
|
|
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: mit
|
| 12 |
+
short_description: Three byte-level AlephLLM crafts and their arms
|
| 13 |
models:
|
| 14 |
- AbstractPhil/mini-beatrix-2.5s
|
| 15 |
+
- AbstractPhil/mini-beatrix-3
|
| 16 |
- AbstractPhil/alephllm-mini-beatrix-training
|
| 17 |
---
|
| 18 |
|
| 19 |
# Beatrix — AlephLLM chat
|
| 20 |
|
| 21 |
+
Three generations of the same byte-level architecture, served side by
|
| 22 |
+
side. Pick the **Craft** first; everything below it follows.
|
| 23 |
|
| 24 |
**mini-beatrix-1** — 112.5M parameters, pretrained on 15.3 billion raw
|
| 25 |
bytes, serving with a **library of detachable arms**: small aleph
|
|
|
|
| 34 |
measured score and how settled it is — and opens on the best-measured
|
| 35 |
one.
|
| 36 |
|
| 37 |
+
**mini-beatrix-3** — 376M parameters over 32 blocks: the same governed
|
| 38 |
+
full-splat hub, deeper, and **the mission that is running right now**. It
|
| 39 |
+
is unfinished — mid-pretraining, with nine curriculum stages and both
|
| 40 |
+
anneals still to come — so it has no conversation frame and no arms.
|
| 41 |
+
Use **Completion**: it continues text, it does not take turns. You are
|
| 42 |
+
looking at a craft while it is still being made, as it stood when this
|
| 43 |
+
Space last started.
|
| 44 |
+
|
| 45 |
**Take it home — mini-beatrix-2.5s.** The arms marked 📦 in the picker
|
| 46 |
ship with this exact 2s core, bit for bit, as
|
| 47 |
[mini-beatrix-2.5s](https://huggingface.co/AbstractPhil/mini-beatrix-2.5s):
|
app.py
CHANGED
|
@@ -17,6 +17,12 @@ own config, its own byte format, and its own arm library:
|
|
| 17 |
routed dispatches, recurrent arms); arm_mount.py
|
| 18 |
attaches any of them and detaches back to the bare
|
| 19 |
core, and arms_catalog.json describes each one.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
Crafts are discovered from the repo at boot: a craft with no manifest or
|
| 22 |
no checkpoint is skipped, and one that starts shipping appears on its
|
|
@@ -97,9 +103,17 @@ GEN_BUDGET_S = 95.0
|
|
| 97 |
# the detach exhibit: a core that does NOT chat plus a 3.2M arm that
|
| 98 |
# makes it chat, removable bit-for-bit. Both crafts READ the arm index;
|
| 99 |
# 2s also reads arms_catalog.json, which overlays it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
CRAFTS = [
|
| 101 |
{"name": "mini-beatrix-1", "fmt": "v1tags", "wants_arms": True},
|
| 102 |
{"name": "mini-beatrix-2s", "fmt": "specials", "wants_arms": True},
|
|
|
|
|
|
|
| 103 |
]
|
| 104 |
DEFAULT_CRAFT = "mini-beatrix-2s" # the completed mission leads
|
| 105 |
|
|
@@ -426,6 +440,11 @@ class Craft:
|
|
| 426 |
self.bpb_at[s] = first_seen.setdefault(round(float(v), 12), s)
|
| 427 |
self.phases = manifest.get("phases", [])
|
| 428 |
self.tokens_seen = manifest.get("tokens_seen", 0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 429 |
# Has the craft been through the phase that TEACHES its chat
|
| 430 |
# frame? Read from the manifest, never assumed — so this flips
|
| 431 |
# by itself the day the anneal phase completes.
|
|
@@ -491,7 +510,23 @@ class Craft:
|
|
| 491 |
# below) — 450MB for v1 and 948MB for 2s, per craft, per cold
|
| 492 |
# boot, on a Space with a history of hanging in APP_STARTING.
|
| 493 |
sd = load_file(hf_hub_download(REPO, self.cores[self.step]))
|
| 494 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 495 |
self.model.load_state_dict(sd)
|
| 496 |
self.model.eval()
|
| 497 |
self.core_params = self.model.param_count()
|
|
@@ -784,6 +819,13 @@ def status_md(craft, step, arm_path=CORE_ONLY):
|
|
| 784 |
"reached the anneal that teaches its conversation frame — Chat "
|
| 785 |
"will read as off-distribution. **Completion** is the honest "
|
| 786 |
"view of what she can do today."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 787 |
if c.fmt == "specials" and not c.frame_trained else ""),
|
| 788 |
# the craft finished its chat anneal but THIS checkpoint predates
|
| 789 |
# it: the pre-chat baseline continues documents rather than
|
|
@@ -1340,7 +1382,7 @@ TITLE = "# Beatrix — byte-level AlephLLMs you can talk to"
|
|
| 1340 |
# it pushes the tabs and controls out of reach whenever the resize lags.
|
| 1341 |
# Everything explanatory lives in a closed accordion for that reason.
|
| 1342 |
DESCRIPTION = """
|
| 1343 |
-
|
| 1344 |
**Craft** first — everything below it follows.
|
| 1345 |
|
| 1346 |
**mini-beatrix-2s** — 237.1M parameters, **full splat**: the signed
|
|
@@ -1385,6 +1427,16 @@ The library here is the wider surface — 73 rows including the refuted
|
|
| 1385 |
and control ones that exist to be disprovable. The package is the
|
| 1386 |
settled subset, carrying each arm's measured numbers with it.
|
| 1387 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1388 |
**mini-beatrix-1** — 112.5M parameters, pretrained on 15.3 billion raw
|
| 1389 |
bytes, carrying a **library of detachable arms**: small adapters
|
| 1390 |
(3.2M–5.3M parameters) each trained on one exact frozen core. Pick a
|
|
|
|
| 17 |
routed dispatches, recurrent arms); arm_mount.py
|
| 18 |
attaches any of them and detaches back to the bare
|
| 19 |
core, and arms_catalog.json describes each one.
|
| 20 |
+
mini-beatrix-3 376.0M · 32 blocks of the same governed full-splat hub
|
| 21 |
+
· THE MISSION RUNNING NOW. Mid-pretraining, with the
|
| 22 |
+
curriculum and both anneals still ahead, so it has no
|
| 23 |
+
conversation frame and no arms yet: Completion is the
|
| 24 |
+
honest view of it. Its checkpoint list is whatever the
|
| 25 |
+
run had shipped when this Space last started.
|
| 26 |
|
| 27 |
Crafts are discovered from the repo at boot: a craft with no manifest or
|
| 28 |
no checkpoint is skipped, and one that starts shipping appears on its
|
|
|
|
| 103 |
# the detach exhibit: a core that does NOT chat plus a 3.2M arm that
|
| 104 |
# makes it chat, removable bit-for-bit. Both crafts READ the arm index;
|
| 105 |
# 2s also reads arms_catalog.json, which overlays it.
|
| 106 |
+
# mini-beatrix-3 is the mission RUNNING NOW: 376M, 32 blocks, the same
|
| 107 |
+
# governed full-splat hub at depth. It is mid-pretraining — nine
|
| 108 |
+
# curriculum stages and both anneals still ahead — so it has never seen a
|
| 109 |
+
# conversation frame and the status panel says so on its own (the
|
| 110 |
+
# still-pretraining branch below is manifest-driven, not hardcoded).
|
| 111 |
+
# Completion is the honest view of it. No arms exist on it yet.
|
| 112 |
CRAFTS = [
|
| 113 |
{"name": "mini-beatrix-1", "fmt": "v1tags", "wants_arms": True},
|
| 114 |
{"name": "mini-beatrix-2s", "fmt": "specials", "wants_arms": True},
|
| 115 |
+
{"name": "mini-beatrix-3", "fmt": "specials", "wants_arms": False,
|
| 116 |
+
"dtype": "bfloat16"},
|
| 117 |
]
|
| 118 |
DEFAULT_CRAFT = "mini-beatrix-2s" # the completed mission leads
|
| 119 |
|
|
|
|
| 440 |
self.bpb_at[s] = first_seen.setdefault(round(float(v), 12), s)
|
| 441 |
self.phases = manifest.get("phases", [])
|
| 442 |
self.tokens_seen = manifest.get("tokens_seen", 0)
|
| 443 |
+
# When the training side last wrote this manifest. The Space reads
|
| 444 |
+
# the repo ONCE at start, so for a craft still training this is
|
| 445 |
+
# the age of everything shown about it — said out loud rather than
|
| 446 |
+
# left for a visitor to assume it is live.
|
| 447 |
+
self.updated_utc = manifest.get("updated_utc") or ""
|
| 448 |
# Has the craft been through the phase that TEACHES its chat
|
| 449 |
# frame? Read from the manifest, never assumed — so this flips
|
| 450 |
# by itself the day the anneal phase completes.
|
|
|
|
| 510 |
# below) — 450MB for v1 and 948MB for 2s, per craft, per cold
|
| 511 |
# boot, on a Space with a history of hanging in APP_STARTING.
|
| 512 |
sd = load_file(hf_hub_download(REPO, self.cores[self.step]))
|
| 513 |
+
# A craft may ask to be held in the dtype its checkpoints were
|
| 514 |
+
# SAVED in. Boot cost is what forces this: the first attempt to
|
| 515 |
+
# add a third craft held all three in fp32 and the replica never
|
| 516 |
+
# left APP_STARTING in 40 minutes across two boots, while the
|
| 517 |
+
# two-craft build comes up in 60 seconds. Building straight into
|
| 518 |
+
# the target dtype (rather than fp32-then-cast) also keeps the
|
| 519 |
+
# transient copy out of the boot's peak.
|
| 520 |
+
self.dtype = getattr(torch, spec.get("dtype", "float32"))
|
| 521 |
+
if self.dtype is torch.float32:
|
| 522 |
+
self.model = AlephLM(self.cfg)
|
| 523 |
+
else:
|
| 524 |
+
_prev = torch.get_default_dtype()
|
| 525 |
+
torch.set_default_dtype(self.dtype)
|
| 526 |
+
try:
|
| 527 |
+
self.model = AlephLM(self.cfg)
|
| 528 |
+
finally:
|
| 529 |
+
torch.set_default_dtype(_prev)
|
| 530 |
self.model.load_state_dict(sd)
|
| 531 |
self.model.eval()
|
| 532 |
self.core_params = self.model.param_count()
|
|
|
|
| 819 |
"reached the anneal that teaches its conversation frame — Chat "
|
| 820 |
"will read as off-distribution. **Completion** is the honest "
|
| 821 |
"view of what she can do today."
|
| 822 |
+
+ (" Served in bfloat16, the dtype its checkpoints are saved in."
|
| 823 |
+
if getattr(c, "dtype", None) is not None
|
| 824 |
+
and c.dtype is not torch.float32 else "")
|
| 825 |
+
+ (f" Checkpoints and progress were read when this Space started"
|
| 826 |
+
f", from a manifest written {c.updated_utc}; the run has moved "
|
| 827 |
+
"on since, and a restart picks up what it shipped."
|
| 828 |
+
if c.updated_utc else "")
|
| 829 |
if c.fmt == "specials" and not c.frame_trained else ""),
|
| 830 |
# the craft finished its chat anneal but THIS checkpoint predates
|
| 831 |
# it: the pre-chat baseline continues documents rather than
|
|
|
|
| 1382 |
# it pushes the tabs and controls out of reach whenever the resize lags.
|
| 1383 |
# Everything explanatory lives in a closed accordion for that reason.
|
| 1384 |
DESCRIPTION = """
|
| 1385 |
+
Three generations of the same architecture, served side by side. Pick the
|
| 1386 |
**Craft** first — everything below it follows.
|
| 1387 |
|
| 1388 |
**mini-beatrix-2s** — 237.1M parameters, **full splat**: the signed
|
|
|
|
| 1427 |
and control ones that exist to be disprovable. The package is the
|
| 1428 |
settled subset, carrying each arm's measured numbers with it.
|
| 1429 |
|
| 1430 |
+
**mini-beatrix-3 — the mission running now.** 376M parameters over 32
|
| 1431 |
+
blocks: the same governed full-splat hub, deeper. It is **mid-pretraining
|
| 1432 |
+
and unfinished**, with nine curriculum stages and both anneals still
|
| 1433 |
+
ahead, so it has never seen a conversation frame and has no arms yet. Do
|
| 1434 |
+
not ask it to chat; use **Completion** and watch it continue text. What
|
| 1435 |
+
you get is the run as it stood when this Space last started, not a
|
| 1436 |
+
finished model — the point is to look at a craft while it is still being
|
| 1437 |
+
made. Its held-out reading has already passed the finished 2s core, which
|
| 1438 |
+
is what depth was supposed to buy.
|
| 1439 |
+
|
| 1440 |
**mini-beatrix-1** — 112.5M parameters, pretrained on 15.3 billion raw
|
| 1441 |
bytes, carrying a **library of detachable arms**: small adapters
|
| 1442 |
(3.2M–5.3M parameters) each trained on one exact frozen core. Pick a
|