Skip to main content

SOTA Multimodal Inference Engine (S2S, I2I, V2V) for Xoron-Dev.

Project description

🚀 Xoron-Dev: Unified Multimodal AI Model

Xoron-Dev Logo Version License Python PyTorch

A state-of-the-art multimodal MoE model that unifies text, image, video, and audio understanding and generation.

Architecture | Features | Installation | Usage | Training | Documentation


🏗️ Architecture Overview

Xoron-Dev is built on a modular, mixture-of-experts architecture designed for maximum flexibility and performance.

🧠 LLM Backbone (Mixture of Experts)

  • 12 Layers, 1024d, 16 Heads - Optimized for efficient inference and training.
  • Aux-Lossless MoE - 8 experts with top-2 routing and configurable shared expert isolation.
  • Ring Attention - Memory-efficient processing for up to 128K context.
  • Qwen2.5 Tokenizer - High-density 151K vocabulary for multilingual and code support.

👁️ Vision & Video

  • SigLIP-2 Encoder - 384px native resolution with multi-scale support (128-512px).
  • TiTok 1D Tokenization - Compressed visual representation (256 tokens) for faster processing.
  • VidTok 3D VAE - Efficient spatiotemporal video encoding with 4x8x8 compression.
  • 3D-RoPE & Temporal MoE - Sophisticated motion pattern recognition and spatial awareness.

🎤 Audio System

  • Raw Waveform Processing - Direct 16kHz audio input/output (no Mel spectrograms required).
  • Conformer + RMLA - Advanced speech-to-text with KV compression.
  • BigVGAN Waveform Decoder - High-fidelity direct waveform generation with Snake activation.
  • Zero-Shot Voice Cloning - Clone voices from short reference clips using speaker embeddings.

🌟 Features

Multimodal Capabilities

Modality Input Output Strategy
Text 128K Context Reasoning, Code, Agentic MoE LLM
Image 128-512px Understanding & SFT SigLIP + TiTok
Video 8-24 Frames Understanding VidTok + 3D-RoPE
Audio 16kHz Waveform ASR & TTS Conformer + BigVGAN

Agentic & Tool Calling

  • 250+ Special Tokens for structured agent behaviors.
  • Native Tool Use: Execute shell commands, Python scripts, and Jupyter notebooks.
  • Reasoning: Advanced Chain-of-Thought (<|think|>, <|plan|>) for complex tasks.
  • Safety: Anti-hallucination tokens (<|uncertain|>, <|cite|>) and confidence scores.

Optimization

  • LoRA Variants: LoRA+, rsLoRA, and DoRA (r=32, α=64).
  • Lookahead Optimizer: Enhanced stability and faster convergence.
  • 8-bit Optimization: Save up to 75% optimizer memory with bitsandbytes.
  • Continuous-Scale Training: Adaptive resolution sampling for optimal VRAM usage.

🚀 Installation

# Clone the repository
git clone https://github.com/nigfuapp-web/Xoron-Dev.git
cd Xoron-Dev

# Install dependencies
pip install -r requirements.txt

💻 Usage

Quick Start (Inference)

from load import load_xoron_model

# Load model and tokenizer
model, tokenizer, device, config = load_xoron_model("Backup-bdg/Xoron-Dev-MultiMoe")

# Generate response
output = model.generate_text("Explain quantum entanglement.", tokenizer)
print(output)

CLI Training

The build.py script provides a powerful interface for training and building models.

# Build a new model from scratch
python build.py --build

# Targeted Fine-tuning
python build.py --hf --text --math        # Fine-tune on Math
python build.py --hf --text --agent       # Fine-tune on Agentic tasks
python build.py --hf --video              # Fine-tune on Video datasets
python build.py --hf --voice              # Fine-tune on Audio/Voice

Granular Text Training Flags

Flag Description
--math Focus on mathematical reasoning and steps.
--agent Tool use, code execution, and system operations.
--software High-quality software engineering and coding.
--cot Chain-of-Thought and logical reasoning.
--medical Medical knowledge and clinical reasoning.
--hallucination Anti-hallucination and truthfulness.

🏋️ Training

Weighted Loss Strategy

The trainer applies specialized weights to ensure high performance on critical tokens:

  • Reasoning (CoT): 1.5x
  • Tool Calling: 1.3x
  • Anti-Hallucination: 1.2x

Continuous-Scale Strategy

Xoron-Dev dynamically samples resolutions during training:

  • Image: 128px to 384px (step=32)
  • Video: 8 to 24 frames, 128px to 320px

📦 Export & Quantization

Export your models for efficient deployment:

# Export to GGUF (for llama.cpp)
python build.py --hf --gguf --gguf-quant q4_k_m

# Export to ONNX
python build.py --hf --onnx --quant-bits 4

🤝 Contributing

Contributions are welcome! If you have ideas for new modalities or optimizations, please open an issue or PR.


📄 License

This project is licensed under the MIT License.


Built with ❤️ by the Xoron-Dev Team

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xorfice-0.1.12.tar.gz (153.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xorfice-0.1.12-py3-none-any.whl (165.0 kB view details)

Uploaded Python 3

File details

Details for the file xorfice-0.1.12.tar.gz.

File metadata

  • Download URL: xorfice-0.1.12.tar.gz
  • Upload date:
  • Size: 153.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for xorfice-0.1.12.tar.gz
Algorithm Hash digest
SHA256 e78abd7e904db06004c5f1d5850524f171307197ec2f0ce56e2d02ee843c47f3
MD5 1a66dbe1e16ab91c938e2b16c8e0f378
BLAKE2b-256 362647c5dfdbf0bb525a4b7e5c8d143108e82e879ab9db0f1a382d93c3d7db94

See more details on using hashes here.

File details

Details for the file xorfice-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: xorfice-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 165.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for xorfice-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 4446567e0143011e19e9ad1e6e45e049618e2fc9b557ba7d965ebda99a4cb5bf
MD5 8f4f2d0e893155f62f2c41a3085eca25
BLAKE2b-256 e050c931461704ff130fb2e71a05a8e8bedb8c758362b8b04de7910e00fc575f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page