Instructions to use Trkkk/git-base-bdd100k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Trkkk/git-base-bdd100k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Trkkk/git-base-bdd100k")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Trkkk/git-base-bdd100k") model = AutoModelForMultimodalLM.from_pretrained("Trkkk/git-base-bdd100k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Trkkk/git-base-bdd100k with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Trkkk/git-base-bdd100k" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Trkkk/git-base-bdd100k", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Trkkk/git-base-bdd100k
- SGLang
How to use Trkkk/git-base-bdd100k 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 "Trkkk/git-base-bdd100k" \ --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": "Trkkk/git-base-bdd100k", "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 "Trkkk/git-base-bdd100k" \ --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": "Trkkk/git-base-bdd100k", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Trkkk/git-base-bdd100k with Docker Model Runner:
docker model run hf.co/Trkkk/git-base-bdd100k
End of training
Browse files- README.md +100 -109
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -16,8 +16,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [microsoft/git-base](https://huggingface.co/microsoft/git-base) on an unknown dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
-
- Loss: 0.
|
| 20 |
-
- Wer Score: 2.
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
@@ -37,11 +37,11 @@ More information needed
|
|
| 37 |
|
| 38 |
The following hyperparameters were used during training:
|
| 39 |
- learning_rate: 5e-05
|
| 40 |
-
- train_batch_size:
|
| 41 |
-
- eval_batch_size:
|
| 42 |
- seed: 42
|
| 43 |
- gradient_accumulation_steps: 2
|
| 44 |
-
- total_train_batch_size:
|
| 45 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
- num_epochs: 100
|
|
@@ -49,113 +49,104 @@ The following hyperparameters were used during training:
|
|
| 49 |
|
| 50 |
### Training results
|
| 51 |
|
| 52 |
-
| Training Loss | Epoch
|
| 53 |
-
|:-------------:|:-----:|:----:|:---------------:|:---------:|
|
| 54 |
-
| 10.
|
| 55 |
-
|
|
| 56 |
-
| 8.
|
| 57 |
-
|
|
| 58 |
-
| 7.
|
| 59 |
-
|
|
| 60 |
-
|
|
| 61 |
-
|
|
| 62 |
-
|
|
| 63 |
-
|
|
| 64 |
-
|
|
| 65 |
-
|
|
| 66 |
-
|
|
| 67 |
-
|
|
| 68 |
-
|
|
| 69 |
-
|
|
| 70 |
-
|
|
| 71 |
-
|
|
| 72 |
-
|
|
| 73 |
-
|
|
| 74 |
-
|
|
| 75 |
-
|
|
| 76 |
-
|
|
| 77 |
-
|
|
| 78 |
-
|
|
| 79 |
-
|
|
| 80 |
-
|
|
| 81 |
-
|
|
| 82 |
-
|
|
| 83 |
-
|
|
| 84 |
-
|
|
| 85 |
-
|
|
| 86 |
-
|
|
| 87 |
-
|
|
| 88 |
-
| 0.
|
| 89 |
-
| 0.
|
| 90 |
-
| 0.
|
| 91 |
-
| 0.
|
| 92 |
-
| 0.
|
| 93 |
-
| 0.
|
| 94 |
-
| 0.
|
| 95 |
-
| 0.
|
| 96 |
-
| 0.
|
| 97 |
-
| 0.
|
| 98 |
-
| 0.
|
| 99 |
-
| 0.
|
| 100 |
-
| 0.
|
| 101 |
-
| 0.
|
| 102 |
-
| 0.
|
| 103 |
-
| 0.
|
| 104 |
-
| 0.
|
| 105 |
-
| 0.
|
| 106 |
-
| 0.
|
| 107 |
-
| 0.
|
| 108 |
-
| 0.
|
| 109 |
-
| 0.
|
| 110 |
-
| 0.
|
| 111 |
-
| 0.
|
| 112 |
-
| 0.
|
| 113 |
-
| 0.
|
| 114 |
-
| 0.
|
| 115 |
-
| 0.
|
| 116 |
-
| 0.
|
| 117 |
-
| 0.
|
| 118 |
-
| 0.
|
| 119 |
-
| 0.
|
| 120 |
-
| 0.
|
| 121 |
-
| 0.
|
| 122 |
-
| 0.
|
| 123 |
-
| 0.
|
| 124 |
-
| 0.
|
| 125 |
-
| 0.
|
| 126 |
-
| 0.
|
| 127 |
-
| 0.
|
| 128 |
-
| 0.
|
| 129 |
-
| 0.
|
| 130 |
-
| 0.
|
| 131 |
-
| 0.
|
| 132 |
-
| 0.
|
| 133 |
-
| 0.
|
| 134 |
-
| 0.
|
| 135 |
-
| 0.
|
| 136 |
-
| 0.
|
| 137 |
-
| 0.
|
| 138 |
-
| 0.
|
| 139 |
-
| 0.
|
| 140 |
-
| 0.
|
| 141 |
-
| 0.
|
| 142 |
-
| 0.
|
| 143 |
-
| 0.
|
| 144 |
-
| 0.
|
| 145 |
-
| 0.0132 | 92.0 | 276 | 0.4158 | 2.4016 |
|
| 146 |
-
| 0.0134 | 93.0 | 279 | 0.4158 | 2.3803 |
|
| 147 |
-
| 0.0131 | 94.0 | 282 | 0.4156 | 2.3758 |
|
| 148 |
-
| 0.0131 | 95.0 | 285 | 0.4155 | 2.3647 |
|
| 149 |
-
| 0.013 | 96.0 | 288 | 0.4154 | 2.3669 |
|
| 150 |
-
| 0.0128 | 97.0 | 291 | 0.4157 | 2.3602 |
|
| 151 |
-
| 0.0127 | 98.0 | 294 | 0.4160 | 2.3669 |
|
| 152 |
-
| 0.0127 | 99.0 | 297 | 0.4161 | 2.3730 |
|
| 153 |
-
| 0.0127 | 100.0 | 300 | 0.4161 | 2.3730 |
|
| 154 |
|
| 155 |
|
| 156 |
### Framework versions
|
| 157 |
|
| 158 |
- Transformers 4.45.2
|
| 159 |
-
- Pytorch 2.1.
|
| 160 |
-
- Datasets 3.0.
|
| 161 |
- Tokenizers 0.20.1
|
|
|
|
| 16 |
|
| 17 |
This model is a fine-tuned version of [microsoft/git-base](https://huggingface.co/microsoft/git-base) on an unknown dataset.
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
+
- Loss: 0.4505
|
| 20 |
+
- Wer Score: 2.0146
|
| 21 |
|
| 22 |
## Model description
|
| 23 |
|
|
|
|
| 37 |
|
| 38 |
The following hyperparameters were used during training:
|
| 39 |
- learning_rate: 5e-05
|
| 40 |
+
- train_batch_size: 20
|
| 41 |
+
- eval_batch_size: 20
|
| 42 |
- seed: 42
|
| 43 |
- gradient_accumulation_steps: 2
|
| 44 |
+
- total_train_batch_size: 40
|
| 45 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
- num_epochs: 100
|
|
|
|
| 49 |
|
| 50 |
### Training results
|
| 51 |
|
| 52 |
+
| Training Loss | Epoch | Step | Validation Loss | Wer Score |
|
| 53 |
+
|:-------------:|:-------:|:----:|:---------------:|:---------:|
|
| 54 |
+
| 10.7599 | 0.9091 | 5 | 9.0648 | 7.4053 |
|
| 55 |
+
| 7.8749 | 2.0 | 11 | 7.9846 | 5.4869 |
|
| 56 |
+
| 8.5483 | 2.9091 | 16 | 7.3958 | 5.9978 |
|
| 57 |
+
| 6.5899 | 4.0 | 22 | 6.8122 | 7.3117 |
|
| 58 |
+
| 7.3362 | 4.9091 | 27 | 6.3566 | 5.4206 |
|
| 59 |
+
| 5.6682 | 6.0 | 33 | 5.8240 | 2.6977 |
|
| 60 |
+
| 6.2659 | 6.9091 | 38 | 5.3805 | 2.3248 |
|
| 61 |
+
| 4.7822 | 8.0 | 44 | 4.8517 | 2.4497 |
|
| 62 |
+
| 5.2042 | 8.9091 | 49 | 4.4194 | 2.3350 |
|
| 63 |
+
| 3.9022 | 10.0 | 55 | 3.9023 | 2.0637 |
|
| 64 |
+
| 4.1582 | 10.9091 | 60 | 3.4813 | 2.4832 |
|
| 65 |
+
| 3.0413 | 12.0 | 66 | 2.9854 | 2.5313 |
|
| 66 |
+
| 3.1438 | 12.9091 | 71 | 2.5871 | 2.4395 |
|
| 67 |
+
| 2.2196 | 14.0 | 77 | 2.1313 | 2.5160 |
|
| 68 |
+
| 2.199 | 14.9091 | 82 | 1.7799 | 2.4064 |
|
| 69 |
+
| 1.4819 | 16.0 | 88 | 1.4052 | 2.3929 |
|
| 70 |
+
| 1.3977 | 16.9091 | 93 | 1.1385 | 2.4009 |
|
| 71 |
+
| 0.9006 | 18.0 | 99 | 0.8846 | 2.3711 |
|
| 72 |
+
| 0.8222 | 18.9091 | 104 | 0.7261 | 2.5171 |
|
| 73 |
+
| 0.5272 | 20.0 | 110 | 0.5892 | 2.5583 |
|
| 74 |
+
| 0.4908 | 20.9091 | 115 | 0.5160 | 2.5098 |
|
| 75 |
+
| 0.3346 | 22.0 | 121 | 0.4587 | 2.3434 |
|
| 76 |
+
| 0.3306 | 22.9091 | 126 | 0.4197 | 2.3015 |
|
| 77 |
+
| 0.2313 | 24.0 | 132 | 0.3966 | 2.0754 |
|
| 78 |
+
| 0.237 | 24.9091 | 137 | 0.3828 | 2.2418 |
|
| 79 |
+
| 0.1691 | 26.0 | 143 | 0.3792 | 1.7196 |
|
| 80 |
+
| 0.1745 | 26.9091 | 148 | 0.3729 | 2.2782 |
|
| 81 |
+
| 0.1261 | 28.0 | 154 | 0.3665 | 1.8682 |
|
| 82 |
+
| 0.1294 | 28.9091 | 159 | 0.3745 | 1.8237 |
|
| 83 |
+
| 0.0916 | 30.0 | 165 | 0.3762 | 2.3332 |
|
| 84 |
+
| 0.0944 | 30.9091 | 170 | 0.3758 | 1.9060 |
|
| 85 |
+
| 0.0682 | 32.0 | 176 | 0.3796 | 2.1471 |
|
| 86 |
+
| 0.0703 | 32.9091 | 181 | 0.3846 | 1.8350 |
|
| 87 |
+
| 0.0512 | 34.0 | 187 | 0.3891 | 2.0670 |
|
| 88 |
+
| 0.0537 | 34.9091 | 192 | 0.3909 | 2.0998 |
|
| 89 |
+
| 0.0392 | 36.0 | 198 | 0.3944 | 2.2658 |
|
| 90 |
+
| 0.0418 | 36.9091 | 203 | 0.3999 | 2.1865 |
|
| 91 |
+
| 0.0314 | 38.0 | 209 | 0.3970 | 2.2338 |
|
| 92 |
+
| 0.0344 | 38.9091 | 214 | 0.4057 | 2.0838 |
|
| 93 |
+
| 0.0252 | 40.0 | 220 | 0.4073 | 2.2542 |
|
| 94 |
+
| 0.0285 | 40.9091 | 225 | 0.4079 | 2.2538 |
|
| 95 |
+
| 0.022 | 42.0 | 231 | 0.4121 | 2.0579 |
|
| 96 |
+
| 0.0237 | 42.9091 | 236 | 0.4097 | 2.1475 |
|
| 97 |
+
| 0.0182 | 44.0 | 242 | 0.4185 | 2.1577 |
|
| 98 |
+
| 0.0203 | 44.9091 | 247 | 0.4151 | 2.2378 |
|
| 99 |
+
| 0.0157 | 46.0 | 253 | 0.4212 | 2.0703 |
|
| 100 |
+
| 0.0177 | 46.9091 | 258 | 0.4212 | 2.0237 |
|
| 101 |
+
| 0.0136 | 48.0 | 264 | 0.4208 | 1.9676 |
|
| 102 |
+
| 0.0155 | 48.9091 | 269 | 0.4229 | 2.0262 |
|
| 103 |
+
| 0.0123 | 50.0 | 275 | 0.4253 | 2.0612 |
|
| 104 |
+
| 0.0144 | 50.9091 | 280 | 0.4284 | 2.0663 |
|
| 105 |
+
| 0.0112 | 52.0 | 286 | 0.4315 | 2.0706 |
|
| 106 |
+
| 0.0129 | 52.9091 | 291 | 0.4301 | 2.0568 |
|
| 107 |
+
| 0.0107 | 54.0 | 297 | 0.4301 | 2.0087 |
|
| 108 |
+
| 0.0121 | 54.9091 | 302 | 0.4311 | 2.0022 |
|
| 109 |
+
| 0.0095 | 56.0 | 308 | 0.4313 | 1.9996 |
|
| 110 |
+
| 0.0109 | 56.9091 | 313 | 0.4333 | 2.0546 |
|
| 111 |
+
| 0.0086 | 58.0 | 319 | 0.4338 | 2.0787 |
|
| 112 |
+
| 0.0102 | 58.9091 | 324 | 0.4359 | 2.0091 |
|
| 113 |
+
| 0.0082 | 60.0 | 330 | 0.4369 | 2.0430 |
|
| 114 |
+
| 0.0095 | 60.9091 | 335 | 0.4366 | 1.9592 |
|
| 115 |
+
| 0.0076 | 62.0 | 341 | 0.4388 | 1.9905 |
|
| 116 |
+
| 0.0089 | 62.9091 | 346 | 0.4395 | 2.0295 |
|
| 117 |
+
| 0.0072 | 64.0 | 352 | 0.4404 | 2.0200 |
|
| 118 |
+
| 0.0084 | 64.9091 | 357 | 0.4393 | 2.0641 |
|
| 119 |
+
| 0.0067 | 66.0 | 363 | 0.4408 | 2.0798 |
|
| 120 |
+
| 0.0078 | 66.9091 | 368 | 0.4422 | 2.0601 |
|
| 121 |
+
| 0.0063 | 68.0 | 374 | 0.4420 | 2.0408 |
|
| 122 |
+
| 0.0076 | 68.9091 | 379 | 0.4427 | 2.0273 |
|
| 123 |
+
| 0.0063 | 70.0 | 385 | 0.4438 | 2.0306 |
|
| 124 |
+
| 0.0072 | 70.9091 | 390 | 0.4436 | 2.0462 |
|
| 125 |
+
| 0.006 | 72.0 | 396 | 0.4456 | 2.0160 |
|
| 126 |
+
| 0.007 | 72.9091 | 401 | 0.4472 | 2.0382 |
|
| 127 |
+
| 0.0057 | 74.0 | 407 | 0.4466 | 2.0532 |
|
| 128 |
+
| 0.0066 | 74.9091 | 412 | 0.4459 | 2.0612 |
|
| 129 |
+
| 0.0055 | 76.0 | 418 | 0.4469 | 2.0229 |
|
| 130 |
+
| 0.0065 | 76.9091 | 423 | 0.4474 | 1.9632 |
|
| 131 |
+
| 0.0054 | 78.0 | 429 | 0.4481 | 1.9519 |
|
| 132 |
+
| 0.0064 | 78.9091 | 434 | 0.4475 | 1.9836 |
|
| 133 |
+
| 0.0052 | 80.0 | 440 | 0.4475 | 2.0149 |
|
| 134 |
+
| 0.0062 | 80.9091 | 445 | 0.4482 | 2.0197 |
|
| 135 |
+
| 0.0052 | 82.0 | 451 | 0.4490 | 2.0208 |
|
| 136 |
+
| 0.0061 | 82.9091 | 456 | 0.4496 | 2.0324 |
|
| 137 |
+
| 0.0049 | 84.0 | 462 | 0.4498 | 2.0240 |
|
| 138 |
+
| 0.006 | 84.9091 | 467 | 0.4496 | 2.0168 |
|
| 139 |
+
| 0.0049 | 86.0 | 473 | 0.4499 | 2.0 |
|
| 140 |
+
| 0.0059 | 86.9091 | 478 | 0.4505 | 1.9822 |
|
| 141 |
+
| 0.005 | 88.0 | 484 | 0.4506 | 1.9978 |
|
| 142 |
+
| 0.0058 | 88.9091 | 489 | 0.4505 | 2.0117 |
|
| 143 |
+
| 0.0049 | 90.0 | 495 | 0.4505 | 2.0135 |
|
| 144 |
+
| 0.0053 | 90.9091 | 500 | 0.4505 | 2.0146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
|
| 147 |
### Framework versions
|
| 148 |
|
| 149 |
- Transformers 4.45.2
|
| 150 |
+
- Pytorch 2.1.1+cu121
|
| 151 |
+
- Datasets 3.0.2
|
| 152 |
- Tokenizers 0.20.1
|
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:1066ea568b9174feb002ea482b4be011852254bd38d56a3239fae07600a10b06
|
| 3 |
size 706516040
|