Image-Text-to-Text
Transformers
Safetensors
English
idefics
multimodal
vision
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use samim2024/Image-Text-To-Text with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use samim2024/Image-Text-To-Text with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="samim2024/Image-Text-To-Text")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("samim2024/Image-Text-To-Text") model = AutoModelForMultimodalLM.from_pretrained("samim2024/Image-Text-To-Text") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use samim2024/Image-Text-To-Text with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "samim2024/Image-Text-To-Text" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "samim2024/Image-Text-To-Text", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/samim2024/Image-Text-To-Text
- SGLang
How to use samim2024/Image-Text-To-Text 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 "samim2024/Image-Text-To-Text" \ --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": "samim2024/Image-Text-To-Text", "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 "samim2024/Image-Text-To-Text" \ --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": "samim2024/Image-Text-To-Text", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use samim2024/Image-Text-To-Text with Docker Model Runner:
docker model run hf.co/samim2024/Image-Text-To-Text
Upload config
Browse files- adapter_config.json +2 -5
adapter_config.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
| 3 |
-
"auto_mapping":
|
| 4 |
-
"base_model_class": "PeftModel",
|
| 5 |
-
"parent_library": "peft.peft_model"
|
| 6 |
-
},
|
| 7 |
"base_model_name_or_path": null,
|
| 8 |
"bias": "none",
|
| 9 |
"fan_in_fan_out": false,
|
| 10 |
-
"inference_mode":
|
| 11 |
"init_lora_weights": true,
|
| 12 |
"layer_replication": null,
|
| 13 |
"layers_pattern": null,
|
|
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
| 3 |
+
"auto_mapping": null,
|
|
|
|
|
|
|
|
|
|
| 4 |
"base_model_name_or_path": null,
|
| 5 |
"bias": "none",
|
| 6 |
"fan_in_fan_out": false,
|
| 7 |
+
"inference_mode": false,
|
| 8 |
"init_lora_weights": true,
|
| 9 |
"layer_replication": null,
|
| 10 |
"layers_pattern": null,
|