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, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("minwook/git-base-cartoon") model = AutoModelForImageTextToText.from_pretrained("minwook/git-base-cartoon") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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
Training in progress, step 50
Browse files
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 101,
|
| 4 |
+
"eos_token_id": 102,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.42.4"
|
| 7 |
+
}
|
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:dc9c5fd0202ba47b6ea1811800041f475b0cc82347ba23c6d5e8c7824268a57f
|
| 3 |
size 706516040
|
runs/Jul31_05-42-20_80282c379916/events.out.tfevents.1722404686.80282c379916.4172.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:767a9c418ec8648bea5824fd8cfcae3c82f170f15533f50f27ee0b3533e3d370
|
| 3 |
+
size 5583
|
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:32b606adcc9276e1c0bb83266d33ae479e717b424731f29a9ff4ce8cb158b6c2
|
| 3 |
size 5112
|