MaximusLLM is a long-context language model designed for hyper-efficient architecture and training. It introduces a new paradigm for to long context while reducing training VRAM by ~40% and increasing throughput by over 17x compared to optimized standard Cross-Entropy baselines.
MaximusLLM (190M) is an architectural proof-of-concept. While it demonstrates extreme efficiency, its absolute knowledge capacity is limited by its parameter count. Users should expect hallucinations.
1from src.model import Model, Config
2from src.lora import blockswap_attention_layers
3from src.infer import general_generate_fn
4
5config = Config.from_pretrained("yousefg/MaximusLLM")
6model = Model(config, device="cuda")
7blockswap_attention_layers(model)
8
9prompt = "<start_of_turn>user\nWhat is the capital of France?<end_of_turn>\n<start_of_turn>model\n"
10inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
11output = general_generate_fn(model, inputs, tokenizer, max_new_tokens=50)
12print(tokenizer.decode(output[0]))
Maximus utilizes a specialized training pipeline to maintain FP32 master weight stability while achieving FP16 throughput.
1@article{gamaleldin2026maxis,
2 title={MAXIS: A Hyper-Efficient Paradigm for Scalable Long-Context LLM Training},
3 author={Gamaleldin, Yousef},
4 journal={SSRN: Artificial Intelligence eJournal},
5 year={2026}
6}
1@article{gamaleldin2026randnla,
2 title={Bifurcated Latent Attention: Scaling LLMs to Infinite Context via Asymmetric Causal RandNLA},
3 author={Gamaleldin, Yousef},
4 journal={SSRN: Artificial Intelligence eJournal},
5 year={2026}
6}