Text Generation
Transformers
Safetensors
mini-beatrix
byte-level
tokenizer-free
aleph
signed-address
custom_code
Instructions to use AbstractPhil/mini-beatrix-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AbstractPhil/mini-beatrix-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AbstractPhil/mini-beatrix-1", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("AbstractPhil/mini-beatrix-1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AbstractPhil/mini-beatrix-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AbstractPhil/mini-beatrix-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AbstractPhil/mini-beatrix-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AbstractPhil/mini-beatrix-1
- SGLang
How to use AbstractPhil/mini-beatrix-1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "AbstractPhil/mini-beatrix-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AbstractPhil/mini-beatrix-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "AbstractPhil/mini-beatrix-1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AbstractPhil/mini-beatrix-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AbstractPhil/mini-beatrix-1 with Docker Model Runner:
docker model run hf.co/AbstractPhil/mini-beatrix-1
Commit History
-
Licence: weights CC BY-NC-SA 4.0 (non-commercial); code, design and training process MIT
Verified signaturee35f907 -
vendored code: comment-only cleanup (alephllm 0.10.8); AST-identical, no behaviour change
Verified signatured47859f
-
load under transformers' remote-code loader: defer the imports it cannot resolve
Verified signatureThe loader resolves every relative import to a FLAT file beside the module, whatever the nesting. Three `from .fusion import ...` sites in alephlm.py and one `from .data.curriculum import ...` in presets.py therefore made it demand fusion.py and data.curriculum.py in this repo and refuse to load the model (OSError / FileNotFoundError on transformers 5). Both imports are inert for this craft: the config carries no `fusion` key, so that branch is never taken, and the curriculum is a training-side concern. They are now resolved by name at the point of use, so nothing is imported unless the code path is actually run. No weights, config or math changed. Proved before push, in a virtualenv with transformers 5.13 and no geolip installed: AutoModelForCausalLM.from_pretrained(..., trust_remote_code=True) loads 112.5M params with no missing or unexpected keys and runs a forward pass over a byte prompt.5e71e4f
-
mirror alephllm 0.9.0 (same-session law): presets.py (AlephLMConfig.fusion field, default None; the v3 preset builder + registrations guarded for copies without the data stack), governor.py (raw_block), alephlm.py (the optional fusion stage imported lazily — unfused crafts load without model/fusion.py; the trunk loop factored into _trunk). Gated: strict load of model.safetensors through the vendored path, logits parity 0.0 vs geolip.
Verified signaturefa82fde -
mirror alephllm 0.9.0 (same-session law): presets.py (AlephLMConfig.fusion field, default None; the v3 preset builder + registrations guarded for copies without the data stack), governor.py (raw_block), alephlm.py (the optional fusion stage imported lazily — unfused crafts load without model/fusion.py; the trunk loop factored into _trunk). Gated: strict load of model.safetensors through the vendored path, logits parity 0.0 vs geolip.
Verified signatured1537ac -
mirror alephllm 0.8.9 (same-session law): presets.py (v3 preset builder + registrations guarded for copies without the data stack; TrainConfig.phase_lr_scale/phase_seed_offset; Preset.data_scale/epoch_cap/rebalance_to), governor.py (raw_block: nested wrappers), alephlm.py (compile_hubs via raw_block). Gated: strict load of model.safetensors through the vendored path, logits parity 0.0 vs geolip.
Verified signature79d789d -
mirror alephllm 0.8.9 (same-session law): presets.py (v3 preset builder + registrations guarded for copies without the data stack; TrainConfig.phase_lr_scale/phase_seed_offset; Preset.data_scale/epoch_cap/rebalance_to), governor.py (raw_block: nested wrappers), alephlm.py (compile_hubs via raw_block). Gated: strict load of model.safetensors through the vendored path, logits parity 0.0 vs geolip.
Verified signature20fcd3f -
mirror alephllm 0.8.9 (same-session law): presets.py (v3 preset builder + registrations guarded for copies without the data stack; TrainConfig.phase_lr_scale/phase_seed_offset; Preset.data_scale/epoch_cap/rebalance_to), governor.py (raw_block: nested wrappers), alephlm.py (compile_hubs via raw_block). Gated: strict load of model.safetensors through the vendored path, logits parity 0.0 vs geolip.
Verified signaturef76e084
-
mirror geolip 0.8.8: relay.py docstring cleanup + from_patchwork rename
Verified signature120cfb6 -
mirror geolip 0.8.8: model/relay.py (RelayPatchwork + RelayEMA functional form; additive, unimported by modeling path)
Verified signature18bbb49
-
mirror 0.8.7: control-twin isolation (AlephLLM@b472815)
Verified signature2ad0453 -
README: sibling link to mini-beatrix-2s
Verified signature79cbf36
-
mirror 0.8.2: head_addr_frozen flag (AlephLLM@d6e1854)
Verified signature36c754f
-
mirror 0.7.5: 2s mission pivot (AlephLLM@73218bd)
Verified signature2ea0f30 -
mirror 0.7.4: mini-beatrix-2 hub_chunk 1024 (AlephLLM@cb7cb86)
Verified signature34d7ec4 -
mirror 0.7.3: hub scan restructure (address.py; AlephLLM@60ee496)
Verified signature943c0c2 -
mirror 0.7.3: hub scan restructure (attention.py; AlephLLM@60ee496)
Verified signatureb1087f8 -
mirror 0.7.2: autocast einsum-promote fp32 leak fixed in the hub scan (AlephLLM@2be28dd)
Verified signatureab05909 -
mirror governor.py (batched multi-book scan + batched governor)
Verified signature511072b -
mirror attention.py (batched multi-book scan + batched governor)
Verified signaturef3ecd1e -
mirror presets.py from geolip 0.7.0 @0c946b3 (hub_ckpt; default 0 = v1 verbatim)
Verified signature79a9dee -
mirror alephlm.py from geolip 0.7.0 @0c946b3 (hub_ckpt; default 0 = v1 verbatim)
Verified signature64f2a91 -
mirror presets.py from geolip 0.7.0 @a63a29b (MIRROR law; n_const=1 bit-identical)
Verified signature24c682b -
mirror alephlm.py from geolip 0.7.0 @a63a29b (MIRROR law; n_const=1 bit-identical)
Verified signature3dbc702 -
mirror governor.py from geolip 0.7.0 @a63a29b (MIRROR law; n_const=1 bit-identical)
Verified signaturebf36780 -
mirror attention.py from geolip 0.7.0 @a63a29b (MIRROR law; n_const=1 bit-identical)
Verified signaturedf5e25f
-
article charts (Raising Beatrix) — series built from the training repo's hub data
Verified signaturea635ed7 -
article charts (Raising Beatrix) — series built from the training repo's hub data
Verified signature333a2e4 -
article charts (Raising Beatrix) — series built from the training repo's hub data
Verified signaturefd39e9c -
article charts (Raising Beatrix) — series built from the training repo's hub data
Verified signatured2727ac -
article charts (Raising Beatrix) — series built from the training repo's hub data
Verified signature1f19b45
-
splat fast path (geolip 0.6.1 @a2436e6): fused 2K forward via oriented_cat, cached mask, lazy den stats, chunk 256 — 1.7x eager / 4.0x under torch.compile at ctx 2048, parity 1e-6 vs the naive oracle, grad-parity verified
Verified signatureba57df3 -
splat fast path (geolip 0.6.1 @a2436e6): fused 2K forward via oriented_cat, cached mask, lazy den stats, chunk 256 — 1.7x eager / 4.0x under torch.compile at ctx 2048, parity 1e-6 vs the naive oracle, grad-parity verified
Verified signature6365f5f
-
mini-beatrix-1 pre-classroom annealment point: AutoModel-compatible (trust_remote_code), surgered 58,664 weights (head gate folded, semantic no-op), config from manifest, parity 0.00e+00 vs native stack, generate() verified
Verified signatureb007aec -
initial commit
Verified signatured40b627