CrossEncoder based on BAAI/bge-reranker-v2-m3
This is a Cross Encoder model finetuned from BAAI/bge-reranker-v2-m3 using the sentence-transformers library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.
Model Details
Model Description
- Model Type: Cross Encoder
- Base model: BAAI/bge-reranker-v2-m3
- Maximum Sequence Length: 8192 tokens
- Number of Output Labels: 1 label
- Supported Modality: Text
Model Sources
- Documentation: Sentence Transformers Documentation
- Documentation: Cross Encoder Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Cross Encoders on Hugging Face
Full Model Architecture
CrossEncoder(
(0): Transformer({'transformer_task': 'sequence-classification', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'logits'}}, 'module_output_name': 'scores', 'architecture': 'XLMRobertaForSequenceClassification'})
)
Usage
Direct Usage (Sentence Transformers)
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("pameydorke/arcanumchat-reranker-bge-reranker-v2-m3-hybrid-search")
# Get scores for pairs of inputs
pairs = [
['arcana fist damage spells', "Original Post: Most optimized brawler build. As title asks: how would you build a character with primary damage is their fists.\n\nMy working thought is half-orc, half-orge or orge (if using unofficial patch with additional content). Traditional melee build though with early emphasis on strength given how slow fists can be.\n\nNow my dilemma is either staying purely neutral as the best gauntlets (for fist damage) are tech. However, there are spells that can improve fist damage such as harden fist spell and later elemental spells (which would require significant investment into Willpower)\n\nThoughts? User 1: Tech is super fun, but Magick is super powerful. I played 3 melee type builds from start to finish: pure neutral maxed melee, teched-out maxed melee and magick maxed melee. Not unarmed, but melee nonetheless. Neutral is what you would except it to be in the game, any companion can easily support it as maxed melee is a monster regardless. Tech, obviously super fun, plenty of cool tech weapons and armour to play with. Magick? I soloed the game on hard. I usually pick up the dog, but all I did was save him and then dismiss him. You'll have plenty of points to max melee, dodge, strength, agility, willpower and some magick schools as well as having a higher intelligence and con. To me, magick is a no-brainer. Race wise? H-orc is strong early on, as it has bonuses to melee but I went h-elf on my magick melee for the dex bonus. User 2: I have run this thought experiment previously and here is what I came up with: - Raw fist damage maxes at 10, gauntlets are added on top of that - gauntlets are tech, but you don’t need high tech levels to overcome the critical failures - each strike is 5 action points in turn based, training doesn’t change that - maximise action points with dex at 20 (25 action points), hasten and tempus fugit will net at least 60, which is 12 strikes per round. - trade off between maintaining more spells and the up keep cost means int of 12 is sufficient - to off set the magic aptitude you need some tech skills, i went with electrical and herbology. - Use essence of intellect if you want the higher degrees There is a little more, but that is the key details. I also had a look at a Dungeon Crawler Carl build that was punching and explosives, it got very tight on CP. User 3: You can balance spells and tech as a hybrid to keep a zero or slight TA. Harden Hands and the elemental spells do not scale with MA, so tech characters can use them as effectively as any mage. Herbology and therapeutics are a nice counterpart. Playing as half-ogre is a challenge for magick or hybrid brawler because of low INT. If you stack spells then you need 4 INT per slot. You could add spice to it by playing as an Half-ogre [Idiot Savant](https://arcanum.fandom.com/wiki/Character_background#Idiot_Savant) or less radically as a [Rare Half-ogre birth](https://arcanum.fandom.com/wiki/Character_background#Rare_Half-Ogre_Birth) You could also play as a [Sickly](https://a"],
['arcana fist damage spells', 'Hardened Hands. Hardened Hands. Hardened Hands is the first spell in the college of Morph. Uses. This spell gives +2 physical damage bonus during unarmed combat, regardless of aptitude. Limitations. The weapons slot of the attacker must be empty. Unlike the first level elemental spells, Hardened Hands does not stack with itself. Additional Sources. This spell can only be learned, as there are no scrolls or items from which it can be cast. Mechanics. While an attacker must be "weaponless", they still can use a shield. They can also use gauntlets, in which case the damage totals stack. This spell also works on Dog/Worthless Mutt The damage bonus is not visible on the character planner, but it can be seen as increased damage on the verbose floater display. Bonuses. Passing the Mastery Test of The Mistress of Morph in Tulla will reduce the casting cost by half.'],
['arcana fist damage spells', 'Original Post: Considering Yet Another Balance Mod. . .. Hey, all. I know the topic of modding Arcanum/tweaking balance issues is a super tired one, but I\'m nonetheless considering doing some major tweaking of the game\'s mes and proto files this summer because I love the game. I\'m curious what you think are the most troublesome issues remaining in the UAP-patched version? \n\nHere are some general thoughts I have about potential changes. Please feel free to add to these or tell me why I might be misguided:\n\n**Fix grenade AP cost.** The AP cost is obviously way too low. Now, this cannot be fixed without hex editing BUT it may be possible to create a weapon proto version of grenades with realistic AP cost, one that uses, say, fuel as ammo, and players could use that weapon instead of the consumable item. \n\n**Neuter magic.** I am considering making fatigue potions much less common in the game while removing all fatigue damage from weapons. In that sense, fatigue would become "Mana" instead, reduced only by casting spells, running in combat, and getting hit with a fist (because I can\'t change unarmed damage calculations). This means that mages would have to be much more conservative with their spells when exploring dungeons, as fatigue (mana) potions would be harder to come by, and mages would be weaker until they invest points in WP and Fatigue. \n\n**Neuter magic + melee combo.** I\'m really not sure how to fix this, but it is apparent to me that melee is too strong, particularly given that one can become a pretty lethal melee + mage character. I am considering all of the following: lowering speed of all melee weapons, removing the vast majority of magic weapons from the game, making all axes technical (no magic axes, because axes are for dwarves!), and removing powerful magic weapons from all shops (but not dungeon loot). \n\n**Fix ranged.** Bows are crazy in real time. Maybe I can make them slower but more powerful? Chakrams and such need to be much slower, and they shouldn\'t break through doors/chests. . . \n\n**Improve tech.** Guns should be more powerful from the start and probably slower. I\'m sure there are other changes that need to be made...\n\n**Make enemies more challenging.** I have already given the Hand/Bounty Hunter NPCs far better equipment, and I\'ve read that NPCs will cast more spells if their fatigue is doubled or tripled. I\'ve also given the Hand some scrolls, so they will cast spells in combat. \n\n**Change Magic shop inventory.** What if Gypsies only sold scrolls and jewelry, and magic shops sold (reduced amount of) magic equipment? This would make exploring more lucrative. \n\n​\n\nAnyway, those are my thoughts so far. Please let me know what you\'d like to see in terms of game changes. User 1: I really think you should keep to balancing. Changes like making all axes technological are just bad, make no sense, limit the game and are as arbitrary as it gets. Don\'t do it, please. User 2: Fatigue potions are handy for long dungeons whe'],
['arcana fist damage spells', "Spell Colleges. Earth. Spell Colleges. Earth. Strength of Earth Minimum requirements: Level 1, WP 6 Energy: 5 (1/10 seconds) Stackable: Yes Target gains +4 to Strength, regardless of its or the caster's Magickal Aptitude. Stone Throw Minimum requirements: Level 1, WP 9 Energy: 10 Resisted by: Constitution -5 This spell creates a homing stone projectile that inflicts physical damage on the target, including living and inanimate objects. Wall of Stone Minimum requirements: Level 5, WP 12 Energy: 15 (1/10 seconds) Creates a temporary wall of stone on targeted area while maintain. Body of Stone Minimum requirements: Level 10, WP 15 Energy: 25 (2/10 seconds) The spell turns the body of a target into stone. Call Earth Elemental Minimum requirements: Level 15, WP 18 Energy: 50 (5/10 seconds) Summons a Earth Elemental to do the caster's bidding."],
['arcana fist damage spells', "Spell Colleges. Air. Spell Colleges. Air. Vitality of Air Minimum requirements: Level 1, WP 6 Energy: 5 (1/10 seconds) Stackable: Yes Target gains +4 to Constitution, regardless of its or the caster's Magickal Aptitude. Poison Vapours Minimum requirements: Level 1, WP 9 Energy: 10 (5/10 seconds) Resisted by: Constitution Creates a cloud of poisonous vapours concentrated around the target. Any creature other than the caster and his followers will get 15-50 PD, depending on the Magickal Aptitude of the caster. Call Winds Minimum requirements: Level 5, WP 12 Energy: 15 Resisted by: Constitution -5 Causes wind gusts to flow from the caster in all directions, pushing away all nearby creatures and dealing damage if they hit a nearby object or wall. Body of Air Minimum requirements: Level 10, WP 15 Energy: 25 (2/10 seconds) This spell transforms the body of a target into the air, making it transparent. Call Air Elemental Minimum requirements: Level 15, WP 18 Energy: 50 (5/10 seconds) Summons an Air Elemental to do the caster's bidding."],
]
scores = model.predict(pairs)
print(scores)
# [0.2834 0.0004 0.2478 0.0009 0.0008]
# Or rank different texts based on similarity to a single text
ranks = model.rank(
'arcana fist damage spells',
[
"Original Post: Most optimized brawler build. As title asks: how would you build a character with primary damage is their fists.\n\nMy working thought is half-orc, half-orge or orge (if using unofficial patch with additional content). Traditional melee build though with early emphasis on strength given how slow fists can be.\n\nNow my dilemma is either staying purely neutral as the best gauntlets (for fist damage) are tech. However, there are spells that can improve fist damage such as harden fist spell and later elemental spells (which would require significant investment into Willpower)\n\nThoughts? User 1: Tech is super fun, but Magick is super powerful. I played 3 melee type builds from start to finish: pure neutral maxed melee, teched-out maxed melee and magick maxed melee. Not unarmed, but melee nonetheless. Neutral is what you would except it to be in the game, any companion can easily support it as maxed melee is a monster regardless. Tech, obviously super fun, plenty of cool tech weapons and armour to play with. Magick? I soloed the game on hard. I usually pick up the dog, but all I did was save him and then dismiss him. You'll have plenty of points to max melee, dodge, strength, agility, willpower and some magick schools as well as having a higher intelligence and con. To me, magick is a no-brainer. Race wise? H-orc is strong early on, as it has bonuses to melee but I went h-elf on my magick melee for the dex bonus. User 2: I have run this thought experiment previously and here is what I came up with: - Raw fist damage maxes at 10, gauntlets are added on top of that - gauntlets are tech, but you don’t need high tech levels to overcome the critical failures - each strike is 5 action points in turn based, training doesn’t change that - maximise action points with dex at 20 (25 action points), hasten and tempus fugit will net at least 60, which is 12 strikes per round. - trade off between maintaining more spells and the up keep cost means int of 12 is sufficient - to off set the magic aptitude you need some tech skills, i went with electrical and herbology. - Use essence of intellect if you want the higher degrees There is a little more, but that is the key details. I also had a look at a Dungeon Crawler Carl build that was punching and explosives, it got very tight on CP. User 3: You can balance spells and tech as a hybrid to keep a zero or slight TA. Harden Hands and the elemental spells do not scale with MA, so tech characters can use them as effectively as any mage. Herbology and therapeutics are a nice counterpart. Playing as half-ogre is a challenge for magick or hybrid brawler because of low INT. If you stack spells then you need 4 INT per slot. You could add spice to it by playing as an Half-ogre [Idiot Savant](https://arcanum.fandom.com/wiki/Character_background#Idiot_Savant) or less radically as a [Rare Half-ogre birth](https://arcanum.fandom.com/wiki/Character_background#Rare_Half-Ogre_Birth) You could also play as a [Sickly](https://a",
'Hardened Hands. Hardened Hands. Hardened Hands is the first spell in the college of Morph. Uses. This spell gives +2 physical damage bonus during unarmed combat, regardless of aptitude. Limitations. The weapons slot of the attacker must be empty. Unlike the first level elemental spells, Hardened Hands does not stack with itself. Additional Sources. This spell can only be learned, as there are no scrolls or items from which it can be cast. Mechanics. While an attacker must be "weaponless", they still can use a shield. They can also use gauntlets, in which case the damage totals stack. This spell also works on Dog/Worthless Mutt The damage bonus is not visible on the character planner, but it can be seen as increased damage on the verbose floater display. Bonuses. Passing the Mastery Test of The Mistress of Morph in Tulla will reduce the casting cost by half.',
'Original Post: Considering Yet Another Balance Mod. . .. Hey, all. I know the topic of modding Arcanum/tweaking balance issues is a super tired one, but I\'m nonetheless considering doing some major tweaking of the game\'s mes and proto files this summer because I love the game. I\'m curious what you think are the most troublesome issues remaining in the UAP-patched version? \n\nHere are some general thoughts I have about potential changes. Please feel free to add to these or tell me why I might be misguided:\n\n**Fix grenade AP cost.** The AP cost is obviously way too low. Now, this cannot be fixed without hex editing BUT it may be possible to create a weapon proto version of grenades with realistic AP cost, one that uses, say, fuel as ammo, and players could use that weapon instead of the consumable item. \n\n**Neuter magic.** I am considering making fatigue potions much less common in the game while removing all fatigue damage from weapons. In that sense, fatigue would become "Mana" instead, reduced only by casting spells, running in combat, and getting hit with a fist (because I can\'t change unarmed damage calculations). This means that mages would have to be much more conservative with their spells when exploring dungeons, as fatigue (mana) potions would be harder to come by, and mages would be weaker until they invest points in WP and Fatigue. \n\n**Neuter magic + melee combo.** I\'m really not sure how to fix this, but it is apparent to me that melee is too strong, particularly given that one can become a pretty lethal melee + mage character. I am considering all of the following: lowering speed of all melee weapons, removing the vast majority of magic weapons from the game, making all axes technical (no magic axes, because axes are for dwarves!), and removing powerful magic weapons from all shops (but not dungeon loot). \n\n**Fix ranged.** Bows are crazy in real time. Maybe I can make them slower but more powerful? Chakrams and such need to be much slower, and they shouldn\'t break through doors/chests. . . \n\n**Improve tech.** Guns should be more powerful from the start and probably slower. I\'m sure there are other changes that need to be made...\n\n**Make enemies more challenging.** I have already given the Hand/Bounty Hunter NPCs far better equipment, and I\'ve read that NPCs will cast more spells if their fatigue is doubled or tripled. I\'ve also given the Hand some scrolls, so they will cast spells in combat. \n\n**Change Magic shop inventory.** What if Gypsies only sold scrolls and jewelry, and magic shops sold (reduced amount of) magic equipment? This would make exploring more lucrative. \n\n​\n\nAnyway, those are my thoughts so far. Please let me know what you\'d like to see in terms of game changes. User 1: I really think you should keep to balancing. Changes like making all axes technological are just bad, make no sense, limit the game and are as arbitrary as it gets. Don\'t do it, please. User 2: Fatigue potions are handy for long dungeons whe',
"Spell Colleges. Earth. Spell Colleges. Earth. Strength of Earth Minimum requirements: Level 1, WP 6 Energy: 5 (1/10 seconds) Stackable: Yes Target gains +4 to Strength, regardless of its or the caster's Magickal Aptitude. Stone Throw Minimum requirements: Level 1, WP 9 Energy: 10 Resisted by: Constitution -5 This spell creates a homing stone projectile that inflicts physical damage on the target, including living and inanimate objects. Wall of Stone Minimum requirements: Level 5, WP 12 Energy: 15 (1/10 seconds) Creates a temporary wall of stone on targeted area while maintain. Body of Stone Minimum requirements: Level 10, WP 15 Energy: 25 (2/10 seconds) The spell turns the body of a target into stone. Call Earth Elemental Minimum requirements: Level 15, WP 18 Energy: 50 (5/10 seconds) Summons a Earth Elemental to do the caster's bidding.",
"Spell Colleges. Air. Spell Colleges. Air. Vitality of Air Minimum requirements: Level 1, WP 6 Energy: 5 (1/10 seconds) Stackable: Yes Target gains +4 to Constitution, regardless of its or the caster's Magickal Aptitude. Poison Vapours Minimum requirements: Level 1, WP 9 Energy: 10 (5/10 seconds) Resisted by: Constitution Creates a cloud of poisonous vapours concentrated around the target. Any creature other than the caster and his followers will get 15-50 PD, depending on the Magickal Aptitude of the caster. Call Winds Minimum requirements: Level 5, WP 12 Energy: 15 Resisted by: Constitution -5 Causes wind gusts to flow from the caster in all directions, pushing away all nearby creatures and dealing damage if they hit a nearby object or wall. Body of Air Minimum requirements: Level 10, WP 15 Energy: 25 (2/10 seconds) This spell transforms the body of a target into the air, making it transparent. Call Air Elemental Minimum requirements: Level 15, WP 18 Energy: 50 (5/10 seconds) Summons an Air Elemental to do the caster's bidding.",
]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
Evaluation
Metrics
Cross Encoder Reranking
- Dataset:
val-hard-negatives - Evaluated with CrossEncoderRerankingEvaluator with these parameters:
{ "at_k": 20 }
| Metric | Value |
|---|---|
| map | 0.8572 |
| mrr@20 | 0.9027 |
| ndcg@20 | 0.9285 |
Training Details
Training Dataset
Unnamed Dataset
- Size: 23,690 training samples
- Columns: query, document, and label
- Approximate statistics based on the first 100 samples:
query document label type string string int modality text text details min: 6 tokensmean: 8.59 tokensmax: 11 tokens min: 20 tokensmean: 362.2 tokensmax: 941 tokens 0: ~79.81%1: ~20.19% - Samples:
query document label turn target into liquid Body of Water. Body of Water. Body of Water is the fourth spell in the college of Water. Uses. This spell transforms the body of a target into Water and liquid, making the target slow, but resistant to attack. When cast on a target, all equipped items are moved into the target's inventory (or dropped to the ground if inventory becomes full). Limitations. The player or their followers lose all bonuses from formally equipped items. Additional Sources. Scrolls are sold in Magick Shops. Mechanics. For NPC targets: Unequipping includes "hidden" items that sometimes are not normally shown in an NPC's body or inventory screen. Thus it makes pickpocketing possible for hidden items. It also makes pickpocketing easier for other items that were previously equipped. Casting this spell on an NPC will not cause them to become hostile. For the player and party members: The target receives -5 speed, DR is set to 95, PR to 30, and ER to 90 Thus the target becomes more difficult to hit and much more dif... 1 turn target into liquid Spell Colleges. Water. Spell Colleges. Water. Purity of Water Minimum requirements: Level 1, WP 6 Energy: 5 (1/10 seconds) Stackable: Yes Target gains +4 Beauty and any associate reaction modifiers that would come with that, regardless of its or the caster's Magickal Aptitude. Call Fog Minimum requirements: Level 1, WP 9 Energy: 10 (1/10 seconds) This spell creates a billowing mist centered on the target tile, reducing a creature's chance to hit. Squall of Ice Minimum requirements: Level 5, WP 12 Energy: 15 (5/10 seconds) Resisted by: Constitution -5 This spell creates a storm of ice and sleet, centered on the target tile. It deals damage over time, much like the Wall of Fire. Body of Water Minimum requirements: Level 10, WP 25 Energy: 15 (2/10 seconds) Turns the body of a target into liquid water. Call Water Elemental Minimum requirements: Level 15, WP 18 Energy: 50 (5/10 seconds) Summons a Water Elemental to do the caster's bidding. 0 turn target into liquid Fire Obstruction. Fire Obstruction. This schematic is learned when you the acquire the Sixth Degree in the Explosives discipline. Ingredients. Kerosene + Liquid Soap Kerosene can be bought in Inventors' Shops Liquid Soap can be bought in Inventors' Shops and General Stores. Effects. Three units can be obtained per unit of both components Creates a fire curtain in a 3X3 area, damaging all passing through. Used In. Pyrotechnic Bow Flame Thrower. Item Page. Notes. This is similar to the Spell Wall of Fire 0 - Loss: BinaryCrossEntropyLoss with these parameters:
{ "activation_fn": "torch.nn.modules.linear.Identity", "pos_weight": null }
Evaluation Dataset
Unnamed Dataset
- Size: 2,695 evaluation samples
- Columns: query, document, and label
- Approximate statistics based on the first 100 samples:
query document label type string string int modality text text details min: 5 tokensmean: 8.41 tokensmax: 12 tokens min: 20 tokensmean: 350.68 tokensmax: 837 tokens 0: ~79.81%1: ~20.19% - Samples:
query document label arcana fist damage spells Original Post: Most optimized brawler build. As title asks: how would you build a character with primary damage is their fists.My working thought is half-orc, half-orge or orge (if using unofficial patch with additional content). Traditional melee build though with early emphasis on strength given how slow fists can be.Now my dilemma is either staying purely neutral as the best gauntlets (for fist damage) are tech. However, there are spells that can improve fist damage such as harden fist spell and later elemental spells (which would require significant investment into Willpower)Thoughts? User 1: Tech is super fun, but Magick is super powerful. I played 3 melee type builds from start to finish: pure neutral maxed melee, teched-out maxed melee and magick maxed melee. Not unarmed, but melee nonetheless. Neutral is what you would except it to be in the game, any companion can easily support it as maxed melee is a monster regardless. Tech, obviously super fun, plenty of cool tech wea... 1 arcana fist damage spells Hardened Hands. Hardened Hands. Hardened Hands is the first spell in the college of Morph. Uses. This spell gives +2 physical damage bonus during unarmed combat, regardless of aptitude. Limitations. The weapons slot of the attacker must be empty. Unlike the first level elemental spells, Hardened Hands does not stack with itself. Additional Sources. This spell can only be learned, as there are no scrolls or items from which it can be cast. Mechanics. While an attacker must be "weaponless", they still can use a shield. They can also use gauntlets, in which case the damage totals stack. This spell also works on Dog/Worthless Mutt The damage bonus is not visible on the character planner, but it can be seen as increased damage on the verbose floater display. Bonuses. Passing the Mastery Test of The Mistress of Morph in Tulla will reduce the casting cost by half. 0 arcana fist damage spells Original Post: Considering Yet Another Balance Mod. . .. Hey, all. I know the topic of modding Arcanum/tweaking balance issues is a super tired one, but I'm nonetheless considering doing some major tweaking of the game's mes and proto files this summer because I love the game. I'm curious what you think are the most troublesome issues remaining in the UAP-patched version? Here are some general thoughts I have about potential changes. Please feel free to add to these or tell me why I might be misguided:Fix grenade AP cost. The AP cost is obviously way too low. Now, this cannot be fixed without hex editing BUT it may be possible to create a weapon proto version of grenades with realistic AP cost, one that uses, say, fuel as ammo, and players could use that weapon instead of the consumable item. Neuter magic. I am considering making fatigue potions much less common in the game while removing all fatigue damage from weapons. In that sense, fatigue would become "Mana" instead,... 0 - Loss: BinaryCrossEntropyLoss with these parameters:
{ "activation_fn": "torch.nn.modules.linear.Identity", "pos_weight": null }
Training Hyperparameters
Non-Default Hyperparameters
per_device_train_batch_size: 16num_train_epochs: 1warmup_steps: 0.1gradient_accumulation_steps: 2per_device_eval_batch_size: 16eval_on_start: Trueload_best_model_at_end: True
All Hyperparameters
per_device_train_batch_size: 16num_train_epochs: 1max_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: 2average_tokens_across_devices: Truemax_grad_norm: 1.0label_smoothing_factor: 0.0bf16: Falsefp16: Falsebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Nonetorch_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: 16prediction_loss_only: Trueeval_on_start: Trueeval_do_concat_batches: Trueeval_use_gather_object: Falseeval_accumulation_steps: Noneinclude_for_metrics: []batch_eval_metrics: Falsesave_only_model: Falsesave_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
Training Logs
| Epoch | Step | Training Loss | Validation Loss | val-hard-negatives_ndcg@20 |
|---|---|---|---|---|
| 0 | 0 | - | 0.3645 | 0.9179 |
| 0.1350 | 100 | 0.3051 | 0.2539 | 0.9286 |
| 0.2701 | 200 | 0.3072 | 0.2566 | 0.9291 |
| 0.4051 | 300 | 0.2923 | 0.2568 | 0.9196 |
| 0.5402 | 400 | 0.2851 | 0.2486 | 0.9275 |
| 0.6752 | 500 | 0.2874 | 0.2405 | 0.9305 |
| 0.8103 | 600 | 0.2804 | 0.2341 | 0.9260 |
| 0.9453 | 700 | 0.2485 | 0.2360 | 0.9271 |
| 1.0 | 741 | - | 0.2327 | 0.9285 |
- The bold row denotes the saved checkpoint.
Training Time
- Training: 1.1 hours
Framework Versions
- Python: 3.13.16
- Sentence Transformers: 6.2.0
- Transformers: 5.21.0
- PyTorch: 2.11.0+cu130
- Accelerate: 1.15.0
- Datasets: 4.8.5
- Tokenizers: 0.23.3
Additional Resources
- Training and Finetuning Reranker Models with Sentence Transformers: the end-to-end guide for training or finetuning Cross Encoder (reranker) models.
- Multimodal Embedding & Reranker Models with Sentence Transformers: use text, image, audio, and video reranker models through the same API.
- Training and Finetuning Multimodal Embedding & Reranker Models with Sentence Transformers: training multimodal Cross Encoders.
Citation
BibTeX
Sentence Transformers
@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",
}