Flamingo for Classification

Overview

This repository is a compact, custom PyTorch implementation of Flamingo for Classification. The tiny configuration is intended for code review, smoke tests, and small controlled experiments rather than as a production-ready pretrained release.

Comments and corrections can be left in the discussion tab.

Limitations

  1. weights are random-init, so outputs carry no signal
  2. robustness, fairness and domain transfer are untested
  3. the API may change without notice while the design settles

Quick Check

Run python train.py --help for the built-in smoke test. Because this is a custom implementation, generic automatic loading APIs require an explicit adapter before use.

Training Details

  1. Weights initialized with a orthogonal scheme.
  2. Runs on a single consumer GPU.
  3. Full smoke test takes minutes, not hours.
  4. No distributed setup required.

Repository Status

One Python module contains the model and a runnable example. Generated configuration lives in config.json; the recipe in training_args.json. The checkpoint is an initialization artifact and should not be read as a trained model. Scores are deliberately absent.

Default Experiment Recipe

The included configuration uses lion with a exponential schedule. These are starting values in the script, not evidence of a completed run. For a meaningful evaluation, train all baselines with the same data exposure, tuning budget, and random seeds.

Architecture

  1. Architecture: Flamingo
  2. Scale: tiny
  3. Attention: grouped query
  4. Fusion: tensor fusion
  5. Activation: approx gelu
  6. Normalization: rmsnorm

Files

File Purpose
train.py primary artifact
README.md this documentation
config.json architecture configuration
training_args.json default experiment settings
model.safetensors initialization checkpoint
NOTES.md informal to-do notes

License

Released under bsd-3-clause. Review the source-data terms separately when this repository is used with external datasets.

Downloads last month
-
Safetensors
Model size
49.6k params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support