Metadata-Version: 2.4
Name: omni-reason
Version: 1.0.2
Summary: One command for hosted video reasoning, local inference, data and benchmarks
Author: Omni-Reason Team
License: Original contributions: Apache-2.0; inherited LTX components retain the LTX-2 Community License
Project-URL: Homepage, https://omni-reason.com/
Project-URL: Documentation, https://platform.omni-reason.com/docs
Project-URL: Model, https://huggingface.co/Omni-Reason/Omni-Reason-1
Project-URL: Platform, https://platform.omni-reason.com/docs
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: toolkit/LICENSE
License-File: toolkit/NOTICE
License-File: toolkit/THIRD_PARTY_NOTICES.md
License-File: model/omni_reason/resources/licenses/GEMMA-PROHIBITED-USE.txt
License-File: model/omni_reason/resources/licenses/LICENSE-APACHE-2.0.txt
License-File: model/omni_reason/resources/licenses/LICENSE-GEMMA.txt
License-File: model/omni_reason/resources/licenses/LICENSE-LTX.txt
License-File: model/omni_reason/resources/licenses/NOTICE.txt
License-File: model/omni_reason/_vendor/NOTICE.md
Provides-Extra: tools
Requires-Dist: boto3<2,>=1.34; extra == "tools"
Provides-Extra: model
Requires-Dist: diffusers==0.36.0; extra == "model"
Requires-Dist: transformers==4.57.6; extra == "model"
Requires-Dist: huggingface-hub==0.36.2; extra == "model"
Requires-Dist: safetensors==0.7.0; extra == "model"
Requires-Dist: accelerate==1.12.0; extra == "model"
Requires-Dist: einops==0.8.2; extra == "model"
Requires-Dist: numpy==2.3.5; extra == "model"
Requires-Dist: pillow==13.0.0; extra == "model"
Requires-Dist: PyYAML==6.0.3; extra == "model"
Requires-Dist: av==16.1.0; extra == "model"
Requires-Dist: sentencepiece==0.2.1; extra == "model"
Requires-Dist: pydantic==2.12.5; extra == "model"
Requires-Dist: rich==14.2.0; extra == "model"
Requires-Dist: httpx==0.28.1; extra == "model"
Dynamic: license-file

# Use Omni-Reason from your terminal

**“Generate a video online, run your own model, or work with research data through one command.”**

Install one package. Online generation runs on Platform; local model commands
run on your hardware. Data and Benchmark commands run on your CPU.

## Install

Use Python 3.11 or newer in a dedicated environment:

```bash
python3 -m venv .venv
source .venv/bin/activate
python -m pip install omni-reason==1.0.0
omni-reason --help
```

The base package includes every command's implementation, with no required
third-party Python dependencies. It does not download weights, install PyTorch
or sign you in. Add dependencies only for the workflows you need:

