Downloads · 30 days
0
batteryphil/besticandofornow
besticandofornow is a machine learning model from batteryphil. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This repository contains the fine-tuned Mamba-2 370M model, explicitly trained on the Operating-Organism codebase and context. The model has been stabilized using standard AdamW (moving away from the structural collap…
Downloads · 30 days
0
Access
Public
Updated Jul 28, 2026
Repo size
1.8 GB
Likes
1
Public
Click a slice to open those files.
.bin1 GB · 59%
From the Hugging Face model README
This repository contains the fine-tuned Mamba-2 370M model, explicitly trained on the Operating-Organism codebase and context. The model has been stabilized using standard AdamW (moving away from the structural collapse caused by the Continuous Vote Descent optimizer) and is fully ready for both Python inference and UEFI bare-metal execution.
mono250m_sft_live.pt: The PyTorch state dictionary (Continuous bfloat16 AdamW weights).mono250m_sft_live_bf16.bin: The 1GB native bfloat16 continuous payload tailored for bare-metal UEFI loading.Because this model was derived from state-spaces/mamba2-370m, you must load the base architecture first and inject these weights.
import torch
from transformers import AutoTokenizer
from mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel
from huggingface_hub import hf_hub_download
# 1. Load Tokenizer & Base Architecture
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b")
model = MambaLMHeadModel.from_pretrained("state-spaces/mamba2-370m", dtype=torch.bfloat16, device="cuda")
# 2. Download and Inject the Custom Weights
ckpt_path = hf_hub_download(repo_id="batteryphil/besticandofornow", filename="mono250m_sft_live.pt")
ckpt = torch.load(ckpt_path, map_location='cuda', weights_only=False)
model.load_state_dict(ckpt['state_dict'], strict=True)
model.eval()
# 3. Generate!
prompt = "User: Explain the purpose of the Operating-Organism kernel.\n\nAssistant:"
inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
with torch.no_grad():
outputs = model.generate(
input_ids=inputs.input_ids,
max_length=128,
temperature=0.7,
top_p=0.9,
repetition_penalty=1.1,
eos_token_id=tokenizer.eos_token_id
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
To deploy this in the Operating-Organism ecosystem, you will use the .bin file which is formatted for zero-copy high-memory loading (0x100000000ULL).
mono250m_sft_live_bf16.bin:wget https://huggingface.co/batteryphil/besticandofornow/resolve/main/mono250m_sft_live_bf16.bin
llm-baremetal directory):dd if=mono250m_sft_live_bf16.bin of=model_shard0.bin bs=1M count=1024 status=progress
dd if=mono250m_sft_live_bf16.bin of=model_shard1.bin bs=1M skip=1024 count=1024 status=progress
dd if=mono250m_sft_live_bf16.bin of=model_shard2.bin bs=1M skip=2048 status=progress
./make_image.sh
./run_kvm.sh
This model successfully utilizes the AVX2 bfloat16 instructions in the UEFI environment, bypassing the need for discrete PRIME quantization grids.