Instructions to use fk128/git-base-histo-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fk128/git-base-histo-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="fk128/git-base-histo-2")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("fk128/git-base-histo-2") model = AutoModelForImageTextToText.from_pretrained("fk128/git-base-histo-2") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use fk128/git-base-histo-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fk128/git-base-histo-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fk128/git-base-histo-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/fk128/git-base-histo-2
- SGLang
How to use fk128/git-base-histo-2 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 "fk128/git-base-histo-2" \ --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": "fk128/git-base-histo-2", "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 "fk128/git-base-histo-2" \ --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": "fk128/git-base-histo-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use fk128/git-base-histo-2 with Docker Model Runner:
docker model run hf.co/fk128/git-base-histo-2
Training in progress, step 100
Browse files- pytorch_model.bin +1 -1
- runs/May25_16-07-00_bamboo/events.out.tfevents.1685027230.bamboo.288696.0 +2 -2
- runs/May25_16-11-55_bamboo/1685027523.0504673/events.out.tfevents.1685027523.bamboo.288696.3 +3 -0
- runs/May25_16-11-55_bamboo/events.out.tfevents.1685027523.bamboo.288696.2 +3 -0
- runs/May25_16-16-21_bamboo/1685027790.7949452/events.out.tfevents.1685027790.bamboo.295203.1 +3 -0
- runs/May25_16-16-21_bamboo/events.out.tfevents.1685027790.bamboo.295203.0 +3 -0
- training_args.bin +1 -1
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 706594713
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc7691cb60b45e2e0d4d7b00edddb649ce92dffb749cef4462294a32fdc179e1
|
| 3 |
size 706594713
|
runs/May25_16-07-00_bamboo/events.out.tfevents.1685027230.bamboo.288696.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:c94b527926638405385bd04ebec4c16b7c5f34f9af4710ababb5c46b84be5308
|
| 3 |
+
size 10051
|
runs/May25_16-11-55_bamboo/1685027523.0504673/events.out.tfevents.1685027523.bamboo.288696.3
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5bf87f70b48c789509df64527ca9c15a1e8d40a92e2232f3e6ef2ad63ea55645
|
| 3 |
+
size 5854
|
runs/May25_16-11-55_bamboo/events.out.tfevents.1685027523.bamboo.288696.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7b7b213336a002d455ad7f2ccfea55b33e16b8d320bcdc96a1fb1d4b38a5e87
|
| 3 |
+
size 6399
|
runs/May25_16-16-21_bamboo/1685027790.7949452/events.out.tfevents.1685027790.bamboo.295203.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7c01e7aa4239e3879828ab2d384fe89249477d570a0f0f3676f87fc00ea44ae
|
| 3 |
+
size 5854
|
runs/May25_16-16-21_bamboo/events.out.tfevents.1685027790.bamboo.295203.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a362b245476e7e8b2f4654d68dd3cf77311b9b86e7cb63073dfc8fcaa3c7ea7e
|
| 3 |
+
size 6873
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3643
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:685fc360872c1ce54ddc337c8e190274ad025e02e0cbcc28f62d7cd4d677537e
|
| 3 |
size 3643
|