lucifertkod/ArcleIntelligence---Demo-Training-Script-Only

14

stars

6

commits

Python

primary language

May 5, 2026

updated

README

๐Ÿง  ArcleIntelligence

A 5.82-billion-parameter multimodal foundation model that natively understands and generates across text, images, audio, documents, and code.

๐Ÿ“Œ Important โ€” please read first This repository is not the production source code of the ArcleIntelligence model. It is a public demonstration of the model architecture and the training pipeline that builds it. The complete source code will be released together with the trained model weights on Hugging Face once the training run finishes.

๐ŸŽฌ About this training script The training script in this repository is only a demo visualisation of how the actual ArcleIntelligence model will work end-to-end. It is meant to illustrate the architecture, the data flow across modalities, and the training loop โ€” it is not the final production training code that will be used to ship the model. ๐Ÿ“… This demo training script was created on 13 February 2026.


๐ŸŽฏ Overview

ArcleIntelligence is a unified multimodal model designed to reason jointly across many forms of input and produce natural-language, visual, and audio output from a single shared decoder. Each input modality is processed by a specialised perception encoder, projected into a common semantic space by a small set of trainable connectors, and then handed to a strong text backbone for joint reasoning.

The result is a single model that can read a contract, describe a photograph, transcribe a meeting recording, write the code that automates a workflow, and synthesise a spoken answer โ€” all in one conversation.


โœจ Capabilities

๐Ÿ“ฅ What the model can take as input

ModalityExamples
๐Ÿ“ Textnatural-language questions, multi-turn conversations, instructions, prompts
๐Ÿ–ผ๏ธ Imagesphotographs, screenshots, charts, diagrams, illustrations
๐Ÿ“„ DocumentsPDFs, scanned pages, invoices, forms, tables, handwritten notes
๐ŸŽต Audiospeech in 18+ languages, voice notes, ambient sound, short music clips
๐ŸŽฌ Videoshort video clips, analysed by sampling representative frames
๐Ÿ’ป Codesource code in all major programming languages

๐Ÿ“ค What the model can produce as output

ModalityDetails
๐Ÿ“ Textanswers, explanations, summaries, structured responses (JSON, markdown, tables)
๐Ÿ’ป Coderunnable source code in all major programming languages
๐Ÿ–ผ๏ธ Images512 ร— 512 image generation from text prompts or visual references
๐Ÿ”Š Audionatural-sounding 24 kHz speech with selectable voice characteristics

โš ๏ธ Video generation is not supported in this release.


๐Ÿ“ Model specifications

PropertyValue
Total parameters5.82 billion
Trainable connector parametersall
Context window2,000,000 tokens
Output speech sample rate24 kHz
Output image resolution512 ร— 512
Supported input languages18+

๐Ÿ‡ฎ๐Ÿ‡ณ Data philosophy and cultural focus

ArcleIntelligence is trained on a deliberately neutral corpus that does not favour or disparage any country, religion, caste, race, ethnic group, government, political party, or community. Unlike most widely deployed multimodal systems โ€” whose training data is dominated by US-based or China-based sources and inherits the cultural assumptions, blind spots, and political leanings of those regions โ€” ArcleIntelligence is built around a balanced, Indian-led data pipeline.

The corpus is curated specifically to:

  • ๐Ÿช” Treat Indian culture, languages, geography, history, festivals, and everyday life as first-class content, rather than as an underrepresented edge case the way most foreign models do.
  • โš–๏ธ Remain socially, politically, and religiously impartial โ€” no community, faith, caste, or group is privileged or marginalised in the training signal.
  • ๐Ÿค Serve Indian users and Indian use cases across education, healthcare, public services, agriculture, small business, journalism, and creative work.
  • ๐Ÿšซ Avoid the systematic Western or Chinese bias that other open and closed multimodal models have repeatedly been shown to exhibit on questions about Indian subjects, Indian leaders, Indian history, and Indian social context.

๐ŸŒ Although ArcleIntelligence is built primarily for India and the Indian context, its impartial training corpus means the model remains accurate, useful, and respectful when used anywhere else in the world.


