Instructions to use griffio/git-base-one-5e-5-25 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use griffio/git-base-one-5e-5-25 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="griffio/git-base-one-5e-5-25")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("griffio/git-base-one-5e-5-25") model = AutoModelForImageTextToText.from_pretrained("griffio/git-base-one-5e-5-25") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use griffio/git-base-one-5e-5-25 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "griffio/git-base-one-5e-5-25" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "griffio/git-base-one-5e-5-25", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/griffio/git-base-one-5e-5-25
- SGLang
How to use griffio/git-base-one-5e-5-25 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 "griffio/git-base-one-5e-5-25" \ --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": "griffio/git-base-one-5e-5-25", "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 "griffio/git-base-one-5e-5-25" \ --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": "griffio/git-base-one-5e-5-25", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use griffio/git-base-one-5e-5-25 with Docker Model Runner:
docker model run hf.co/griffio/git-base-one-5e-5-25
# Load model directly
from transformers import AutoProcessor, AutoModelForImageTextToText
processor = AutoProcessor.from_pretrained("griffio/git-base-one-5e-5-25")
model = AutoModelForImageTextToText.from_pretrained("griffio/git-base-one-5e-5-25")Quick Links
git-base-one-5e-5-25
This model is a fine-tuned version of microsoft/git-base on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 3.8238
- Wer Score: 5.8
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: 25
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Wer Score |
|---|---|---|---|---|
| No log | 1.25 | 5 | 9.5084 | 50.1 |
| 9.9196 | 2.5 | 10 | 8.4842 | 64.85 |
| 9.9196 | 3.75 | 15 | 7.9215 | 67.6 |
| 8.0697 | 5.0 | 20 | 7.4826 | 66.45 |
| 8.0697 | 6.25 | 25 | 7.0776 | 53.95 |
| 7.2067 | 7.5 | 30 | 6.6926 | 18.05 |
| 7.2067 | 8.75 | 35 | 6.3268 | 17.6 |
| 6.4594 | 10.0 | 40 | 5.9807 | 19.8 |
| 6.4594 | 11.25 | 45 | 5.6568 | 19.35 |
| 5.7908 | 12.5 | 50 | 5.3563 | 6.15 |
| 5.7908 | 13.75 | 55 | 5.0803 | 6.2 |
| 5.2135 | 15.0 | 60 | 4.8305 | 5.8 |
| 5.2135 | 16.25 | 65 | 4.6068 | 5.75 |
| 4.7358 | 17.5 | 70 | 4.4111 | 5.8 |
| 4.7358 | 18.75 | 75 | 4.2427 | 5.8 |
| 4.3652 | 20.0 | 80 | 4.1027 | 5.8 |
| 4.3652 | 21.25 | 85 | 3.9908 | 5.8 |
| 4.1076 | 22.5 | 90 | 3.9070 | 5.8 |
| 4.1076 | 23.75 | 95 | 3.8515 | 5.8 |
| 3.9616 | 25.0 | 100 | 3.8238 | 5.8 |
Framework versions
- Transformers 4.44.2
- Pytorch 2.5.0+cu121
- Datasets 3.0.2
- Tokenizers 0.19.1
- Downloads last month
- 7
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for griffio/git-base-one-5e-5-25
Base model
microsoft/git-base
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="griffio/git-base-one-5e-5-25")