Instructions to use eCityAI-Sup/eCity-VL-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eCityAI-Sup/eCity-VL-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="eCityAI-Sup/eCity-VL-9B")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("eCityAI-Sup/eCity-VL-9B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use eCityAI-Sup/eCity-VL-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "eCityAI-Sup/eCity-VL-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "eCityAI-Sup/eCity-VL-9B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/eCityAI-Sup/eCity-VL-9B
- SGLang
How to use eCityAI-Sup/eCity-VL-9B 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 "eCityAI-Sup/eCity-VL-9B" \ --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": "eCityAI-Sup/eCity-VL-9B", "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 "eCityAI-Sup/eCity-VL-9B" \ --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": "eCityAI-Sup/eCity-VL-9B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use eCityAI-Sup/eCity-VL-9B with Docker Model Runner:
docker model run hf.co/eCityAI-Sup/eCity-VL-9B
Commit History
Yesterday
-
Upload models/model.safetensors-00004-of-00004.safetensors with huggingface_hub
Verified signature05eae85 -
Upload models/model.safetensors-00003-of-00004.safetensors with huggingface_hub
Verified signaturef1047e1 -
Upload models/model.safetensors-00001-of-00004.safetensors with huggingface_hub
Verified signature5f7b5bc -
Upload models/model.safetensors.index.json with huggingface_hub
Verified signature91fa6f7 -
Upload models/merges.txt with huggingface_hub
Verified signature2efabc1 -
Upload models/vocab.json with huggingface_hub
Verified signature8d7ee6e -
Upload models/tokenizer_config.json with huggingface_hub
Verified signature97bbd80 -
Upload models/tokenizer.json with huggingface_hub
Verified signature0046d41 -
Upload models/video_preprocessor_config.json with huggingface_hub
Verified signaturedaa9998 -
Upload models/preprocessor_config.json with huggingface_hub
Verified signaturefe540b5 -
Upload models/chat_template.jinja with huggingface_hub
Verified signature520c49d -
Upload models/configuration.json with huggingface_hub
Verified signature6c40ffc -
Upload models/config.json with huggingface_hub
Verified signature7cf40a9 -
Upload models/model.safetensors-00002-of-00004.safetensors with huggingface_hub
Verified signatured391924