MiniMind-O Mini + LLaVA — RTX 5090 fine-tuning
Native dense MiniMind-O checkpoint fine-tuned from published sft_omni_768.pth.
All training rows of sft_t2a_mini and sft_a2a_mini, excluding 128 heldout rows each;
all provided visual caption and SFT training rows; original visual heldouts preserved.
One epoch each: T2A full voice model, A2A projector alignment, A2A full voice model,
visual caption projector alignment, visual QA projector tuning. Frozen SenseVoice,
SigLIP2 and Mimi; visual stages update only vision_proj to preserve voice parameters.
See run_config.json, training_summary.json, metrics/, training.jsonl and
samples/results.json for exact settings, measured losses, samples and limitations.
Audio losses use 10x stop-token weights. Validation is teacher-forced; no claim of
human-rated speech quality. Base-pretraining overlap with heldouts is unknown.
Generated examples may be inaccurate or truncated; inspect their recorded flags.
Load the native model
Install requirements-resolved.txt in a CUDA-compatible environment, and put
source/ on Python's import path. Download frozen encoder repositories at revisions
listed in revisions.json: SenseVoiceSmall, google/siglip2-base-patch32-256, kyutai/mimi.
import sys, torch
sys.path.insert(0, "source")
from model.model_omni import MiniMindOmni, OmniConfig
from transformers import AutoTokenizer
model = MiniMindOmni(OmniConfig(hidden_size=768, num_hidden_layers=8),
audio_encoder_path="models/audio", vision_model_path="models/vision")
model.load_state_dict(torch.load("sft_omni_768.pth", map_location="cpu", weights_only=True), strict=True)
model.eval().cuda()
if model.audio_encoder is not None: model.audio_encoder.cuda()
if model.vision_encoder is not None: model.vision_encoder.cuda()
tokenizer = AutoTokenizer.from_pretrained("tokenizer")
Portable inference (from the downloaded snapshot directory):
python source/scripts/runpod_omni_mini/infer.py --model-dir . --prompt "Please introduce yourself briefly." --output-wav reply.wav
python source/scripts/runpod_omni_mini/infer.py --model-dir . --image photo.jpg --prompt "Describe the image."
python source/scripts/runpod_omni_mini/infer.py --model-dir . --audio question.wav
The script downloads pinned frozen models when needed. It defaults to CUDA.
This is a native PyTorch state dict, not an AutoModel export. See the included
evaluate.py for text/audio/image conditioning and Mimi waveform decoding.
External frozen models are downloaded separately, not included in this repository.
Source terms
MiniMind-O source code is Apache-2.0; its license is included under provenance/MINIMIND_O_CODE_LICENSE. Preserve upstream model terms and dataset/image attribution. LLaVA
pretrain images are research-reproduction data; no blanket commercial image license
is granted. Dataset source cards and license notes are retained under provenance/.