Instructions to use tiny-random/lfm3-omni with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tiny-random/lfm3-omni with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageTextToText model = AutoModelForImageTextToText.from_pretrained("tiny-random/lfm3-omni", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- .meta/create_model.py +1 -1
- .meta/env.json +1 -23
- README.md +4 -4
.meta/create_model.py
CHANGED
|
@@ -225,5 +225,5 @@ def create_model(source_model_id: str, source_revision: str, save_folder: str) -
|
|
| 225 |
create_model(
|
| 226 |
source_model_id="LiquidAI/LFM3-Omni-2B",
|
| 227 |
source_revision="21d75123f86c1f7ffb4bef1ea202710c4e7ebe67",
|
| 228 |
-
save_folder="/tmp/
|
| 229 |
)
|
|
|
|
| 225 |
create_model(
|
| 226 |
source_model_id="LiquidAI/LFM3-Omni-2B",
|
| 227 |
source_revision="21d75123f86c1f7ffb4bef1ea202710c4e7ebe67",
|
| 228 |
+
save_folder="/tmp/lfm3-omni",
|
| 229 |
)
|
.meta/env.json
CHANGED
|
@@ -16,29 +16,7 @@
|
|
| 16 |
"torchvision": "0.28.0+cu126",
|
| 17 |
"transformers": "5.22.0.dev0"
|
| 18 |
},
|
| 19 |
-
"cuda": "12.6"
|
| 20 |
-
"hardware": {
|
| 21 |
-
"gpu_model": "NVIDIA H20"
|
| 22 |
-
}
|
| 23 |
-
},
|
| 24 |
-
"transformers": {
|
| 25 |
-
"python": "3.12.13",
|
| 26 |
-
"packages": {
|
| 27 |
-
"huggingface_hub": "2.3.0",
|
| 28 |
-
"numpy": "2.5.2",
|
| 29 |
-
"pillow": "12.3.0",
|
| 30 |
-
"safetensors": "0.8.0",
|
| 31 |
-
"soundfile": "0.13.1",
|
| 32 |
-
"tokenizers": "0.23.3",
|
| 33 |
-
"torch": "2.13.0+cu126",
|
| 34 |
-
"torchvision": "0.28.0+cu126",
|
| 35 |
-
"transformers": "5.22.0.dev0",
|
| 36 |
-
"triton": "3.7.1"
|
| 37 |
-
},
|
| 38 |
-
"cuda": "12.6",
|
| 39 |
-
"hardware": {
|
| 40 |
-
"gpu_model": "NVIDIA H20"
|
| 41 |
-
}
|
| 42 |
}
|
| 43 |
}
|
| 44 |
}
|
|
|
|
| 16 |
"torchvision": "0.28.0+cu126",
|
| 17 |
"transformers": "5.22.0.dev0"
|
| 18 |
},
|
| 19 |
+
"cuda": "12.6"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
}
|
| 22 |
}
|
README.md
CHANGED
|
@@ -28,7 +28,7 @@ This is a randomly initialized tiny model based on [LiquidAI/LFM3-Omni-2B](https
|
|
| 28 |
| Vocabulary rows / tying | 128,000 / tied | Same |
|
| 29 |
| Stored precision | BF16; codec ISTFT window FP32 | Same |
|
| 30 |
|
| 31 |
-
Text
|
| 32 |
|
| 33 |
| File path | Size |
|
| 34 |
|------|------|
|
|
@@ -37,7 +37,7 @@ Text and vision geometry follows [tiny-random/lfm3-vl](https://huggingface.co/ti
|
|
| 37 |
|
| 38 |
### Example usage
|
| 39 |
|
| 40 |
-
#### Transformers (
|
| 41 |
|
| 42 |
Load the included pinned upstream implementation with `trust_remote_code=True`. The example sends a 16 kHz spoken question together with an image and four predecoded video frames, answers as text, then synthesizes 24 kHz speech through the bundled LiquidCodec. The Triton short-conv path requires CUDA.
|
| 43 |
|
|
@@ -128,7 +128,7 @@ def run_transformers(model_id: str):
|
|
| 128 |
|
| 129 |
|
| 130 |
if __name__ == "__main__":
|
| 131 |
-
run_transformers(model_id="scratch/
|
| 132 |
```
|
| 133 |
|
| 134 |
### Creating this repo
|
|
@@ -139,6 +139,6 @@ if __name__ == "__main__":
|
|
| 139 |
|
| 140 |
### Change log
|
| 141 |
|
| 142 |
-
- 2026-11-03: Initial version
|
| 143 |
|
| 144 |
*This repo is generated by GPT-6.1-Sol.*
|
|
|
|
| 28 |
| Vocabulary rows / tying | 128,000 / tied | Same |
|
| 29 |
| Stored precision | BF16; codec ISTFT window FP32 | Same |
|
| 30 |
|
| 31 |
+
Text/vision geometry follows [tiny-random/lfm3-vl](https://huggingface.co/tiny-random/lfm3-vl). The only runtime change lets the bundled codec LFM3 backbone read its dimensions from config.
|
| 32 |
|
| 33 |
| File path | Size |
|
| 34 |
|------|------|
|
|
|
|
| 37 |
|
| 38 |
### Example usage
|
| 39 |
|
| 40 |
+
#### Transformers (unverified)
|
| 41 |
|
| 42 |
Load the included pinned upstream implementation with `trust_remote_code=True`. The example sends a 16 kHz spoken question together with an image and four predecoded video frames, answers as text, then synthesizes 24 kHz speech through the bundled LiquidCodec. The Triton short-conv path requires CUDA.
|
| 43 |
|
|
|
|
| 128 |
|
| 129 |
|
| 130 |
if __name__ == "__main__":
|
| 131 |
+
run_transformers(model_id="scratch/lfm3-omni")
|
| 132 |
```
|
| 133 |
|
| 134 |
### Creating this repo
|
|
|
|
| 139 |
|
| 140 |
### Change log
|
| 141 |
|
| 142 |
+
- 2026-11-03: Initial version: omni text/vision/16kHz-audio encoder, maskgit depth decoder and a config-driven tiny bundled 24 kHz LiquidCodec.
|
| 143 |
|
| 144 |
*This repo is generated by GPT-6.1-Sol.*
|