๐Ÿ“Š Benchmarks

BenchmarkScoreNotes
OmniDocBench V1.5๐Ÿ† 93.45 %Private internal evaluation. The score is expected to improve with longer training and additional fine-tuning.

โš™๏ธ Training infrastructure

๐Ÿ–ฅ๏ธ Hardware8 ร— NVIDIA H100 SXM 80 GB
๐Ÿ”ข Numerical precisionbfloat16 mixed precision
๐Ÿงฉ Distributed strategyZeRO Stage 2 sharded optimiser
๐Ÿ“ฆ Effective batch size256 paired samples per optimiser step
โฑ๏ธ Training duration~497 hours for the full 3-epoch run
๐Ÿ’ฐ Estimated cloud cost~$11,560 at standard H100 SXM rates

๐Ÿ“ Repository layout

.
โ”œโ”€โ”€ config.py                       central configuration (dimensions, paths, hyperparameters)
โ”œโ”€โ”€ train.py                        training loop with distributed scaling
โ”œโ”€โ”€ data.py                         dataset classes and the multimodal collator
โ”œโ”€โ”€ models.py                       perception encoders and trainable connectors
โ”œโ”€โ”€ inference.py                    interactive demo for running the trained model
โ”œโ”€โ”€ export.py                       checkpoint export utility
โ”œโ”€โ”€ download.sh                     downloads weights and datasets, installs dependencies
โ”œโ”€โ”€ download_missing.py             repairs partial downloads from a previous run
โ”œโ”€โ”€ accelerate_config.yaml          launcher config for full multi-GPU training
โ”œโ”€โ”€ accelerate_config_smoke.yaml    launcher config for the single-GPU smoke test
โ”œโ”€โ”€ ds_config.json                  distributed-training config (full mode)
โ”œโ”€โ”€ ds_config_smoke.json            distributed-training config (smoke-test mode)
โ””โ”€โ”€ output/                         checkpoints and training logs

๐Ÿš€ How to run on your own PC or GPU server

1. ๐Ÿ–ฅ๏ธ Hardware requirements

ModeRecommended hardware
๐Ÿงช Smoke test (verify the pipeline)1 ร— NVIDIA GPU with at least 40 GB VRAM
๐Ÿ‹๏ธ Full training8 ร— NVIDIA H100 SXM 80 GB
๐ŸŽฏ Inference only1 ร— NVIDIA GPU with at least 24 GB VRAM

A modern Linux distribution and CUDA 12.4 or newer are required. The repository has been validated on Ubuntu 22.04 and the standard RunPod / Lightning AI templates.

2. ๐Ÿ“ฅ Clone the repository

git clone <this-repository-url>
cd <repository-folder>

3. โฌ‡๏ธ Download weights, datasets, and dependencies

The provided script installs every Python package, downloads ~13 GB of pretrained weights and ~35 GB of training data, and verifies the integrity of every file:

# Optional: choose where everything is stored (defaults to /workspace/arcle)
export BASE_DIR=/path/to/your/data/folder

bash download.sh

โœ… The script is fully idempotent โ€” running it again will skip files that are already present and only re-download anything that was previously incomplete.

4. โš™๏ธ Configure smoke test or full training

Open config.py and set a single flag at the top of the file:

SMOKE_TEST = True      # 1 GPU, ~25-35 minutes, ~$2-3 โ€” verifies the pipeline end to end
SMOKE_TEST = False     # full training, ~497 hours on 8ร— H100 SXM, ~$11,560

Nothing else in config.py needs to be touched.

5. ๐Ÿš€ Launch training inside a tmux session

Always run training inside tmux so the job survives an SSH disconnect:

tmux new -s arcle
cd $BASE_DIR

๐Ÿงช Smoke test (1 GPU):

accelerate launch \
    --config_file accelerate_config_smoke.yaml \
    --num_processes 1 \
    train.py

๐Ÿ‹๏ธ Full training (8 ร— H100 SXM GPUs):

accelerate launch \
    --config_file accelerate_config.yaml \
    --num_processes 8 \
    train.py

