Instructions to use ChiJuiChen/GenerativeImage2Text-naruto with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ChiJuiChen/GenerativeImage2Text-naruto with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="ChiJuiChen/GenerativeImage2Text-naruto")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("ChiJuiChen/GenerativeImage2Text-naruto") model = AutoModelForImageTextToText.from_pretrained("ChiJuiChen/GenerativeImage2Text-naruto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use ChiJuiChen/GenerativeImage2Text-naruto with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ChiJuiChen/GenerativeImage2Text-naruto" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ChiJuiChen/GenerativeImage2Text-naruto", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ChiJuiChen/GenerativeImage2Text-naruto
- SGLang
How to use ChiJuiChen/GenerativeImage2Text-naruto 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 "ChiJuiChen/GenerativeImage2Text-naruto" \ --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": "ChiJuiChen/GenerativeImage2Text-naruto", "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 "ChiJuiChen/GenerativeImage2Text-naruto" \ --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": "ChiJuiChen/GenerativeImage2Text-naruto", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ChiJuiChen/GenerativeImage2Text-naruto with Docker Model Runner:
docker model run hf.co/ChiJuiChen/GenerativeImage2Text-naruto
Training in progress, step 50
Browse files
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 706516040
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fbee5bdb2aed308cf38d26e8384ea5666809080c1d3eb952d4857171dbeefa21
|
| 3 |
size 706516040
|
runs/May30_15-14-03_pcslab-MS-7A69/events.out.tfevents.1717053246.pcslab-MS-7A69.64771.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:072db15dc488feb81858168e81d098133a877018a78cd5218d7659b7b0193691
|
| 3 |
+
size 6031
|
runs/May30_15-15-32_pcslab-MS-7A69/events.out.tfevents.1717053333.pcslab-MS-7A69.66074.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0096ed293a2445c570f7bf15ce89b9f830170fe01fc446e9b022493068af6a2e
|
| 3 |
+
size 5486
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5048
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed0ce686baa497e869bb5d4226bcf0bc8b7f416298405bfaee9f4918644ddbf6
|
| 3 |
size 5048
|