Instructions to use lanaab/model_output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lanaab/model_output with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="lanaab/model_output")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("lanaab/model_output") model = AutoModelForImageTextToText.from_pretrained("lanaab/model_output") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use lanaab/model_output with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lanaab/model_output" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lanaab/model_output", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/lanaab/model_output
- SGLang
How to use lanaab/model_output 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 "lanaab/model_output" \ --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": "lanaab/model_output", "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 "lanaab/model_output" \ --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": "lanaab/model_output", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use lanaab/model_output with Docker Model Runner:
docker model run hf.co/lanaab/model_output
ft-ms-git-base-pokemon-blip-captions
Browse files
README.md
CHANGED
|
@@ -42,6 +42,10 @@ The following hyperparameters were used during training:
|
|
| 42 |
- lr_scheduler_type: linear
|
| 43 |
- num_epochs: 10
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
### Framework versions
|
| 46 |
|
| 47 |
- Transformers 4.35.2
|
|
|
|
| 42 |
- lr_scheduler_type: linear
|
| 43 |
- num_epochs: 10
|
| 44 |
|
| 45 |
+
### Training results
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
### Framework versions
|
| 50 |
|
| 51 |
- Transformers 4.35.2
|
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:b96147be27d86752eedbb2317b7a033a8ece4610e6861001a8b0e8df76be1661
|
| 3 |
size 706516040
|
runs/Feb29_20-36-10_00d4a76bebd5/events.out.tfevents.1709238971.00d4a76bebd5.916.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:975f11b382aed9a0fe86dc21a692f27fc4447375803d1ef05210d8c668cc6df6
|
| 3 |
+
size 12577
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4600
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7181d6409fac59bb9d61a441d599e6025b0e535f5fe7ca9cbce5eddc13e3ff1e
|
| 3 |
size 4600
|