Image-Text-to-Text
Transformers
Safetensors
qwen2_5_vl
qwen3_vl
vision-language
visual-token-pruning
visionzip
scopd
Instructions to use enmingzhangzz/SCOPD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use enmingzhangzz/SCOPD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="enmingzhangzz/SCOPD")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("enmingzhangzz/SCOPD", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use enmingzhangzz/SCOPD with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "enmingzhangzz/SCOPD" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "enmingzhangzz/SCOPD", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/enmingzhangzz/SCOPD
- SGLang
How to use enmingzhangzz/SCOPD 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 "enmingzhangzz/SCOPD" \ --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": "enmingzhangzz/SCOPD", "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 "enmingzhangzz/SCOPD" \ --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": "enmingzhangzz/SCOPD", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use enmingzhangzz/SCOPD with Docker Model Runner:
docker model run hf.co/enmingzhangzz/SCOPD
Download evaluation/runtime/activate.sh from enmingzhangzz/SCOPD: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/enmingzhangzz/SCOPD/resolve/main/evaluation/runtime/activate.sh
- Command line
-
hf download hf://enmingzhangzz/SCOPD/evaluation/runtime/activate.sh
-
curl -L -o activate.sh https://huggingface.co/enmingzhangzz/SCOPD/resolve/main/evaluation/runtime/activate.sh
1.21 kB
| # Source this file from an activated evaluation environment. | |
| _scopd_root=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd) | |
| _scopd_mode=${1:-eval} | |
| if [[ "$_scopd_mode" != eval && "$_scopd_mode" != qwen3 ]]; then | |
| printf 'Choose eval (Qwen2.5) or qwen3\n' >&2 | |
| return 2 | |
| fi | |
| if [[ ! -f "$_scopd_root/.runtime/$_scopd_mode/src/transformers/__init__.py" ]]; then | |
| printf 'Run python runtime/prepare.py --mode %s first\n' "$_scopd_mode" >&2 | |
| return 1 | |
| fi | |
| export PATCHED_TRANSFORMERS_SRC="$_scopd_root/.runtime/$_scopd_mode/src" | |
| export VISIONZIP_QWEN25VL_ROOT="$_scopd_root/third_party/VisionZip/Qwen2_5_VL" | |
| export PYTHONPATH="$_scopd_root:$PATCHED_TRANSFORMERS_SRC:$_scopd_root/third_party/VLMEvalKit:$_scopd_root/third_party/VLMEvalKit/internvl${PYTHONPATH:+:$PYTHONPATH}" | |
| export TOKENIZERS_PARALLELISM=false PYTHONNOUSERSITE=1 | |
| export HF_HOME="${HF_HOME:-${SCRATCH:-$_scopd_root/.cache}/scopd/hf}" | |
| export TMPDIR="${TMPDIR:-${SCRATCH:-$_scopd_root/.cache}/scopd/tmp}" | |
| export LMUData="${LMUData:-${SCRATCH:-$_scopd_root/.cache}/scopd/benchmarks}" | |
| export MMSTAR_QWEN_JUDGE=0 VLMEVAL_SAVE_RAW_PREDICTION=1 VLMEVAL_STRICT_ERRORS=1 | |
| mkdir -p "$HF_HOME" "$TMPDIR" "$LMUData" | |
| unset _scopd_root _scopd_mode | |