Image-Text-to-Text
Transformers
Safetensors
idefics
text-generation-inference
8-bit precision
bitsandbytes_8bit
Instructions to use justinkarlin/idefics-9b-faces with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use justinkarlin/idefics-9b-faces with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="justinkarlin/idefics-9b-faces")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("justinkarlin/idefics-9b-faces") model = AutoModelForMultimodalLM.from_pretrained("justinkarlin/idefics-9b-faces", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use justinkarlin/idefics-9b-faces with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "justinkarlin/idefics-9b-faces" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "justinkarlin/idefics-9b-faces", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/justinkarlin/idefics-9b-faces
- SGLang
How to use justinkarlin/idefics-9b-faces 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 "justinkarlin/idefics-9b-faces" \ --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": "justinkarlin/idefics-9b-faces", "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 "justinkarlin/idefics-9b-faces" \ --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": "justinkarlin/idefics-9b-faces", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use justinkarlin/idefics-9b-faces with Docker Model Runner:
docker model run hf.co/justinkarlin/idefics-9b-faces
Commit History
-
Update config.json
Verified signaturee1ea302 -
Update config.json
Verified signature4907cba -
Upload tokenizer
Verified signature33bc060 -
Upload IdeficsForVisionText2Text
Verified signatureed5c6c6
-
Upload preprocessor_config.json
Verified signature6e5eeb7 -
Upload tokenizer
Verified signature87e2564 -
Upload IdeficsForVisionText2Text
Verified signature782772d
-
Upload tokenizer
Verified signaturefca0b5d -
Upload IdeficsForVisionText2Text
Verified signature78a4aed -
Upload tokenizer
Verified signature71f98c2 -
Upload IdeficsForVisionText2Text
Verified signature1cfe2ea -
Upload tokenizer
Verified signature7fa61b5 -
Upload IdeficsForVisionText2Text
Verified signature3d23593 -
Upload tokenizer
Verified signatureb282aeb -
Upload IdeficsForVisionText2Text
Verified signature4949069 -
Upload tokenizer
Verified signature72009ad -
Upload IdeficsForVisionText2Text
Verified signature7ed5b5a -
Upload tokenizer
Verified signatureeca46b7 -
Upload IdeficsForVisionText2Text
Verified signature479c7d4 -
initial commit
Verified signature42de346