Feature Extraction
sentence-transformers
Safetensors
Transformers
nanovdr_doc
visual-document-retrieval
document-ai
nanovdr
knowledge-distillation
retrieval
custom_code
Instructions to use nanovdr/NanoVDR-D-HiRes-Qwen3VL8B-4096 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use nanovdr/NanoVDR-D-HiRes-Qwen3VL8B-4096 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("nanovdr/NanoVDR-D-HiRes-Qwen3VL8B-4096", trust_remote_code=True) sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use nanovdr/NanoVDR-D-HiRes-Qwen3VL8B-4096 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="nanovdr/NanoVDR-D-HiRes-Qwen3VL8B-4096", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nanovdr/NanoVDR-D-HiRes-Qwen3VL8B-4096", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from nanovdr/NanoVDR-D-HiRes-Qwen3VL8B-4096: direct link, hf CLI and curl.
- Browser
- Download file 747 Bytes
-
https://huggingface.co/nanovdr/NanoVDR-D-HiRes-Qwen3VL8B-4096/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://nanovdr/NanoVDR-D-HiRes-Qwen3VL8B-4096/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/nanovdr/NanoVDR-D-HiRes-Qwen3VL8B-4096/resolve/main/preprocessor_config.json
747 Bytes
| { | |
| "auto_map": { | |
| "AutoImageProcessor": "processing_nanovdr_doc.NanoVDRDocImageProcessor", | |
| "AutoProcessor": "processing_nanovdr_doc.NanoVDRDocImageProcessor" | |
| }, | |
| "crop_size": { | |
| "height": 448, | |
| "width": 448 | |
| }, | |
| "do_center_crop": true, | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "do_tile": true, | |
| "image_mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "image_processor_type": "NanoVDRDocImageProcessor", | |
| "image_size": 448, | |
| "image_std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "shortest_edge": 448 | |
| }, | |
| "tile_max_num": 6, | |
| "tile_max_total": 7, | |
| "tile_min_num": 1, | |
| "tile_use_thumbnail": true | |
| } | |