Zero-Shot Image Classification
Transformers
PyTorch
TensorFlow
Safetensors
GGUF
clip
generated_from_keras_callback
Instructions to use AnasMohamed/video-llava with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AnasMohamed/video-llava with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-image-classification", model="AnasMohamed/video-llava") pipe( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png", candidate_labels=["animals", "humans", "landscape"], )# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("AnasMohamed/video-llava") model = AutoModelForZeroShotImageClassification.from_pretrained("AnasMohamed/video-llava", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AnasMohamed/video-llava with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf AnasMohamed/video-llava:F32 # Run inference directly in the terminal: llama cli -hf AnasMohamed/video-llava:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AnasMohamed/video-llava:F32 # Run inference directly in the terminal: llama cli -hf AnasMohamed/video-llava:F32
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf AnasMohamed/video-llava:F32 # Run inference directly in the terminal: ./build/bin/llama cli -hf AnasMohamed/video-llava:F32
Use Docker
docker model run hf.co/AnasMohamed/video-llava:F32
- Llama new
- LM Studio
- Jan
- Ollama
How to use AnasMohamed/video-llava with Ollama:
ollama run hf.co/AnasMohamed/video-llava:F32
- Unsloth Desktop
- Docker Model Runner
How to use AnasMohamed/video-llava with Docker Model Runner:
docker model run hf.co/AnasMohamed/video-llava:F32
- Lemonade
How to use AnasMohamed/video-llava with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AnasMohamed/video-llava:F32
Run and chat with the model
lemonade run user.video-llava-F32
List all available models
lemonade list
- Atomic Chat
Download preprocessor_config.json from AnasMohamed/video-llava: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/AnasMohamed/video-llava/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://AnasMohamed/video-llava/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/AnasMohamed/video-llava/resolve/main/preprocessor_config.json
316 Bytes
| { | |
| "crop_size": 336, | |
| "do_center_crop": true, | |
| "do_normalize": true, | |
| "do_resize": true, | |
| "feature_extractor_type": "CLIPFeatureExtractor", | |
| "image_mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "image_std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ], | |
| "resample": 3, | |
| "size": 336 | |
| } | |