Instructions to use minwook/git-base-cartoon with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use minwook/git-base-cartoon with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="minwook/git-base-cartoon")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("minwook/git-base-cartoon") model = AutoModelForMultimodalLM.from_pretrained("minwook/git-base-cartoon") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use minwook/git-base-cartoon with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "minwook/git-base-cartoon" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "minwook/git-base-cartoon", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/minwook/git-base-cartoon
- SGLang
How to use minwook/git-base-cartoon 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 "minwook/git-base-cartoon" \ --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": "minwook/git-base-cartoon", "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 "minwook/git-base-cartoon" \ --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": "minwook/git-base-cartoon", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use minwook/git-base-cartoon with Docker Model Runner:
docker model run hf.co/minwook/git-base-cartoon
Model save
Browse files
README.md
CHANGED
|
@@ -15,8 +15,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [microsoft/git-base](https://huggingface.co/microsoft/git-base) on the None dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
-
- Loss:
|
| 19 |
-
- Bleu Score: 0.
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -43,18 +43,14 @@ The following hyperparameters were used during training:
|
|
| 43 |
- total_train_batch_size: 16
|
| 44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 45 |
- lr_scheduler_type: linear
|
| 46 |
-
- num_epochs:
|
| 47 |
- mixed_precision_training: Native AMP
|
| 48 |
|
| 49 |
### Training results
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | Bleu Score |
|
| 52 |
|:-------------:|:------:|:----:|:---------------:|:----------:|
|
| 53 |
-
| 7.
|
| 54 |
-
| 2.8193 | 3.5088 | 100 | 0.9704 | 0.0094 |
|
| 55 |
-
| 0.4044 | 5.2632 | 150 | 0.1138 | 0.0588 |
|
| 56 |
-
| 0.0733 | 7.0175 | 200 | 0.0661 | 0.0438 |
|
| 57 |
-
| 0.0434 | 8.7719 | 250 | 0.0646 | 0.0501 |
|
| 58 |
|
| 59 |
|
| 60 |
### Framework versions
|
|
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [microsoft/git-base](https://huggingface.co/microsoft/git-base) on the None dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
+
- Loss: 6.4422
|
| 19 |
+
- Bleu Score: 0.0
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
|
|
| 43 |
- total_train_batch_size: 16
|
| 44 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 45 |
- lr_scheduler_type: linear
|
| 46 |
+
- num_epochs: 2
|
| 47 |
- mixed_precision_training: Native AMP
|
| 48 |
|
| 49 |
### Training results
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | Bleu Score |
|
| 52 |
|:-------------:|:------:|:----:|:---------------:|:----------:|
|
| 53 |
+
| 7.925 | 1.7544 | 50 | 6.4422 | 0.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
|
| 56 |
### Framework versions
|
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:ba737e068683a8028c0c428421b4711a7e84b0a86a8be5716a7397e0f3926bd6
|
| 3 |
size 706516040
|
runs/Aug02_04-42-18_fe738dc76da4/events.out.tfevents.1722573748.fe738dc76da4.285.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2ac60344eaa2ac393f49d31ea2e8aca79ea533efa38f3f032baea61c0e62f89
|
| 3 |
+
size 5930
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5112
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ad04a4fcfbec15dd0ab0e1b44991913d62474ec34b3dfd075b0ca43a06d6ed78
|
| 3 |
size 5112
|