Instructions to use Raghad2003/model_output with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Raghad2003/model_output with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Raghad2003/model_output")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Raghad2003/model_output") model = AutoModelForMultimodalLM.from_pretrained("Raghad2003/model_output", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Raghad2003/model_output with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Raghad2003/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": "Raghad2003/model_output", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Raghad2003/model_output
- SGLang
How to use Raghad2003/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 "Raghad2003/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": "Raghad2003/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 "Raghad2003/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": "Raghad2003/model_output", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Raghad2003/model_output with Docker Model Runner:
docker model run hf.co/Raghad2003/model_output
ft-ms-git-base-pokemon-blip-captions
Browse files- README.md +2 -2
- config.json +1 -1
- generation_config.json +1 -1
- model.safetensors +1 -1
- runs/Apr01_07-58-04_9f5b47447276/events.out.tfevents.1711958285.9f5b47447276.354.0 +3 -0
- training_args.bin +2 -2
README.md
CHANGED
|
@@ -48,7 +48,7 @@ The following hyperparameters were used during training:
|
|
| 48 |
|
| 49 |
### Framework versions
|
| 50 |
|
| 51 |
-
- Transformers 4.
|
| 52 |
- Pytorch 2.2.1+cu121
|
| 53 |
-
- Datasets 2.
|
| 54 |
- Tokenizers 0.15.2
|
|
|
|
| 48 |
|
| 49 |
### Framework versions
|
| 50 |
|
| 51 |
+
- Transformers 4.35.2
|
| 52 |
- Pytorch 2.2.1+cu121
|
| 53 |
+
- Datasets 2.15.0
|
| 54 |
- Tokenizers 0.15.2
|
config.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
| 22 |
"position_embedding_type": "absolute",
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
"torch_dtype": "float32",
|
| 25 |
-
"transformers_version": "4.
|
| 26 |
"use_cache": true,
|
| 27 |
"vision_config": {
|
| 28 |
"dropout": 0.0,
|
|
|
|
| 22 |
"position_embedding_type": "absolute",
|
| 23 |
"tie_word_embeddings": false,
|
| 24 |
"torch_dtype": "float32",
|
| 25 |
+
"transformers_version": "4.35.2",
|
| 26 |
"use_cache": true,
|
| 27 |
"vision_config": {
|
| 28 |
"dropout": 0.0,
|
generation_config.json
CHANGED
|
@@ -3,5 +3,5 @@
|
|
| 3 |
"bos_token_id": 101,
|
| 4 |
"eos_token_id": 102,
|
| 5 |
"pad_token_id": 0,
|
| 6 |
-
"transformers_version": "4.
|
| 7 |
}
|
|
|
|
| 3 |
"bos_token_id": 101,
|
| 4 |
"eos_token_id": 102,
|
| 5 |
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.35.2"
|
| 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:51e3b335e4c4392d93ad4264590b7414c8b1418fe0d180f740ad20dc71756546
|
| 3 |
size 706516040
|
runs/Apr01_07-58-04_9f5b47447276/events.out.tfevents.1711958285.9f5b47447276.354.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26cfb91f42c40e23c54b940bd960e71bb41cfc5114387a5527c49a6fc2db07d3
|
| 3 |
+
size 7247
|
training_args.bin
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:a92cc4fd299e98e6fc1b81b88c4ba7a3c68ae4e2c520df73ea3ff66a55a364ec
|
| 3 |
+
size 4600
|