๐Ÿ’ก Detach from the tmux session at any time with Ctrl+B then D. Reattach later with tmux attach -t arcle.

6. ๐Ÿ“ˆ Monitor progress

A live status file is updated every few seconds:

watch -n 5 cat $BASE_DIR/logs/status.txt

Checkpoints are saved to $BASE_DIR/output/checkpoints/ according to the schedule defined in config.py.

7. ๐Ÿ’ฌ Run inference on a trained checkpoint

Once training has finished (or after any saved checkpoint), launch the interactive demo:

python inference.py --checkpoint $BASE_DIR/output/checkpoints/latest

The interactive prompt accepts text, image paths, and audio paths in a single conversation and will respond with text, generated images, or synthesised speech depending on the request.


๐Ÿ”ง Common issues and resolutions

  • โš ๏ธ Optional CUDA kernels fail to build โ€” the download script will warn and continue; the model uses a pure-PyTorch fallback that produces identical results, with a small (~15 %) performance cost.
  • ๐Ÿง  Out-of-memory during full training โ€” reduce the per-device batch size in config.py and increase the gradient-accumulation factor proportionally to keep the effective batch size at 256.
  • ๐Ÿ’พ Disk fills up during dataset download โ€” make sure the partition holding BASE_DIR has at least 80 GB free. The download script verifies file integrity at the end and reports any partial files that need to be re-fetched.
  • โธ๏ธ Training hangs at the first step โ€” confirm that all GPUs are visible to the launcher with nvidia-smi and that --num_processes matches the number of available GPUs.

๐Ÿ“Œ Reminder This repository is not the production source code of the ArcleIntelligence model. It is a public demonstration of the model architecture and the training pipeline that builds it. The complete source code will be released together with the trained model weights on Hugging Face once the training run finishes.

๐ŸŽฌ And again โ€” about this training script What you see here is only a demo visualisation of how the real ArcleIntelligence model will work; the production training code is separate and will be released alongside the model weights. ๐Ÿ“… This demo training script was created on 13 February 2026.

Contributors

lucifertkod

6 commits

lucifertkod/ArcleIntelligence---Demo-Training-Script-Only

14

stars

6

commits

Python

primary language

May 5, 2026

updated

README

๐Ÿง  ArcleIntelligence

A 5.82-billion-parameter multimodal foundation model that natively understands and generates across text, images, audio, documents, and code.

๐Ÿ“Œ Important โ€” please read first This repository is not the production source code of the ArcleIntelligence model. It is a public demonstration of the model architecture and the training pipeline that builds it. The complete source code will be released together with the trained model weights on Hugging Face once the training run finishes.

๐ŸŽฌ About this training script The training script in this repository is only a demo visualisation of how the actual ArcleIntelligence model will work end-to-end. It is meant to illustrate the architecture, the data flow across modalities, and the training loop โ€” it is not the final production training code that will be used to ship the model. ๐Ÿ“… This demo training script was created on 13 February 2026.


๐ŸŽฏ Overview

ArcleIntelligence is a unified multimodal model designed to reason jointly across many forms of input and produce natural-language, visual, and audio output from a single shared decoder. Each input modality is processed by a specialised perception encoder, projected into a common semantic space by a small set of trainable connectors, and then handed to a strong text backbone for joint reasoning.

The result is a single model that can read a contract, describe a photograph, transcribe a meeting recording, write the code that automates a workflow, and synthesise a spoken answer โ€” all in one conversation.


โœจ Capabilities

๐Ÿ“ฅ What the model can take as input

ModalityExamples
๐Ÿ“ Textnatural-language questions, multi-turn conversations, instructions, prompts
๐Ÿ–ผ๏ธ Imagesphotographs, screenshots, charts, diagrams, illustrations
๐Ÿ“„ DocumentsPDFs, scanned pages, invoices, forms, tables, handwritten notes
๐ŸŽต Audiospeech in 18+ languages, voice notes, ambient sound, short music clips
๐ŸŽฌ Videoshort video clips, analysed by sampling representative frames
๐Ÿ’ป Codesource code in all major programming languages

๐Ÿ“ค What the model can produce as output

