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:3aafe51659a33f4984840107f792d2acbf1d4ecb62c18e4eaddb9a3591e0cf9a
|
| 3 |
size 706516040
|
runs/May30_13-35-40_pcslab-MS-7A69/events.out.tfevents.1717047340.pcslab-MS-7A69.63271.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9b752841c52fe13b51a76ca6d1b8caeef6cbe7895bee92508c5a4bd677824d3
|
| 3 |
+
size 6031
|
runs/May30_13-36-39_pcslab-MS-7A69/events.out.tfevents.1717047400.pcslab-MS-7A69.63271.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d20b14bfe375f62bfd48300464a857e9d3fad14b91c037bda8123895a33a87b7
|
| 3 |
+
size 5506
|
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:16257501f80946c8e35205f193cdee52a00f91bd2018c7e6c63611d91af97c57
|
| 3 |
size 5048
|