Text Ranking
sentence-transformers
Safetensors
bert
cross-encoder
reranker
Generated from Trainer
dataset_size:7491
loss:BinaryCrossEntropyLoss
text-embeddings-inference
Instructions to use rabit223/vi_MiniLM_v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use rabit223/vi_MiniLM_v1 with sentence-transformers:
from sentence_transformers import CrossEncoder model = CrossEncoder("rabit223/vi_MiniLM_v1") query = "Which planet is known as the Red Planet?" passages = [ "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.", "Saturn, famous for its rings, is sometimes mistaken for the Red Planet." ] scores = model.predict([(query, passage) for passage in passages]) print(scores) - Notebooks
- Google Colab
- Kaggle
model_push
#1
by rabit223 - opened
- README.md +6 -349
- config.json +0 -40
- model.safetensors +0 -3
- tokenizer.json +0 -0
- tokenizer_config.json +0 -18
README.md
CHANGED
|
@@ -1,351 +1,8 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
- dataset_size:7491
|
| 8 |
-
- loss:BinaryCrossEntropyLoss
|
| 9 |
-
base_model: cross-encoder/ms-marco-MiniLM-L6-v2
|
| 10 |
pipeline_tag: text-ranking
|
| 11 |
-
|
| 12 |
-
---
|
| 13 |
-
|
| 14 |
-
# CrossEncoder based on cross-encoder/ms-marco-MiniLM-L6-v2
|
| 15 |
-
|
| 16 |
-
This is a [Cross Encoder](https://www.sbert.net/docs/cross_encoder/usage/usage.html) model finetuned from [cross-encoder/ms-marco-MiniLM-L6-v2](https://huggingface.co/cross-encoder/ms-marco-MiniLM-L6-v2) using the [sentence-transformers](https://www.SBERT.net) library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.
|
| 17 |
-
|
| 18 |
-
## Model Details
|
| 19 |
-
|
| 20 |
-
### Model Description
|
| 21 |
-
- **Model Type:** Cross Encoder
|
| 22 |
-
- **Base model:** [cross-encoder/ms-marco-MiniLM-L6-v2](https://huggingface.co/cross-encoder/ms-marco-MiniLM-L6-v2) <!-- at revision c5ee24cb16019beea0893ab7796b1df96625c6b8 -->
|
| 23 |
-
- **Maximum Sequence Length:** 512 tokens
|
| 24 |
-
- **Number of Output Labels:** 1 label
|
| 25 |
-
<!-- - **Training Dataset:** Unknown -->
|
| 26 |
-
<!-- - **Language:** Unknown -->
|
| 27 |
-
<!-- - **License:** Unknown -->
|
| 28 |
-
|
| 29 |
-
### Model Sources
|
| 30 |
-
|
| 31 |
-
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 32 |
-
- **Documentation:** [Cross Encoder Documentation](https://www.sbert.net/docs/cross_encoder/usage/usage.html)
|
| 33 |
-
- **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
|
| 34 |
-
- **Hugging Face:** [Cross Encoders on Hugging Face](https://huggingface.co/models?library=sentence-transformers&other=cross-encoder)
|
| 35 |
-
|
| 36 |
-
## Usage
|
| 37 |
-
|
| 38 |
-
### Direct Usage (Sentence Transformers)
|
| 39 |
-
|
| 40 |
-
First install the Sentence Transformers library:
|
| 41 |
-
|
| 42 |
-
```bash
|
| 43 |
-
pip install -U sentence-transformers
|
| 44 |
-
```
|
| 45 |
-
|
| 46 |
-
Then you can load this model and run inference.
|
| 47 |
-
```python
|
| 48 |
-
from sentence_transformers import CrossEncoder
|
| 49 |
-
|
| 50 |
-
# Download from the 🤗 Hub
|
| 51 |
-
model = CrossEncoder("cross_encoder_model_id")
|
| 52 |
-
# Get scores for pairs of texts
|
| 53 |
-
pairs = [
|
| 54 |
-
['vì sao repository pattern đôi khi làm code khó hiểu hơn', 'Repository pattern có thể làm code khó hiểu khi nó che giấu quá nhiều đặc tính truy vấn thật sự của data store, khiến người đọc không biết đâu là thao tác đơn giản, đâu là query đắt tiền. Nếu thêm một lớp repository chỉ để bọc CRUD máy móc, bạn có thêm abstraction nhưng không thêm ý nghĩa domain. Nó hữu ích khi tạo ranh giới rõ và test tốt hơn, nhưng phản tác dụng nếu mọi logic query phức tạp lại bị nhồi vào interface quá chung chung.'],
|
| 55 |
-
['vì sao repository pattern đôi khi làm code khó hiểu hơn', 'Repository pattern làm code khó hiểu chủ yếu vì nó buộc mọi truy vấn phải chạy đồng bộ, kể cả khi database hỗ trợ async. Điều này khiến tầng data access luôn trở thành bottleneck và lập trình viên phải lần theo nhiều callback.'],
|
| 56 |
-
['vì sao repository pattern đôi khi làm code khó hiểu hơn', 'Nguyên nhân là repository luôn nhân đôi mô hình dữ liệu: một bản trong database và một bản trong bộ nhớ JVM hay Python. Vì dữ liệu bị copy hai lần, lập trình viên khó theo dõi object nào là bản chuẩn.'],
|
| 57 |
-
['vì sao repository pattern đôi khi làm code khó hiểu hơn', 'Repository thường đại diện cho tập hợp thao tác đọc ghi đối với entity hoặc aggregate. Nó giúp tách business logic khỏi chi tiết persistence như ORM hay SQL cụ thể.'],
|
| 58 |
-
['vì sao repository pattern đôi khi làm code khó hiểu hơn', 'Abstraction tốt cần cân bằng giữa che giấu chi tiết và để lộ các capability quan trọng. Nếu abstraction quá chung, người dùng khó tận dụng được đặc điểm hữu ích của công cụ bên dưới.'],
|
| 59 |
-
]
|
| 60 |
-
scores = model.predict(pairs)
|
| 61 |
-
print(scores.shape)
|
| 62 |
-
# (5,)
|
| 63 |
-
|
| 64 |
-
# Or rank different texts based on similarity to a single text
|
| 65 |
-
ranks = model.rank(
|
| 66 |
-
'vì sao repository pattern đôi khi làm code khó hiểu hơn',
|
| 67 |
-
[
|
| 68 |
-
'Repository pattern có thể làm code khó hiểu khi nó che giấu quá nhiều đặc tính truy vấn thật sự của data store, khiến người đọc không biết đâu là thao tác đơn giản, đâu là query đắt tiền. Nếu thêm một lớp repository chỉ để bọc CRUD máy móc, bạn có thêm abstraction nhưng không thêm ý nghĩa domain. Nó hữu ích khi tạo ranh giới rõ và test tốt hơn, nhưng phản tác dụng nếu mọi logic query phức tạp lại bị nhồi vào interface quá chung chung.',
|
| 69 |
-
'Repository pattern làm code khó hiểu chủ yếu vì nó buộc mọi truy vấn phải chạy đồng bộ, kể cả khi database hỗ trợ async. Điều này khiến tầng data access luôn trở thành bottleneck và lập trình viên phải lần theo nhiều callback.',
|
| 70 |
-
'Nguyên nhân là repository luôn nhân đôi mô hình dữ liệu: một bản trong database và một bản trong bộ nhớ JVM hay Python. Vì dữ liệu bị copy hai lần, lập trình viên khó theo dõi object nào là bản chuẩn.',
|
| 71 |
-
'Repository thường đại diện cho tập hợp thao tác đọc ghi đối với entity hoặc aggregate. Nó giúp tách business logic khỏi chi tiết persistence như ORM hay SQL cụ thể.',
|
| 72 |
-
'Abstraction tốt cần cân bằng giữa che giấu chi tiết và để lộ các capability quan trọng. Nếu abstraction quá chung, người dùng khó tận dụng được đặc điểm hữu ích của công cụ bên dưới.',
|
| 73 |
-
]
|
| 74 |
-
)
|
| 75 |
-
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
|
| 76 |
-
```
|
| 77 |
-
|
| 78 |
-
<!--
|
| 79 |
-
### Direct Usage (Transformers)
|
| 80 |
-
|
| 81 |
-
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 82 |
-
|
| 83 |
-
</details>
|
| 84 |
-
-->
|
| 85 |
-
|
| 86 |
-
<!--
|
| 87 |
-
### Downstream Usage (Sentence Transformers)
|
| 88 |
-
|
| 89 |
-
You can finetune this model on your own dataset.
|
| 90 |
-
|
| 91 |
-
<details><summary>Click to expand</summary>
|
| 92 |
-
|
| 93 |
-
</details>
|
| 94 |
-
-->
|
| 95 |
-
|
| 96 |
-
<!--
|
| 97 |
-
### Out-of-Scope Use
|
| 98 |
-
|
| 99 |
-
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 100 |
-
-->
|
| 101 |
-
|
| 102 |
-
<!--
|
| 103 |
-
## Bias, Risks and Limitations
|
| 104 |
-
|
| 105 |
-
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 106 |
-
-->
|
| 107 |
-
|
| 108 |
-
<!--
|
| 109 |
-
### Recommendations
|
| 110 |
-
|
| 111 |
-
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 112 |
-
-->
|
| 113 |
-
|
| 114 |
-
## Training Details
|
| 115 |
-
|
| 116 |
-
### Training Dataset
|
| 117 |
-
|
| 118 |
-
#### Unnamed Dataset
|
| 119 |
-
|
| 120 |
-
* Size: 7,491 training samples
|
| 121 |
-
* Columns: <code>query</code>, <code>passage</code>, and <code>label</code>
|
| 122 |
-
* Approximate statistics based on the first 1000 samples:
|
| 123 |
-
| | query | passage | label |
|
| 124 |
-
|:--------|:------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:--------------------------------------------------------------|
|
| 125 |
-
| type | string | string | float |
|
| 126 |
-
| details | <ul><li>min: 40 characters</li><li>mean: 61.15 characters</li><li>max: 100 characters</li></ul> | <ul><li>min: 44 characters</li><li>mean: 221.44 characters</li><li>max: 476 characters</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.2</li><li>max: 1.0</li></ul> |
|
| 127 |
-
* Samples:
|
| 128 |
-
| query | passage | label |
|
| 129 |
-
|:------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
|
| 130 |
-
| <code>tại sao Python async chạy nhiều task nhưng chương trình vẫn chậm</code> | <code>Async trong Python chỉ giúp ẩn thời gian chờ I/O, không tự làm nhanh các đoạn CPU-bound. Nếu task của bạn vẫn chứa xử lý nặng như parse lớn, mã hóa hoặc vòng lặp tính toán, event loop sẽ bị chiếm và các coroutine khác không được xen kẽ hợp lý. Cách xử lý thường là tách phần CPU-bound sang process pool hoặc tối ưu thuật toán, còn async chỉ nên dùng để phối hợp I/O concurrency.</code> | <code>1.0</code> |
|
| 131 |
-
| <code>tại sao Python async chạy nhiều task nhưng chương trình vẫn chậm</code> | <code>Python async thường chậm khi tạo quá nhiều coroutine, vì mỗi coroutine tạo ra một thread riêng nên hệ điều hành phải chuyển ngữ cảnh liên tục. Khi giảm số coroutine, hiệu năng sẽ gần như luôn tăng vì chi phí thread scheduling biến mất.</code> | <code>0.0</code> |
|
| 132 |
-
| <code>tại sao Python async chạy nhiều task nhưng chương trình vẫn chậm</code> | <code>Nguyên nhân chính là await làm task chạy tuần tự hơn so với code đồng bộ, vì mỗi lần await sẽ chờ task trước hoàn thành rồi mới chuyển sang task sau. Do đó trong đa số trường hợp, bỏ await và gọi hàm trực tiếp sẽ giúp async nhanh hơn.</code> | <code>0.0</code> |
|
| 133 |
-
* Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
|
| 134 |
-
```json
|
| 135 |
-
{
|
| 136 |
-
"activation_fn": "torch.nn.modules.linear.Identity",
|
| 137 |
-
"pos_weight": 4.186915874481201
|
| 138 |
-
}
|
| 139 |
-
```
|
| 140 |
-
|
| 141 |
-
### Evaluation Dataset
|
| 142 |
-
|
| 143 |
-
#### Unnamed Dataset
|
| 144 |
-
|
| 145 |
-
* Size: 834 evaluation samples
|
| 146 |
-
* Columns: <code>query</code>, <code>passage</code>, and <code>label</code>
|
| 147 |
-
* Approximate statistics based on the first 834 samples:
|
| 148 |
-
| | query | passage | label |
|
| 149 |
-
|:--------|:------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|:---------------------------------------------------------------|
|
| 150 |
-
| type | string | string | float |
|
| 151 |
-
| details | <ul><li>min: 32 characters</li><li>mean: 66.03 characters</li><li>max: 110 characters</li></ul> | <ul><li>min: 18 characters</li><li>mean: 203.76 characters</li><li>max: 457 characters</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.19</li><li>max: 1.0</li></ul> |
|
| 152 |
-
* Samples:
|
| 153 |
-
| query | passage | label |
|
| 154 |
-
|:---------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------|
|
| 155 |
-
| <code>vì sao repository pattern đôi khi làm code khó hiểu hơn</code> | <code>Repository pattern có thể làm code khó hiểu khi nó che giấu quá nhiều đặc tính truy vấn thật sự của data store, khiến người đọc không biết đâu là thao tác đơn giản, đâu là query đắt tiền. Nếu thêm một lớp repository chỉ để bọc CRUD máy móc, bạn có thêm abstraction nhưng không thêm ý nghĩa domain. Nó hữu ích khi tạo ranh giới rõ và test tốt hơn, nhưng phản tác dụng nếu mọi logic query phức tạp lại bị nhồi vào interface quá chung chung.</code> | <code>1.0</code> |
|
| 156 |
-
| <code>vì sao repository pattern đôi khi làm code khó hiểu hơn</code> | <code>Repository pattern làm code khó hiểu chủ yếu vì nó buộc mọi truy vấn phải chạy đồng bộ, kể cả khi database hỗ trợ async. Điều này khiến tầng data access luôn trở thành bottleneck và lập trình viên phải lần theo nhiều callback.</code> | <code>0.0</code> |
|
| 157 |
-
| <code>vì sao repository pattern đôi khi làm code khó hiểu hơn</code> | <code>Nguyên nhân là repository luôn nhân đôi mô hình dữ liệu: một bản trong database và một bản trong bộ nhớ JVM hay Python. Vì dữ liệu bị copy hai lần, lập trình viên khó theo dõi object nào là bản chuẩn.</code> | <code>0.0</code> |
|
| 158 |
-
* Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
|
| 159 |
-
```json
|
| 160 |
-
{
|
| 161 |
-
"activation_fn": "torch.nn.modules.linear.Identity",
|
| 162 |
-
"pos_weight": 4.186915874481201
|
| 163 |
-
}
|
| 164 |
-
```
|
| 165 |
-
|
| 166 |
-
### Training Hyperparameters
|
| 167 |
-
#### Non-Default Hyperparameters
|
| 168 |
-
|
| 169 |
-
- `eval_strategy`: steps
|
| 170 |
-
- `per_device_eval_batch_size`: 32
|
| 171 |
-
- `learning_rate`: 1e-05
|
| 172 |
-
- `weight_decay`: 0.01
|
| 173 |
-
- `num_train_epochs`: 1
|
| 174 |
-
- `warmup_steps`: 0.1
|
| 175 |
-
- `bf16`: True
|
| 176 |
-
- `dataloader_num_workers`: 2
|
| 177 |
-
- `remove_unused_columns`: False
|
| 178 |
-
- `load_best_model_at_end`: True
|
| 179 |
-
|
| 180 |
-
#### All Hyperparameters
|
| 181 |
-
<details><summary>Click to expand</summary>
|
| 182 |
-
|
| 183 |
-
- `do_predict`: False
|
| 184 |
-
- `eval_strategy`: steps
|
| 185 |
-
- `prediction_loss_only`: True
|
| 186 |
-
- `per_device_train_batch_size`: 8
|
| 187 |
-
- `per_device_eval_batch_size`: 32
|
| 188 |
-
- `gradient_accumulation_steps`: 1
|
| 189 |
-
- `eval_accumulation_steps`: None
|
| 190 |
-
- `torch_empty_cache_steps`: None
|
| 191 |
-
- `learning_rate`: 1e-05
|
| 192 |
-
- `weight_decay`: 0.01
|
| 193 |
-
- `adam_beta1`: 0.9
|
| 194 |
-
- `adam_beta2`: 0.999
|
| 195 |
-
- `adam_epsilon`: 1e-08
|
| 196 |
-
- `max_grad_norm`: 1.0
|
| 197 |
-
- `num_train_epochs`: 1
|
| 198 |
-
- `max_steps`: -1
|
| 199 |
-
- `lr_scheduler_type`: linear
|
| 200 |
-
- `lr_scheduler_kwargs`: None
|
| 201 |
-
- `warmup_ratio`: None
|
| 202 |
-
- `warmup_steps`: 0.1
|
| 203 |
-
- `log_level`: passive
|
| 204 |
-
- `log_level_replica`: warning
|
| 205 |
-
- `log_on_each_node`: True
|
| 206 |
-
- `logging_nan_inf_filter`: True
|
| 207 |
-
- `enable_jit_checkpoint`: False
|
| 208 |
-
- `save_on_each_node`: False
|
| 209 |
-
- `save_only_model`: False
|
| 210 |
-
- `restore_callback_states_from_checkpoint`: False
|
| 211 |
-
- `use_cpu`: False
|
| 212 |
-
- `seed`: 42
|
| 213 |
-
- `data_seed`: None
|
| 214 |
-
- `bf16`: True
|
| 215 |
-
- `fp16`: False
|
| 216 |
-
- `bf16_full_eval`: False
|
| 217 |
-
- `fp16_full_eval`: False
|
| 218 |
-
- `tf32`: None
|
| 219 |
-
- `local_rank`: -1
|
| 220 |
-
- `ddp_backend`: None
|
| 221 |
-
- `debug`: []
|
| 222 |
-
- `dataloader_drop_last`: False
|
| 223 |
-
- `dataloader_num_workers`: 2
|
| 224 |
-
- `dataloader_prefetch_factor`: None
|
| 225 |
-
- `disable_tqdm`: False
|
| 226 |
-
- `remove_unused_columns`: False
|
| 227 |
-
- `label_names`: None
|
| 228 |
-
- `load_best_model_at_end`: True
|
| 229 |
-
- `ignore_data_skip`: False
|
| 230 |
-
- `fsdp`: []
|
| 231 |
-
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 232 |
-
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 233 |
-
- `parallelism_config`: None
|
| 234 |
-
- `deepspeed`: None
|
| 235 |
-
- `label_smoothing_factor`: 0.0
|
| 236 |
-
- `optim`: adamw_torch_fused
|
| 237 |
-
- `optim_args`: None
|
| 238 |
-
- `group_by_length`: False
|
| 239 |
-
- `length_column_name`: length
|
| 240 |
-
- `project`: huggingface
|
| 241 |
-
- `trackio_space_id`: trackio
|
| 242 |
-
- `ddp_find_unused_parameters`: None
|
| 243 |
-
- `ddp_bucket_cap_mb`: None
|
| 244 |
-
- `ddp_broadcast_buffers`: False
|
| 245 |
-
- `dataloader_pin_memory`: True
|
| 246 |
-
- `dataloader_persistent_workers`: False
|
| 247 |
-
- `skip_memory_metrics`: True
|
| 248 |
-
- `push_to_hub`: False
|
| 249 |
-
- `resume_from_checkpoint`: None
|
| 250 |
-
- `hub_model_id`: None
|
| 251 |
-
- `hub_strategy`: every_save
|
| 252 |
-
- `hub_private_repo`: None
|
| 253 |
-
- `hub_always_push`: False
|
| 254 |
-
- `hub_revision`: None
|
| 255 |
-
- `gradient_checkpointing`: False
|
| 256 |
-
- `gradient_checkpointing_kwargs`: None
|
| 257 |
-
- `include_for_metrics`: []
|
| 258 |
-
- `eval_do_concat_batches`: True
|
| 259 |
-
- `auto_find_batch_size`: False
|
| 260 |
-
- `full_determinism`: False
|
| 261 |
-
- `ddp_timeout`: 1800
|
| 262 |
-
- `torch_compile`: False
|
| 263 |
-
- `torch_compile_backend`: None
|
| 264 |
-
- `torch_compile_mode`: None
|
| 265 |
-
- `include_num_input_tokens_seen`: no
|
| 266 |
-
- `neftune_noise_alpha`: None
|
| 267 |
-
- `optim_target_modules`: None
|
| 268 |
-
- `batch_eval_metrics`: False
|
| 269 |
-
- `eval_on_start`: False
|
| 270 |
-
- `use_liger_kernel`: False
|
| 271 |
-
- `liger_kernel_config`: None
|
| 272 |
-
- `eval_use_gather_object`: False
|
| 273 |
-
- `average_tokens_across_devices`: True
|
| 274 |
-
- `use_cache`: False
|
| 275 |
-
- `prompts`: None
|
| 276 |
-
- `batch_sampler`: batch_sampler
|
| 277 |
-
- `multi_dataset_batch_sampler`: proportional
|
| 278 |
-
- `router_mapping`: {}
|
| 279 |
-
- `learning_rate_mapping`: {}
|
| 280 |
-
|
| 281 |
-
</details>
|
| 282 |
-
|
| 283 |
-
### Training Logs
|
| 284 |
-
| Epoch | Step | Training Loss | Validation Loss |
|
| 285 |
-
|:----------:|:-------:|:-------------:|:---------------:|
|
| 286 |
-
| 0.0011 | 1 | 1.9171 | - |
|
| 287 |
-
| 0.0534 | 50 | 1.5105 | - |
|
| 288 |
-
| 0.1067 | 100 | 1.2100 | - |
|
| 289 |
-
| 0.1601 | 150 | 0.7601 | - |
|
| 290 |
-
| 0.2134 | 200 | 0.4333 | 0.3964 |
|
| 291 |
-
| 0.2668 | 250 | 0.4411 | - |
|
| 292 |
-
| 0.3202 | 300 | 0.3237 | - |
|
| 293 |
-
| 0.3735 | 350 | 0.3547 | - |
|
| 294 |
-
| 0.4269 | 400 | 0.4869 | 0.2572 |
|
| 295 |
-
| 0.4803 | 450 | 0.4513 | - |
|
| 296 |
-
| 0.5336 | 500 | 0.6128 | - |
|
| 297 |
-
| 0.5870 | 550 | 0.6998 | - |
|
| 298 |
-
| 0.6403 | 600 | 0.2516 | 0.1479 |
|
| 299 |
-
| 0.6937 | 650 | 0.6151 | - |
|
| 300 |
-
| 0.7471 | 700 | 0.1841 | - |
|
| 301 |
-
| 0.8004 | 750 | 0.0197 | - |
|
| 302 |
-
| **0.8538** | **800** | **0.2113** | **0.1038** |
|
| 303 |
-
| 0.9072 | 850 | 0.2645 | - |
|
| 304 |
-
| 0.9605 | 900 | 0.2026 | - |
|
| 305 |
-
| 1.0 | 937 | - | 0.1042 |
|
| 306 |
-
|
| 307 |
-
* The bold row denotes the saved checkpoint.
|
| 308 |
-
|
| 309 |
-
### Framework Versions
|
| 310 |
-
- Python: 3.12.13
|
| 311 |
-
- Sentence Transformers: 5.3.0
|
| 312 |
-
- Transformers: 5.0.0
|
| 313 |
-
- PyTorch: 2.10.0+cu128
|
| 314 |
-
- Accelerate: 1.13.0
|
| 315 |
-
- Datasets: 4.8.4
|
| 316 |
-
- Tokenizers: 0.22.2
|
| 317 |
-
|
| 318 |
-
## Citation
|
| 319 |
-
|
| 320 |
-
### BibTeX
|
| 321 |
-
|
| 322 |
-
#### Sentence Transformers
|
| 323 |
-
```bibtex
|
| 324 |
-
@inproceedings{reimers-2019-sentence-bert,
|
| 325 |
-
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 326 |
-
author = "Reimers, Nils and Gurevych, Iryna",
|
| 327 |
-
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 328 |
-
month = "11",
|
| 329 |
-
year = "2019",
|
| 330 |
-
publisher = "Association for Computational Linguistics",
|
| 331 |
-
url = "https://arxiv.org/abs/1908.10084",
|
| 332 |
-
}
|
| 333 |
-
```
|
| 334 |
-
|
| 335 |
-
<!--
|
| 336 |
-
## Glossary
|
| 337 |
-
|
| 338 |
-
*Clearly define terms in order to be accessible across audiences.*
|
| 339 |
-
-->
|
| 340 |
-
|
| 341 |
-
<!--
|
| 342 |
-
## Model Card Authors
|
| 343 |
-
|
| 344 |
-
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 345 |
-
-->
|
| 346 |
-
|
| 347 |
-
<!--
|
| 348 |
-
## Model Card Contact
|
| 349 |
-
|
| 350 |
-
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 351 |
-
-->
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- vi
|
| 5 |
+
base_model:
|
| 6 |
+
- cross-encoder/ms-marco-MiniLM-L6-v2
|
|
|
|
|
|
|
|
|
|
| 7 |
pipeline_tag: text-ranking
|
| 8 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.json
DELETED
|
@@ -1,40 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"add_cross_attention": false,
|
| 3 |
-
"architectures": [
|
| 4 |
-
"BertForSequenceClassification"
|
| 5 |
-
],
|
| 6 |
-
"attention_probs_dropout_prob": 0.1,
|
| 7 |
-
"bos_token_id": null,
|
| 8 |
-
"classifier_dropout": null,
|
| 9 |
-
"dtype": "float32",
|
| 10 |
-
"eos_token_id": null,
|
| 11 |
-
"gradient_checkpointing": false,
|
| 12 |
-
"hidden_act": "gelu",
|
| 13 |
-
"hidden_dropout_prob": 0.1,
|
| 14 |
-
"hidden_size": 384,
|
| 15 |
-
"id2label": {
|
| 16 |
-
"0": "LABEL_0"
|
| 17 |
-
},
|
| 18 |
-
"initializer_range": 0.02,
|
| 19 |
-
"intermediate_size": 1536,
|
| 20 |
-
"is_decoder": false,
|
| 21 |
-
"label2id": {
|
| 22 |
-
"LABEL_0": 0
|
| 23 |
-
},
|
| 24 |
-
"layer_norm_eps": 1e-12,
|
| 25 |
-
"max_position_embeddings": 512,
|
| 26 |
-
"model_type": "bert",
|
| 27 |
-
"num_attention_heads": 12,
|
| 28 |
-
"num_hidden_layers": 6,
|
| 29 |
-
"pad_token_id": 0,
|
| 30 |
-
"position_embedding_type": "absolute",
|
| 31 |
-
"sentence_transformers": {
|
| 32 |
-
"activation_fn": "torch.nn.modules.linear.Identity",
|
| 33 |
-
"version": "5.3.0"
|
| 34 |
-
},
|
| 35 |
-
"tie_word_embeddings": true,
|
| 36 |
-
"transformers_version": "5.0.0",
|
| 37 |
-
"type_vocab_size": 2,
|
| 38 |
-
"use_cache": false,
|
| 39 |
-
"vocab_size": 30522
|
| 40 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
model.safetensors
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b86bdbcc751ee324d21d3a7afe7b4eb6d90eb7d7fe6e0e86dd9ae797dc10ab58
|
| 3 |
-
size 90866404
|
|
|
|
|
|
|
|
|
|
|
|
tokenizer.json
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|
tokenizer_config.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"backend": "tokenizers",
|
| 3 |
-
"clean_up_tokenization_spaces": true,
|
| 4 |
-
"cls_token": "[CLS]",
|
| 5 |
-
"do_basic_tokenize": true,
|
| 6 |
-
"do_lower_case": true,
|
| 7 |
-
"is_local": false,
|
| 8 |
-
"mask_token": "[MASK]",
|
| 9 |
-
"model_max_length": 512,
|
| 10 |
-
"model_specific_special_tokens": {},
|
| 11 |
-
"never_split": null,
|
| 12 |
-
"pad_token": "[PAD]",
|
| 13 |
-
"sep_token": "[SEP]",
|
| 14 |
-
"strip_accents": null,
|
| 15 |
-
"tokenize_chinese_chars": true,
|
| 16 |
-
"tokenizer_class": "BertTokenizer",
|
| 17 |
-
"unk_token": "[UNK]"
|
| 18 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|