ModalityDetails
๐Ÿ“ Textanswers, explanations, summaries, structured responses (JSON, markdown, tables)
๐Ÿ’ป Coderunnable source code in all major programming languages
๐Ÿ–ผ๏ธ Images512 ร— 512 image generation from text prompts or visual references
๐Ÿ”Š Audionatural-sounding 24 kHz speech with selectable voice characteristics

โš ๏ธ Video generation is not supported in this release.


๐Ÿ“ Model specifications

PropertyValue
Total parameters5.82 billion
Trainable connector parametersall
Context window2,000,000 tokens
Output speech sample rate24 kHz
Output image resolution512 ร— 512
Supported input languages18+

๐Ÿ‡ฎ๐Ÿ‡ณ Data philosophy and cultural focus

ArcleIntelligence is trained on a deliberately neutral corpus that does not favour or disparage any country, religion, caste, race, ethnic group, government, political party, or community. Unlike most widely deployed multimodal systems โ€” whose training data is dominated by US-based or China-based sources and inherits the cultural assumptions, blind spots, and political leanings of those regions โ€” ArcleIntelligence is built around a balanced, Indian-led data pipeline.

The corpus is curated specifically to:

  • ๐Ÿช” Treat Indian culture, languages, geography, history, festivals, and everyday life as first-class content, rather than as an underrepresented edge case the way most foreign models do.
  • โš–๏ธ Remain socially, politically, and religiously impartial โ€” no community, faith, caste, or group is privileged or marginalised in the training signal.
  • ๐Ÿค Serve Indian users and Indian use cases across education, healthcare, public services, agriculture, small business, journalism, and creative work.
  • ๐Ÿšซ Avoid the systematic Western or Chinese bias that other open and closed multimodal models have repeatedly been shown to exhibit on questions about Indian subjects, Indian leaders, Indian history, and Indian social context.

๐ŸŒ Although ArcleIntelligence is built primarily for India and the Indian context, its impartial training corpus means the model remains accurate, useful, and respectful when used anywhere else in the world.


๐Ÿ“Š Benchmarks

BenchmarkScoreNotes
OmniDocBench V1.5๐Ÿ† 93.45 %Private internal evaluation. The score is expected to improve with longer training and additional fine-tuning.

โš™๏ธ Training infrastructure

๐Ÿ–ฅ๏ธ Hardware8 ร— NVIDIA H100 SXM 80 GB
๐Ÿ”ข Numerical precisionbfloat16 mixed precision
๐Ÿงฉ Distributed strategyZeRO Stage 2 sharded optimiser
๐Ÿ“ฆ Effective batch size256 paired samples per optimiser step
โฑ๏ธ Training duration~497 hours for the full 3-epoch run
๐Ÿ’ฐ Estimated cloud cost~$11,560 at standard H100 SXM rates

๐Ÿ“ Repository layout

.
โ”œโ”€โ”€ config.py                       central configuration (dimensions, paths, hyperparameters)
โ”œโ”€โ”€ train.py                        training loop with distributed scaling
โ”œโ”€โ”€ data.py                         dataset classes and the multimodal collator
โ”œโ”€โ”€ models.py                       perception encoders and trainable connectors
โ”œโ”€โ”€ inference.py                    interactive demo for running the trained model
โ”œโ”€โ”€ export.py                       checkpoint export utility
โ”œโ”€โ”€ download.sh                     downloads weights and datasets, installs dependencies
โ”œโ”€โ”€ download_missing.py             repairs partial downloads from a previous run
โ”œโ”€โ”€ accelerate_config.yaml          launcher config for full multi-GPU training
โ”œโ”€โ”€ accelerate_config_smoke.yaml    launcher config for the single-GPU smoke test
โ”œโ”€โ”€ ds_config.json                  distributed-training config (full mode)
โ”œโ”€โ”€ ds_config_smoke.json            distributed-training config (smoke-test mode)
โ””โ”€โ”€ output/                         checkpoints and training logs

๐Ÿš€ How to run on your own PC or GPU server

1. ๐Ÿ–ฅ๏ธ Hardware requirements

