multimodel
Collection
4 items • Updated
How to use guo1006/git-base-pokemon-captioning-generate with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-text-to-text", model="guo1006/git-base-pokemon-captioning-generate") # Load model directly
from transformers import AutoProcessor, AutoModelForImageTextToText
processor = AutoProcessor.from_pretrained("guo1006/git-base-pokemon-captioning-generate")
model = AutoModelForImageTextToText.from_pretrained("guo1006/git-base-pokemon-captioning-generate")How to use guo1006/git-base-pokemon-captioning-generate with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "guo1006/git-base-pokemon-captioning-generate"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "guo1006/git-base-pokemon-captioning-generate",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/guo1006/git-base-pokemon-captioning-generate
How to use guo1006/git-base-pokemon-captioning-generate with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "guo1006/git-base-pokemon-captioning-generate" \
--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": "guo1006/git-base-pokemon-captioning-generate",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "guo1006/git-base-pokemon-captioning-generate" \
--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": "guo1006/git-base-pokemon-captioning-generate",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use guo1006/git-base-pokemon-captioning-generate with Docker Model Runner:
docker model run hf.co/guo1006/git-base-pokemon-captioning-generate
This model was trained from scratch on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Wer Score |
|---|---|---|---|---|
| 4.6973 | 4.1702 | 100 | 0.4374 | 15.2827 |
| 0.1366 | 8.3404 | 200 | 0.1118 | 4.2933 |
| 0.0431 | 12.5106 | 300 | 0.1225 | 4.5509 |
| 0.0115 | 16.6809 | 400 | 0.1358 | 5.0092 |
| 0.003 | 20.8511 | 500 | 0.1445 | 5.2642 |
| 0.0015 | 25.0 | 600 | 0.1506 | 4.6816 |
| 0.0012 | 29.1702 | 700 | 0.1537 | 4.3778 |
| 0.0011 | 33.3404 | 800 | 0.1542 | 4.1532 |
| 0.001 | 37.5106 | 900 | 0.1552 | 4.3699 |
docker model run hf.co/guo1006/git-base-pokemon-captioning-generate