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"], )# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotImageClassification processor = AutoProcessor.from_pretrained("AnasMohamed/video-llava") model = AutoModelForZeroShotImageClassification.from_pretrained("AnasMohamed/video-llava") - llama-cpp-python
How to use AnasMohamed/video-llava with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="AnasMohamed/video-llava", filename="ggml-model-f32-quantized.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use AnasMohamed/video-llava with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -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-server -hf AnasMohamed/video-llava:F32 # Run inference directly in the terminal: llama-cli -hf AnasMohamed/video-llava:F32
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -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/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -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
- LM Studio
- Jan
- Ollama
How to use AnasMohamed/video-llava with Ollama:
ollama run hf.co/AnasMohamed/video-llava:F32
- Unsloth Studio new
How to use AnasMohamed/video-llava with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AnasMohamed/video-llava to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for AnasMohamed/video-llava to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for AnasMohamed/video-llava to start chatting
- 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
output = llm(
"Once upon a time,",
max_tokens=512,
echo=True
)
print(output)clip-vit-large-patch14-336
This model was trained from scratch on an unknown dataset. It achieves the following results on the evaluation set:
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- optimizer: None
- training_precision: float32
Training results
Framework versions
- Transformers 4.21.3
- TensorFlow 2.8.2
- Tokenizers 0.12.1
- Downloads last month
- 197
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="AnasMohamed/video-llava", filename="", )