Download README.md from smart-force/xandra-training-state: direct link, hf CLI and curl.
- Browser
- Download file 4.59 kB
-
https://huggingface.co/smart-force/xandra-training-state/resolve/main/README.md
- Command line
-
hf download hf://smart-force/xandra-training-state/README.md
-
curl -L -o README.md https://huggingface.co/smart-force/xandra-training-state/resolve/main/README.md
language:
- ar
- en
- ru
license: other
license_name: xhnsl-v1.0
tags:
- xandra-hope
- pytorch
- from-scratch
- llama-architecture
- gqa
- rope
- swiglu
- arabic
- code-generation
- reverse-engineering
pipeline_tag: text-generation
🧠 Xandra Hope (XandraModern — Sovereign Architecture)
Xandra Hope is an original, from-scratch foundation language model engineered for high-efficiency Arabic fluency, software engineering, and low-level systems/reverse engineering analysis. Built with a modern Transformer architecture and trained via a distributed, self-healing cloud orchestration pipeline (Xandra Maestro).
👨💻 Creators & Ownership
- Principal Architects: Ahmed Sayed Kamel Mahmoud & Александра Евгеньевна Острикова
- Organization:
smart-force/Xandra-Flow - License: Xandra Hope Non-Commercial / Sovereign License (XHNSL v1.0) — All Rights Reserved (2026).
🏗️ Model Architecture Specifications
XandraModern is built from scratch in pure PyTorch without relying on pre-packaged model wrappers, incorporating state-of-the-art structural optimizations for maximum throughput on consumer and cloud GPUs:
| Parameter | Specification | Technical Advantage |
|---|---|---|
| Total Parameters | ~105M (Active Training Tier) | High inference speed & low VRAM footprint |
Hidden Dimension (dim) |
512 |
Balanced representational capacity |
Layers (n_layers) |
8 |
Deep hierarchical feature extraction |
| Attention Mechanism | Grouped Query Attention (GQA) (8 Q heads / 2 KV heads) |
2–4x faster attention & reduced KV-cache memory |
| Positional Encoding | RoPE (Rotary Position Embeddings) | Extrapolates cleanly to extended context lengths |
| Normalization | RMSNorm (Pre-Norm) | Superior training stability & 10–30% faster execution |
| Activation Function | SwiGLU | Enhanced gradient flow over GELU/ReLU |
| Vocabulary Size | 151,646 (Qwen2.5 Tokenizer) |
Rich multilingual & code token coverage |
| Weight Tying | Enabled | Shared input/output embedding weights for parameter efficiency |
📚 Training Data & Curriculum
The training pipeline streams and interleaves curated, deduplicated, and normalized corpora across two primary pillars:
- Arabic Linguistic Foundation (
xandra-arabic-corpus):- Classical & Modern Standard Arabic literature (Al-Maktaba Al-Shamela, Hindawi Foundation).
- Diacritized grammatical texts (Tashkeela) for morphological precision.
- Encyclopedic, medical, poetic, and cultural datasets (Arabic Wikipedia, Arabic Healthcare, Classical Poetry).
- Technical, Code & Multilingual Reasoning (
xandra-tech-corpus):- Systems & application programming (
Python,C,C++,Rust,x86/ARM Assembly). - Binary analysis & reverse engineering workflows (
Ghidra,IDA Pro,GDB). - Multilingual technical documentation (English & Russian).
- Systems & application programming (
⚙️ Distributed Training Infrastructure (Xandra Maestro)
Training is orchestrated autonomously via Xandra Maestro, a fault-tolerant distributed scheduler featuring:
- Multi-Node Swarm Orchestration: Automated workload rotation across distributed GPU nodes.
- Smart Distributed Locking: Real-time heartbeat monitoring (
state.json) with automatic stale-lock recovery. - Mixed Precision (
bfloat16) & Gradient Accumulation: Effective batch size of128(8 × 16) with Cosine Annealing learning rate scheduling.
🚀 Quick Start (Inference Example)
To run text generation using the latest checkpoint (checkpoints/latest.pt), load the XandraModern PyTorch class definition alongside the tokenizer:
import torch
from huggingface_hub import hf_hub_download
from transformers import AutoTokenizer
# 1. Download latest checkpoint
ckpt_path = hf_hub_download(
repo_id="smart-force/xandra-training-state",
filename="checkpoints/latest.pt"
)
# 2. Load tokenizer & weights into XandraModern()
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-Coder-1.5B-Instruct")
checkpoint = torch.load(ckpt_path, map_location="cuda", weights_only=False)
print(f"Loaded Xandra Hope at Step: {checkpoint['step']:,} | Loss: {checkpoint['loss']:.4f}")
⚠️ Current Status & Disclaimer
- Training Phase: Active Continual Pre-Training (Foundation Stage).
- Intended Use: Research, Arabic NLP development, code completion, and educational systems analysis. Outputs should be verified before production deployment.