Image-Text-to-Text
Transformers
Safetensors
English
mipha_phi
text-generation
llm
lmm
conversational
olympus
llava
vision-language
Instructions to use Yuanze/Olympus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yuanze/Olympus with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Yuanze/Olympus") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Yuanze/Olympus", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Yuanze/Olympus with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Yuanze/Olympus" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Yuanze/Olympus", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Yuanze/Olympus
- SGLang
How to use Yuanze/Olympus 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 "Yuanze/Olympus" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Yuanze/Olympus", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "Yuanze/Olympus" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Yuanze/Olympus", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Yuanze/Olympus with Docker Model Runner:
docker model run hf.co/Yuanze/Olympus
Improve model card: Add Github link, and update pipeline tag
Browse filesThis PR adds:
- A Github link, so people can find your code.
- A `pipeline_tag`, ensuring people can find your model at https://huggingface.co/models?pipeline_tag=image-text-to-text.
README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
| 3 |
datasets:
|
| 4 |
- liuhaotian/LLaVA-Instruct-150K
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
-
base_model:
|
| 8 |
-
- zhumj34/Mipha-3B
|
| 9 |
-
pipeline_tag: image-text-to-text
|
| 10 |
library_name: transformers
|
|
|
|
|
|
|
| 11 |
tags:
|
| 12 |
- transformers
|
| 13 |
- llm
|
|
@@ -15,9 +15,10 @@ tags:
|
|
| 15 |
- conversational
|
| 16 |
- olympus
|
| 17 |
- llava
|
| 18 |
-
- text-
|
| 19 |
- vision-language
|
| 20 |
---
|
|
|
|
| 21 |
<p align="center">
|
| 22 |
<img src="https://github.com/yuanze-lin/Olympus/blob/main/asset/olympus.png?raw=true" alt="icon" width="150" height="150" style="vertical-align:middle; margin-right:5px;" />
|
| 23 |
</p>
|
|
@@ -162,6 +163,8 @@ bash scripts/mipha/eval/vqav2.sh
|
|
| 162 |
<img src="https://github.com/yuanze-lin/Olympus/blob/main/asset/application.png?raw=true" alt="Capacity" width="1000" height="100"/>
|
| 163 |
</p>
|
| 164 |
|
|
|
|
|
|
|
| 165 |
## Citation
|
| 166 |
|
| 167 |
If you find Olympus useful for your research and applications, please cite using this BibTeX:
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- zhumj34/Mipha-3B
|
| 4 |
datasets:
|
| 5 |
- liuhaotian/LLaVA-Instruct-150K
|
| 6 |
language:
|
| 7 |
- en
|
|
|
|
|
|
|
|
|
|
| 8 |
library_name: transformers
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
pipeline_tag: image-text-to-text
|
| 11 |
tags:
|
| 12 |
- transformers
|
| 13 |
- llm
|
|
|
|
| 15 |
- conversational
|
| 16 |
- olympus
|
| 17 |
- llava
|
| 18 |
+
- image-text-to-text
|
| 19 |
- vision-language
|
| 20 |
---
|
| 21 |
+
|
| 22 |
<p align="center">
|
| 23 |
<img src="https://github.com/yuanze-lin/Olympus/blob/main/asset/olympus.png?raw=true" alt="icon" width="150" height="150" style="vertical-align:middle; margin-right:5px;" />
|
| 24 |
</p>
|
|
|
|
| 163 |
<img src="https://github.com/yuanze-lin/Olympus/blob/main/asset/application.png?raw=true" alt="Capacity" width="1000" height="100"/>
|
| 164 |
</p>
|
| 165 |
|
| 166 |
+
You can find the code repository at: https://github.com/yuanze-lin/Olympus
|
| 167 |
+
|
| 168 |
## Citation
|
| 169 |
|
| 170 |
If you find Olympus useful for your research and applications, please cite using this BibTeX:
|