ModeRecommended hardware
๐Ÿงช Smoke test (verify the pipeline)1 ร— NVIDIA GPU with at least 40 GB VRAM
๐Ÿ‹๏ธ Full training8 ร— NVIDIA H100 SXM 80 GB
๐ŸŽฏ Inference only1 ร— NVIDIA GPU with at least 24 GB VRAM

A modern Linux distribution and CUDA 12.4 or newer are required. The repository has been validated on Ubuntu 22.04 and the standard RunPod / Lightning AI templates.

2. ๐Ÿ“ฅ Clone the repository

git clone <this-repository-url>
cd <repository-folder>

3. โฌ‡๏ธ Download weights, datasets, and dependencies

The provided script installs every Python package, downloads ~13 GB of pretrained weights and ~35 GB of training data, and verifies the integrity of every file:

# Optional: choose where everything is stored (defaults to /workspace/arcle)
export BASE_DIR=/path/to/your/data/folder

bash download.sh

โœ… The script is fully idempotent โ€” running it again will skip files that are already present and only re-download anything that was previously incomplete.

4. โš™๏ธ Configure smoke test or full training

Open config.py and set a single flag at the top of the file:

SMOKE_TEST = True      # 1 GPU, ~25-35 minutes, ~$2-3 โ€” verifies the pipeline end to end
SMOKE_TEST = False     # full training, ~497 hours on 8ร— H100 SXM, ~$11,560

Nothing else in config.py needs to be touched.

5. ๐Ÿš€ Launch training inside a tmux session

Always run training inside tmux so the job survives an SSH disconnect:

tmux new -s arcle
cd $BASE_DIR

๐Ÿงช Smoke test (1 GPU):

accelerate launch \
    --config_file accelerate_config_smoke.yaml \
    --num_processes 1 \
    train.py

๐Ÿ‹๏ธ Full training (8 ร— H100 SXM GPUs):

accelerate launch \
    --config_file accelerate_config.yaml \
    --num_processes 8 \
    train.py

๐Ÿ’ก Detach from the tmux session at any time with Ctrl+B then D. Reattach later with tmux attach -t arcle.

6. ๐Ÿ“ˆ Monitor progress

A live status file is updated every few seconds:

watch -n 5 cat $BASE_DIR/logs/status.txt

Checkpoints are saved to $BASE_DIR/output/checkpoints/ according to the schedule defined in config.py.

7. ๐Ÿ’ฌ Run inference on a trained checkpoint

Once training has finished (or after any saved checkpoint), launch the interactive demo:

python inference.py --checkpoint $BASE_DIR/output/checkpoints/latest

The interactive prompt accepts text, image paths, and audio paths in a single conversation and will respond with text, generated images, or synthesised speech depending on the request.


๐Ÿ”ง Common issues and resolutions

  • โš ๏ธ Optional CUDA kernels fail to build โ€” the download script will warn and continue; the model uses a pure-PyTorch fallback that produces identical results, with a small (~15 %) performance cost.
  • ๐Ÿง  Out-of-memory during full training โ€” reduce the per-device batch size in config.py and increase the gradient-accumulation factor proportionally to keep the effective batch size at 256.
  • ๐Ÿ’พ Disk fills up during dataset download โ€” make sure the partition holding BASE_DIR has at least 80 GB free. The download script verifies file integrity at the end and reports any partial files that need to be re-fetched.
  • โธ๏ธ Training hangs at the first step โ€” confirm that all GPUs are visible to the launcher with nvidia-smi and that --num_processes matches the number of available GPUs.

๐Ÿ“Œ Reminder This repository is not the production source code of the ArcleIntelligence model. It is a public demonstration of the model architecture and the training pipeline that builds it. The complete source code will be released together with the trained model weights on Hugging Face once the training run finishes.

๐ŸŽฌ And again โ€” about this training script What you see here is only a demo visualisation of how the real ArcleIntelligence model will work; the production training code is separate and will be released alongside the model weights. ๐Ÿ“… This demo training script was created on 13 February 2026.

Contributors

lucifertkod

6 commits

Languages

Python

88.6%

Shell

11.4%