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
mirror presets.py from geolip 0.7.0 @0c946b3 (hub_ckpt; default 0 = v1 verbatim)
Browse files- presets.py +10 -2
presets.py
CHANGED
|
@@ -54,6 +54,12 @@ class AlephLMConfig:
|
|
| 54 |
# lawful supply (K <= 2*hub_D per book; ROUND 5e). 1 = the v1 layout,
|
| 55 |
# bit-identical state dict. Old manifests load via the default.
|
| 56 |
hub_const: int = 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
def to_dict(self):
|
| 59 |
d = asdict(self)
|
|
@@ -157,7 +163,8 @@ PRESETS: dict[str, Preset] = {
|
|
| 157 |
hub_layers=tuple(range(32)),
|
| 158 |
hub_K=256, hub_D=256, hub_const=16,
|
| 159 |
bank_experts=6, bank_ff=1024,
|
| 160 |
-
head_K=256, head_D=256, hub_chunk=256
|
|
|
|
| 161 |
train=TrainConfig(micro_batch=4, grad_accum=16,
|
| 162 |
governor="minsep", governor_theta=45.0),
|
| 163 |
curriculum=_curriculum(500_000_000, 8_000_000_000, 16_000_000_000),
|
|
@@ -170,7 +177,8 @@ PRESETS: dict[str, Preset] = {
|
|
| 170 |
hub_layers=tuple(range(20)),
|
| 171 |
hub_K=64, hub_D=128, hub_const=4,
|
| 172 |
bank_experts=3, bank_ff=1024,
|
| 173 |
-
head_K=256, head_D=256, hub_chunk=256
|
|
|
|
| 174 |
train=TrainConfig(micro_batch=16, grad_accum=4,
|
| 175 |
governor="minsep", governor_theta=45.0),
|
| 176 |
curriculum=_curriculum(300_000_000, 5_000_000_000, 10_000_000_000),
|
|
|
|
| 54 |
# lawful supply (K <= 2*hub_D per book; ROUND 5e). 1 = the v1 layout,
|
| 55 |
# bit-identical state dict. Old manifests load via the default.
|
| 56 |
hub_const: int = 1
|
| 57 |
+
# Activation checkpointing (training only; inference/decode untouched).
|
| 58 |
+
# 0 = off (v1 verbatim). 1 = recompute the hub read in backward.
|
| 59 |
+
# 2 = also recompute the bank branch. At v2 scale (16 books x ctx 8192
|
| 60 |
+
# x 32 layers) the retained scan tensors alone exceed a 95GB card —
|
| 61 |
+
# measured OOM, Blackwell preflight 2026-08-26. ~2x hub recompute cost.
|
| 62 |
+
hub_ckpt: int = 0
|
| 63 |
|
| 64 |
def to_dict(self):
|
| 65 |
d = asdict(self)
|
|
|
|
| 163 |
hub_layers=tuple(range(32)),
|
| 164 |
hub_K=256, hub_D=256, hub_const=16,
|
| 165 |
bank_experts=6, bank_ff=1024,
|
| 166 |
+
head_K=256, head_D=256, hub_chunk=256,
|
| 167 |
+
hub_ckpt=2),
|
| 168 |
train=TrainConfig(micro_batch=4, grad_accum=16,
|
| 169 |
governor="minsep", governor_theta=45.0),
|
| 170 |
curriculum=_curriculum(500_000_000, 8_000_000_000, 16_000_000_000),
|
|
|
|
| 177 |
hub_layers=tuple(range(20)),
|
| 178 |
hub_K=64, hub_D=128, hub_const=4,
|
| 179 |
bank_experts=3, bank_ff=1024,
|
| 180 |
+
head_K=256, head_D=256, hub_chunk=256,
|
| 181 |
+
hub_ckpt=2),
|
| 182 |
train=TrainConfig(micro_batch=16, grad_accum=4,
|
| 183 |
governor="minsep", governor_theta=45.0),
|
| 184 |
curriculum=_curriculum(300_000_000, 5_000_000_000, 10_000_000_000),
|