Downloads · 30 days
0
yaobaishen/Qwen3-VL-Reranker-8B-vehicle-reid-lora
Qwen3-VL-Reranker-8B-vehicle-reid-lora is a text ranking model from yaobaishen. Use it for the text ranking task on the model card, and read the license before you ship it in a product. It is set up for sentence-transformers. The card lists the license as apache-2.0.
This is a Cross Encoder model finetuned from Qwen/Qwen3-VL-Reranker-8B using the sentence-transformers library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.
Downloads · 30 days
0
Access
Public
Updated Aug 22, 2026
Repo size
167 MB
Likes
0
Public
Click a slice to open those files.
.safetensors156 MB · 93%
From the Hugging Face model README
This is a Cross Encoder model finetuned from Qwen/Qwen3-VL-Reranker-8B using the sentence-transformers library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.
CrossEncoder(
(0): Transformer({'transformer_task': 'any-to-any', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'logits'}, 'image': {'method': 'forward', 'method_output_name': 'logits'}, 'video': {'method': 'forward', 'method_output_name': 'logits'}, 'message': {'method': 'forward', 'method_output_name': 'logits', 'format': 'structured'}}, 'module_output_name': 'causal_logits', 'processing_kwargs': {'chat_template': {'chat_template': 'reranker', 'add_generation_prompt': True}}, 'architecture': 'Qwen3VLForConditionalGeneration'})
(1): LogitScore({'true_token_id': 9693, 'false_token_id': 2152, 'module_input_name': 'causal_logits'})
)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import CrossEncoder
# Download from the 🤗 Hub
model = CrossEncoder("yaobaishen/Qwen3-VL-Reranker-8B-vehicle-reid-lora")
# Get scores for pairs of inputs
pairs = [
['/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/query.jpg', '/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/positive.jpg'],
['/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/query.jpg', '/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/hard_negative_01.jpg'],
['/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/query.jpg', '/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/hard_negative_02.jpg'],
['/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/query.jpg', '/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/hard_negative_03.jpg'],
['/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/query.jpg', '/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/hard_negative_04.jpg'],
]
scores = model.predict(pairs)
print(scores)
# [ 4.375 -6.5625 -6.125 -7. -4.75 ]
# Or rank different texts based on similarity to a single text
ranks = model.rank(
'/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/query.jpg',
[
'/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/positive.jpg',
'/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/hard_negative_01.jpg',
'/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/hard_negative_02.jpg',
'/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/hard_negative_03.jpg',
'/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/hard_negative_04.jpg',
]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
<!--
### Direct Usage (Transformers)
<details><summary>Click to see the direct usage in Transformers</summary>
</details>
-->
<!--
### Downstream Usage (Sentence Transformers)
You can finetune this model on your own dataset.
<details><summary>Click to expand</summary>
</details>
-->
<!--
### Out-of-Scope Use
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
-->
vehicle-reid-eval-hard{
"at_k": 10
}
| Metric | Value |
|---|---|
| map | 0.9735 |
| mrr@10 | 0.9735 |
| ndcg@10 | 0.9802 |
| query | document | label | |
|---|---|---|---|
| type | string | string | int |
| modality | image | image | |
| details | <ul><li>0: ~82.69%</li><li>1: ~17.31%</li></ul> |
| query | document | label |
|---|---|---|
| <code>/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/query.jpg</code> | <code>/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/positive.jpg</code> | <code>1</code> |
| <code>/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/query.jpg</code> | <code>/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/hard_negative_01.jpg</code> | <code>0</code> |
| <code>/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/query.jpg</code> | <code>/mnt/smt_nas/huwei/test_data/genvict/qwen3_vl_reranker_8b_hard_negative_dataset/samples/sample_000793/hard_negative_02.jpg</code> | <code>0</code> |
{
"activation_fn": "torch.nn.modules.linear.Identity",
"pos_weight": 5.0
}
per_device_train_batch_size: 1num_train_epochs: 2warmup_steps: 0.1gradient_accumulation_steps: 8bf16: Truegradient_checkpointing: Truegradient_checkpointing_kwargs: {'use_reentrant': False}per_device_eval_batch_size: 1save_only_model: Trueload_best_model_at_end: Trueper_device_train_batch_size: 1num_train_epochs: 2max_steps: -1learning_rate: 5e-05lr_scheduler_type: linearlr_scheduler_kwargs: Nonewarmup_steps: 0.1optim: adamw_torch_fusedoptim_args: Noneweight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08optim_target_modules: Nonegradient_accumulation_steps: 8average_tokens_across_devices: Truemax_grad_norm: 1.0label_smoothing_factor: 0.0bf16: Truefp16: Falsebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonegradient_checkpointing: Truegradient_checkpointing_kwargs: {'use_reentrant': False}torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneuse_liger_kernel: Falseliger_kernel_config: Noneuse_cache: Falseneftune_noise_alpha: Nonetorch_empty_cache_steps: Noneauto_find_batch_size: Falselog_on_each_node: Truelogging_nan_inf_filter: Trueinclude_num_input_tokens_seen: nolog_level: passivelog_level_replica: warningdisable_tqdm: Falseproject: huggingfacetrackio_space_id: Nonetrackio_bucket_id: Nonetrackio_static_space_id: Noneper_device_eval_batch_size: 1prediction_loss_only: Trueeval_on_start: Falseeval_do_concat_batches: Trueeval_use_gather_object: Falseeval_accumulation_steps: Noneinclude_for_metrics: []batch_eval_metrics: Falsesave_only_model: Truesave_on_each_node: Falseenable_jit_checkpoint: Falsepush_to_hub: Falsehub_private_repo: Nonehub_model_id: Nonehub_strategy: every_savehub_always_push: Falsehub_revision: Noneload_best_model_at_end: Trueignore_data_skip: Falserestore_callback_states_from_checkpoint: Falsefull_determinism: Falseseed: 42data_seed: Noneuse_cpu: Falseaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}parallelism_config: Nonedataloader_drop_last: Falsedataloader_num_workers: 0dataloader_pin_memory: Truedataloader_persistent_workers: Falsedataloader_prefetch_factor: Nonedataloader_multiprocessing_context: Nonedataloader_in_order: Trueremove_unused_columns: Truelabel_names: Nonetrain_sampling_strategy: randomlength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falseddp_static_graph: Noneddp_backend: Noneddp_timeout: 1800fsdp: Nonefsdp_config: Nonedeepspeed: Nonedebug: []skip_memory_metrics: Truedo_predict: Falseresume_from_checkpoint: Nonelocal_rank: -1prompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}warmup_ratio: None| Epoch | Step | Training Loss | vehicle-reid-eval-hard_ndcg@10 |
|---|---|---|---|
| -1 | -1 | - | 0.8538 |
| 0.1013 | 73 | 0.8300 | - |
| 0.2026 | 146 | 0.9100 | - |
| 0.3039 | 219 | 0.6464 | - |
| 0.4010 | 289 | - | 0.9540 |
| 0.4051 | 292 | 0.6039 | - |
| 0.5064 | 365 | 0.6318 | - |
| 0.6077 | 438 | 0.7109 | - |
| 0.7090 | 511 | 0.6823 | - |
| 0.8019 | 578 | - | 0.9655 |
| 0.8103 | 584 | 0.5254 | - |
| 0.9116 | 657 | 0.6593 | - |
| 1.0125 | 730 | 0.4359 | - |
| 1.1138 | 803 | 0.4745 | - |
| 1.2026 | 867 | - | 0.9802 |
| 1.2151 | 876 | 0.4719 | - |
| 1.3163 | 949 | 0.2382 | - |
| 1.4176 | 1022 | 0.1943 | - |
| 1.5189 | 1095 | 0.4595 | - |
| 1.6035 | 1156 | - | 0.9790 |
| 1.6202 | 1168 | 0.1757 | - |
| 1.7215 | 1241 | 0.4918 | - |
| 1.8228 | 1314 | 0.4889 | - |
| 1.9240 | 1387 | 0.3687 | - |
| 2.0 | 1442 | - | 0.9772 |
| -1 | -1 | - | 0.9802 |
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
<!--
## Glossary
*Clearly define terms in order to be accessible across audiences.*
-->
<!--
## Model Card Authors
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
-->
<!--
## Model Card Contact
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
-->