Lexi 2.249B

Lexi 2.249B is a standalone text-generation checkpoint for local code completion and further fine-tuning. Reallexi LLC produced this release with AI Model Builder. It includes the merged model weights and the tokenizer. Transformers can load the repository directly.

Copyright (c) 2026 Reallexi LLC. All rights reserved.

Model details

Property Value
Architecture Qwen2 causal language model
Parameters 2,249,028,096
Format FP16 SafeTensors, 18 shards
Weight size 4,491,421,288 bytes, about 4.49 GB
Training sequence limit 14,592 tokens
Configured position limit 32,768 tokens
Lineage Local Lexi 2.246B Model Surgery checkpoint with a merged LoRA adapter
Release source AI Model Builder job #2051

Quick start

Install transformers, torch, and accelerate. Authenticate to Hugging Face with an account that has access to this repository.

from transformers import AutoModelForCausalLM, AutoTokenizer

repo = "reallexi/lexi-2-249b-base"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype="auto", device_map="auto")

prompt = [{"role": "user", "content": "Write a Python function that returns the median of a non-empty list."}]
inputs = tokenizer.apply_chat_template(
    prompt, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt"
)
inputs = {key: value.to(model.device) for key, value in inputs.items()}
tokens = model.generate(**inputs, max_new_tokens=192, do_sample=False)
print(tokenizer.decode(tokens[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Use the repository ID as a custom Hugging Face base in AI Model Builder to continue training. Match the model license and tokenizer when preparing further releases.

Training and evaluation

Job #2051 used rank-8 LoRA with alpha 16, learning rate 1e-5, microbatch size 1, and gradient accumulation 8. Phase 32 processed a 500-row window over three epochs, totaling 1,500 microbatches. The recorded chain had processed 10,000 dataset rows through that phase. These figures distinguish this phase from the longer planned training chain.

The training source was Lexi Coder v3, a retrieval export of code chunks. The training curve records progress for the source run. This release includes no held-out coding benchmark or 32K-context evaluation. Check generated code with project tests and review before using it.

Training curve for the source run

Release files

The repository contains the SafeTensors shards and index, model and generation configs, tokenizer and chat template, training curve, release metadata, and attribution. SHA256SUMS.txt lists the checksums of weights and supporting files.

License and attribution

See NOTICE and COPYRIGHT.md. The upstream checkpoint and training data retain their respective licenses and terms. The Reallexi LLC copyright notice identifies this release and its accompanying materials. Review the upstream terms before redistribution or commercial use.

Downloads last month
19
Safetensors
Model size
2B params
Tensor type
F16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Reallexi-llc/lexi-2-249b-base

Quantizations
2 models

Dataset used to train Reallexi-llc/lexi-2-249b-base