Visual Document Retrieval
Safetensors
sentence-transformers
colpali-engine
qwen3_5
vision-language
colbert
late-interaction
multi-vector
matryoshka
vidore
token-compression
Instructions to use tencent/EVIE-4.5B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tencent/EVIE-4.5B with sentence-transformers:
from sentence_transformers import MultiVectorEncoder model = MultiVectorEncoder("tencent/EVIE-4.5B") queries = ["Which planet is known as the Red Planet?"] documents = [ "Venus is often called Earth's twin because of its similar size and proximity.", "Mars, known for its reddish appearance, is often referred to as the Red Planet.", "Jupiter, the largest planet in our solar system, has a prominent red spot.", ] query_embeddings = model.encode_query(queries) document_embeddings = model.encode_document(documents) similarities = model.similarity(query_embeddings, document_embeddings) print(similarities) - Notebooks
- Google Colab
- Kaggle
Download env.sh.example from tencent/EVIE-4.5B: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/tencent/EVIE-4.5B/resolve/main/env.sh.example
- Command line
-
hf download hf://tencent/EVIE-4.5B/env.sh.example
-
curl -L -o env.sh.example https://huggingface.co/tencent/EVIE-4.5B/resolve/main/env.sh.example
1.13 kB
| # Copy to env.sh (gitignored). Point at data / checkpoints / a virtualenv. | |
| export EVIE_ROOT="${EVIE_ROOT:-$(pwd)}" | |
| # Interpreter only. Do not write dumps, caches, or checkpoints into this prefix. | |
| export PYTHON="${PYTHON:-python3}" # or $VIRTUAL_ENV/bin/python | |
| # Bundled toy pages (6 images). Swap these for a real dump to train. | |
| export DATA_ROOT="${DATA_ROOT:-$EVIE_ROOT/examples/toy}" | |
| export HARDNEG_ROOT="${HARDNEG_ROOT:-$EVIE_ROOT/examples/toy/hardneg}" | |
| # Generated work (all gitignored). | |
| export RUNS_DIR="${RUNS_DIR:-$EVIE_ROOT/runs}" | |
| export LOG_DIR="${LOG_DIR:-$EVIE_ROOT/logs}" | |
| export EVAL_ROOT="${EVAL_ROOT:-$EVIE_ROOT/data}" | |
| export HF_HOME="${HF_HOME:-$EVIE_ROOT/.cache/huggingface}" | |
| export HF_DATASETS_CACHE="${HF_DATASETS_CACHE:-$HF_HOME/datasets}" | |
| # Sibling checkpoints. Teacher / student launchers set BASE_MODEL themselves | |
| # (Qwen/Qwen3.5 and tencent/EVIE-Preview-4.5B). Override only if you need to. | |
| export EVIE_8B_DIR="${EVIE_8B_DIR:-$EVIE_ROOT/../Evie-8B}" | |
| export EVIE_4_5B_DIR="${EVIE_4_5B_DIR:-$EVIE_ROOT/../Evie-4.5B}" | |
| export TEACHER_DIR="$EVIE_8B_DIR" | |
| export MODEL_DIR="${MODEL_DIR:-$EVIE_4_5B_DIR}" | |