Instructions to use agestau/pkemon_cap_v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use agestau/pkemon_cap_v0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="agestau/pkemon_cap_v0")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("agestau/pkemon_cap_v0") model = AutoModelForImageTextToText.from_pretrained("agestau/pkemon_cap_v0") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use agestau/pkemon_cap_v0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "agestau/pkemon_cap_v0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "agestau/pkemon_cap_v0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/agestau/pkemon_cap_v0
- SGLang
How to use agestau/pkemon_cap_v0 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 "agestau/pkemon_cap_v0" \ --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": "agestau/pkemon_cap_v0", "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 "agestau/pkemon_cap_v0" \ --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": "agestau/pkemon_cap_v0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use agestau/pkemon_cap_v0 with Docker Model Runner:
docker model run hf.co/agestau/pkemon_cap_v0
pkemon_cap_v0
This model is a fine-tuned version of microsoft/git-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 7.6491
- Wer Score: 127.2727
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 5e-05
- train_batch_size: 2
- eval_batch_size: 2
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 4
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Wer Score |
|---|---|---|---|---|
| 11.2497 | 0.17 | 2 | 10.0191 | 96.6364 |
| 9.9157 | 0.35 | 4 | 9.5544 | 111.1818 |
| 9.4907 | 0.52 | 6 | 9.1167 | 143.5909 |
| 9.0975 | 0.7 | 8 | 8.8422 | 154.5455 |
| 8.8568 | 0.87 | 10 | 8.6143 | 144.6364 |
| 8.6299 | 1.04 | 12 | 8.4336 | 118.7727 |
| 8.4659 | 1.22 | 14 | 8.2808 | 112.4091 |
| 8.3233 | 1.39 | 16 | 8.1538 | 124.3636 |
| 8.2213 | 1.57 | 18 | 8.0420 | 122.8636 |
| 8.0876 | 1.74 | 20 | 7.9463 | 124.5 |
| 7.9863 | 1.91 | 22 | 7.8647 | 153.9545 |
| 7.9169 | 2.09 | 24 | 7.7966 | 156.0 |
| 7.8652 | 2.26 | 26 | 7.7400 | 155.5455 |
| 7.8245 | 2.43 | 28 | 7.6962 | 142.0909 |
| 7.7512 | 2.61 | 30 | 7.6659 | 129.9545 |
| 7.7344 | 2.78 | 32 | 7.6491 | 127.2727 |
Framework versions
- Transformers 4.28.0
- Pytorch 2.0.0+cu118
- Datasets 2.12.0
- Tokenizers 0.13.3
- Downloads last month
- 5
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support