Instructions to use akhilaaa3/Jev-Omni with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use akhilaaa3/Jev-Omni with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="akhilaaa3/Jev-Omni")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("akhilaaa3/Jev-Omni") model = AutoModelForMultimodalLM.from_pretrained("akhilaaa3/Jev-Omni", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download example.py from akhilaaa3/Jev-Omni: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/akhilaaa3/Jev-Omni/resolve/cb4a0ff8749315888508b9f7da76e33413f5f1e9/example.py
- Command line
-
hf download hf://akhilaaa3/Jev-Omni@cb4a0ff8749315888508b9f7da76e33413f5f1e9/example.py
-
curl -L -o example.py https://huggingface.co/akhilaaa3/Jev-Omni/resolve/cb4a0ff8749315888508b9f7da76e33413f5f1e9/example.py
389 Bytes
| from jev_omni import load_jev_omni | |
| classifier = load_jev_omni() | |
| # Text. For other modalities, set modality="image"/"audio"/"video" and | |
| # media="/path/to/file". Video is sampled to 16 frames; audio is capped at 30 s. | |
| result = classifier.predict( | |
| state="The meeting starts at 10 AM. It is now 9 AM.", | |
| question="Has the meeting started?", | |
| options=["Yes", "No"], | |
| ) | |
| print(result) | |