Instructions to use harvey2333/omni_video_assistant_6_1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use harvey2333/omni_video_assistant_6_1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="harvey2333/omni_video_assistant_6_1")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("harvey2333/omni_video_assistant_6_1", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use harvey2333/omni_video_assistant_6_1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "harvey2333/omni_video_assistant_6_1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "harvey2333/omni_video_assistant_6_1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/harvey2333/omni_video_assistant_6_1
- SGLang
How to use harvey2333/omni_video_assistant_6_1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "harvey2333/omni_video_assistant_6_1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "harvey2333/omni_video_assistant_6_1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "harvey2333/omni_video_assistant_6_1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "harvey2333/omni_video_assistant_6_1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use harvey2333/omni_video_assistant_6_1 with Docker Model Runner:
docker model run hf.co/harvey2333/omni_video_assistant_6_1
Omni-VideoAssistant
This is a Video Question Answering Large Language model. code base is here for more details:.
π Updates
- [2023.12.09] π€Hugging Face A Better Model V6.1 are available now! Welcome to watch this repository for the latest updates.
- [2023.12.06] Gradio & CLI Inference Demo are available now.
- [2023.12.01] π€Hugging Face Preview Model are available now!
- Downloads last month
- 6