Instructions to use Reallexi-llc/lexi-2-249b-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Reallexi-llc/lexi-2-249b-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Reallexi-llc/lexi-2-249b-base") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Reallexi-llc/lexi-2-249b-base") model = AutoModelForCausalLM.from_pretrained("Reallexi-llc/lexi-2-249b-base", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Reallexi-llc/lexi-2-249b-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Reallexi-llc/lexi-2-249b-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Reallexi-llc/lexi-2-249b-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Reallexi-llc/lexi-2-249b-base
- SGLang
How to use Reallexi-llc/lexi-2-249b-base 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 "Reallexi-llc/lexi-2-249b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Reallexi-llc/lexi-2-249b-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Reallexi-llc/lexi-2-249b-base" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Reallexi-llc/lexi-2-249b-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Reallexi-llc/lexi-2-249b-base with Docker Model Runner:
docker model run hf.co/Reallexi-llc/lexi-2-249b-base
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.
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