| Workflow | Preparation |
| --- | --- |
| Hosted generation | Base installation, then an approved Platform account |
| Data and Benchmark | `python -m pip install "omni-reason[tools]==1.0.0"`; FFmpeg/ffprobe for media |
| Existing Trainium or CUDA environment | Base installation in that same environment |
| New local inference environment | Follow the [Trainium](https://huggingface.co/Omni-Reason/Omni-Reason-1) or [CUDA](https://huggingface.co/Omni-Reason/Omni-Reason-1) guide |

`[tools]` and `[model]` are dependency options for this same package, not separate
Omni-Reason packages. `[model]` adds the shared inference libraries after the
selected hardware's PyTorch/runtime is prepared. It does not choose a CUDA build,
install Neuron or provision an accelerator. Installing it into an unprepared
environment can let dependency resolution choose a generic PyTorch build; use the
hardware guide first. Fully prepared environments need only the base package.

Software installation and local commands require no Platform login. Access to
model weights and research media is separate from installing their code.

## Generate a video on Platform

Platform is a free, research-only service with invitation access.
[Request an access code](https://platform.omni-reason.com/request-access), register,
then approve your terminal login in the browser:

```bash
omni-reason login
omni-reason doctor
omni-reason example robot --output robot-answer.mp4
```

The example fetches and verifies its inputs, submits one task, waits and saves
the video. Your tasks also appear in your private Platform Gallery. No local GPU
or model download is needed.

Use **TV2V** for your own input video and instruction:

```bash
omni-reason tv2v "Highlight the visible robot in green." \
  --input input.mp4 --output robot-answer-custom.mp4
```

Use **RV2V** when you also supply a reference image or video:

```bash
omni-reason rv2v "Colorize the video using the reference image." \
  --input grayscale.mp4 --reference reference.png --output colorized-answer.mp4
```

These are two input forms for the same hosted model. `rv2v` requires a reference;
`tv2v --reference` remains supported. Repeat an interrupted request with the
same output path to recover it, or use `omni-reason jobs watch JOB_ID`.
Choose a different output path when you intend to submit a new task.

For the included reference example, run
`omni-reason example colorization --output colorization-answer.mp4`.
The [API and CLI guide](https://platform.omni-reason.com/docs) covers media
selection, output duration, queues, cancellation and downloads.

## Run your own model

Prepare one hardware environment, then check it without downloading weights:

```bash
omni-reason model --backend trainium --chip-ids 0 --doctor
```

On a prepared CUDA host:

```bash
omni-reason model --backend cuda --doctor
omni-reason model --example robot --output work/robot-answer
```

The runner downloads missing model/example assets, checks their hashes and writes
an MP4 plus generation settings. Use `--download-only` to prepare assets,
`--dry-run` to inspect settings, or `--offline` with verified local assets.
The [model guides](https://huggingface.co/Omni-Reason/Omni-Reason-1)
explain memory requirements, reference inputs, custom windows and the S3 mirror.
Local inference does not use your Platform queue or allowance.

## Use Data and Benchmark

After installing `[tools]`, check your environment and prepare the complete
170-sample Mini evaluation mapping without downloading media:

```bash
omni-reason data doctor
omni-reason benchmark prepare --view mini --output work/mini.json
```

For downloads, configure [resource access](https://huggingface.co/Omni-Reason/Omni-Reason-1).
With an authorized AWS profile:

```bash
omni-reason data tasks --search robot --profile omni-release
omni-reason data download --task tv2v:Task_264 --limit-per-task 1 \
  --output work/robot-data --profile omni-release
```

Downloads preview the selection and size first. Repeat with `--execute` to
transfer media. Authorized EC2 roles can omit `--profile`; personal Data grants
use `--access-file`. Platform login does not grant Data or Benchmark access.

Continue with the [Data guide](https://huggingface.co/datasets/Omni-Reason/Omni-Reason-Data)
or [Benchmark tutorial](https://huggingface.co/datasets/Omni-Reason/Omni-Reason-Bench).
New GPT judgments use your own API; the project does not host a Judge service.

## Develop, train and reproduce

Get the [source](https://omni-reason.com/)
to modify methods, construct tasks, train or reproduce paper results. From the
repository root, `python -m pip install -e .` installs this same command without
changing a prepared accelerator environment. Existing `python omni` workflows
remain supported.

Training uses the [source and fixed Trainium container](https://omni-reason.com/);
there is no separate training package to install. The guide covers encoding,
training, complete-state recovery and exporting a model for inference.

## Offline installation and licenses

The matching wheel is available through the
[HF package directory](https://huggingface.co/Omni-Reason/Omni-Reason-1/tree/main/packages)
and S3 `releases/v1.0.0/code/python/manifest.json`. Verify `SHA256SUMS` before
installing the wheel. These mirrors contain the same accepted distribution;
private resource access still applies.

Original project contributions and inherited components retain their respective
terms. Read the [component licenses](https://huggingface.co/Omni-Reason/Omni-Reason-1)
and bundled notices. Installing code does not grant data or hosted-service access.
