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- config.json +1 -1
- model.safetensors +1 -1
- runs/May30_13-06-18_pcslab-MS-7A69/events.out.tfevents.1717045581.pcslab-MS-7A69.62372.0 +3 -0
- runs/May30_13-07-47_pcslab-MS-7A69/events.out.tfevents.1717045675.pcslab-MS-7A69.62372.1 +3 -0
- runs/May30_13-09-18_pcslab-MS-7A69/events.out.tfevents.1717045760.pcslab-MS-7A69.62372.2 +3 -0
- runs/May30_13-11-24_pcslab-MS-7A69/events.out.tfevents.1717045885.pcslab-MS-7A69.62732.0 +3 -0
- runs/May30_13-12-25_pcslab-MS-7A69/events.out.tfevents.1717045949.pcslab-MS-7A69.62732.1 +3 -0
- runs/May30_13-13-44_pcslab-MS-7A69/events.out.tfevents.1717046025.pcslab-MS-7A69.62900.0 +3 -0
- runs/May30_13-35-40_pcslab-MS-7A69/events.out.tfevents.1717047340.pcslab-MS-7A69.63271.0 +3 -0
- training_args.bin +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"GitForCausalLM"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "ChiJuiChen/GenerativeImage2Text-naruto",
|
| 3 |
"architectures": [
|
| 4 |
"GitForCausalLM"
|
| 5 |
],
|
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:bf696c430dc25e873f2dac2d4a0b7e712bda533405e708630c0273fd3dcbe7b6
|
| 3 |
size 706516040
|
runs/May30_13-06-18_pcslab-MS-7A69/events.out.tfevents.1717045581.pcslab-MS-7A69.62372.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0db29a6461050aebf359b506153f2216072c60fcdc708938a03067a66f1580a
|
| 3 |
+
size 5188
|
runs/May30_13-07-47_pcslab-MS-7A69/events.out.tfevents.1717045675.pcslab-MS-7A69.62372.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d175c06225c5941caaa5af288746b27baad98cc6993fb0c3fb3ae86e78e9524f
|
| 3 |
+
size 5188
|
runs/May30_13-09-18_pcslab-MS-7A69/events.out.tfevents.1717045760.pcslab-MS-7A69.62372.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c85d548b73b27a865e970fdb7aeab7e231392b197063afd649fa528acbf1bfbc
|
| 3 |
+
size 5188
|
runs/May30_13-11-24_pcslab-MS-7A69/events.out.tfevents.1717045885.pcslab-MS-7A69.62732.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e09a270856ca04fff78cd462d441b81b689548daf46aaa9e7fe95d3b8ceeb47f
|
| 3 |
+
size 5188
|
runs/May30_13-12-25_pcslab-MS-7A69/events.out.tfevents.1717045949.pcslab-MS-7A69.62732.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bfca7ab5a77feeacfa971690cfd4b8e06e71a413fe3ac84dd6fb8584cff9585d
|
| 3 |
+
size 5188
|
runs/May30_13-13-44_pcslab-MS-7A69/events.out.tfevents.1717046025.pcslab-MS-7A69.62900.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3689eda1e935374a057cfffb84fffb429c4056a95ccee09833e46696b8091434
|
| 3 |
+
size 5188
|
runs/May30_13-35-40_pcslab-MS-7A69/events.out.tfevents.1717047340.pcslab-MS-7A69.63271.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be51b8bd4724af8181158471080b3f96f189ef3d39957b54ea807965b63e32f0
|
| 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:b546a2cb0f305bd9b3970d85763b7c13635a6cb8c5e4735c1256d31ede3d9939
|
| 3 |
size 5048
|