pameydorke/arcanum-cross-platform-retriever
SentenceTransformer based on BAAI/bge-m3
This is a sentence-transformers model finetuned from BAAI/bge-m3. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for retrieval.
Model Details
Model Description
- Model Type: Sentence Transformer
- Base model: BAAI/bge-m3 <!-- at revision 5617a9f61b028005a4858fdac845db406aefb181 -->
- Maximum Sequence Length: 8192 tokens
- Output Dimensionality: 1024 dimensions
- Similarity Function: Cosine Similarity
- Supported Modality: Text <!-- - Training Dataset: Unknown --> <!-- - Language: Unknown --> <!-- - License: Unknown -->
Model Sources
- Documentation: Sentence Transformers Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sentence Transformers on Hugging Face
Full Model Architecture
SentenceTransformer(
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'XLMRobertaModel'})
(1): Pooling({'embedding_dimension': 1024, 'pooling_mode': 'cls', 'include_prompt': True})
(2): Normalize({})
)Usage
Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
pip install -U sentence-transformersThen you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("pameydorke/arcanum-cross-platform-retriever")
# Run inference
queries = [
'loot wolf cubs fallout',
]
documents = [
'Wolf Cave. Wolf Cave. Location. The cave is located at 1230W 1530S, roughly midway between Shrouded Hills, Dernholm, and Black Root. It is marked on your map when you explore the immediate area. Area. The cave entrance is at Point A. On the east side (point 1) are a Wolf and eight Wolf Cubs guarding a lootable skeleton and some containers with random items and some coin. On the west side (point 2) are three Putrid Rodents guarding another lootable skeleton with lockpicks and a barrel. Point 3 has four sewer rats guarding a single barrel with some health potions. Point 4 is unguarded and has a barrel with dynamite and other random tech items.',
'Original Post: Unusual Playthroughs?. Thinking along the lines of my [other topic](https://www.reddit.com/r/arcanum/comments/4tcgiz/meta_abuse_dominate_will/?st=iqrbwiyg&sh=5dcf12db), what are some of the more unusual/cool ways that you\'ve been able to play through the game? \n\nI\'d definitely recommend that new players do a regular run or two first (preferably with a really persuasive character to be able to get some of the "best" plot points/outcomes), but I love the range of options provided by the rich, open-ended world. Some of my favorites include:\n\n* Evil necromancer playthrough. You can kill pretty much all of the "important" NPCs and use the level 2 black necromancy power to torture their spirits into giving up whatever plot information you need for the next step. In my case I played a half-orc who picked a fight with anyone and everyone who insulted him for being a half-orc. \n\n* Mind control/meta abuse: by exploiting the reflection shield bug to make mental domination permanent, you can go through the game permanently enslaving just about everyone in the world. In addition to reducing entire cities to mindless servants who stand in place waiting for your next command you can add most people (and monsters!) to your retinue instead of the regular companions. \n\n* Low-intelligence playthrough: maybe it\'s not *that* unusual, but a run with a character who uses the dumb dialog options is worth it for comedic effect alone. Your journal entries are often hilarious, and I never fail to laugh out loud when Raven explains the Falcon\'s Ache quest by telling you "don\'t hit! OK? Don\'t hit!" User 1: I\'ve made a few gunfighters... in a game where magic is so ridiculously imbalanced I felt like the odd man out to be sure User 2: My favorite has been The Mad Bomber. Pyromaniac background and only do explosive tech, throwing skills and a few other things to make it fun, (planting bombs on people is fun). You use bombs as weapons. User 3: The one time I managed to finish the story was as a half-ogre, with the rare half-ogre birth (lowers your strength and constitution to boost intelligence). Maxed intelligence and charisma, played as a diplomatic wizard. The writing for the dialogues were particularly clever for this one. 90% of the npcs would initially have a negative reaction modifier and their opening statement would be something condescending or insulting because they expected me to be an idiot like all other half-ogres, and then my initial responses usually included something like "Excuse me sir, but I would advise you to rephrase that before I rip your arms off." Cue the npc shitting their pants followed by an immediate large boost to the npc\'s reaction and them apologizing for being an asshole. It was kind of like the opposite of your half-orc necromancer. Instead of killing everyone that insulted me, I persuaded them to bend over backwards for me so that they could keep living. I talked my way through almost everything, including the final boss. ',
"Original Post: Arcanum on a Lenovo Legion Go 2. Sorry, if I make any mistakes. English is not my first language and I'm posting for the first time.\n\nYesterday I wrestled with my Legion go 2 and the unofficial patch. It started but the screen was black and would only show an image, if I moved the mouse. The trick was to not install the high res patch. For some reason it doesn't communicate well with the hardware. I don't even need a controller support mod, because I can use the trackpad or the Legion go's own mode, where you can control the mouse with the left stick.\n\nI hope this helps. User 1: Have you tried [Arcanum Universal Setup for UAP](https://www.nexusmods.com/arcanumofsteamworksandmagickobscura/mods/4)?",
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 1024] [3, 1024]
# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[0.4995, 0.0530, 0.0133]])<!--
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. -->
Evaluation
Metrics
Information Retrieval
- Dataset:
arcanum-test - Evaluated with <code>InformationRetrievalEvaluator</code>
<!--
Bias, Risks and Limitations
What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model. -->
<!--
Recommendations
What are recommendations with respect to the foreseeable issues? For example, filtering explicit content. -->
Training Details
Training Dataset
Unnamed Dataset
- Size: 4,612 training samples
- Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
- Approximate statistics based on the first 100 samples: | | anchor | positive | negative | |:---------|:---------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------| | type | string | string | string | | modality | text | text | text | | details | <ul><li>min: 5 tokens</li><li>mean: 8.88 tokens</li><li>max: 14 tokens</li></ul> | <ul><li>min: 22 tokens</li><li>mean: 398.81 tokens</li><li>max: 951 tokens</li></ul> | <ul><li>min: 13 tokens</li><li>mean: 428.8 tokens</li><li>max: 999 tokens</li></ul> |
- Samples: | anchor | positive | negative | |:-------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | <code>compound bow explosives requirement</code> | <code>Pyrotechnic Bow. Pyrotechnic Bow. The Pyrotechnic Bow Schematic can be found on the second level of the Black Mountain Clan. Expertise. Requires an expertise of 45 in Explosives Requires an expertise of 20 in Mechanical. Ingredients. Fire Obstruction + Compound Bow Fire Obstruction is the sixth degree in Explosvies The Compound Bow schematic can be purchased from Blacksmiths. Effects. One unit can be obtained per unit of both components Stats: 1-10 HD, 2-5 FT, 5-20 FD, 8 SP, 20 RNG, 5 WE, 80 QU. Used as an ingredient for:. None. Notes. The Mistress of Fire in Tulla carries a Pyrotechnic Bow. Item Page</code> | <code>Charged Sword. Charged Sword. The Charged Sword Schematic can be purchased from Blacksmiths. Expertise. Requires an expertise of 5 in Smithy Requires an expertise of 40 in Electric. Ingredients. Balanced Sword + Large Capacitor Balanced Sword is the second degree in Smithy Large capacitors are sold by Inventor Shops. Effects. One sword can be obtained per unit of both components 3-12 HD, 3-9 FT, 1-20 ED, 10 SP, 80 WE, 80 QU (Tech). Used as an ingredient for:. None. Notes. None. Item Page</code> | | <code>main choices arcana</code> | <code>Original Post: What aspects of Arcanum do you wish other games would adopt?. For me, I really liked the way you could just bash doors down. It always bugged me in other games, where you'd have a giant hammer and godlike strength, or a rocket launcher, yet perfectly simple doors would deter you. <br><br>Case in point<br><br>Not Arcanum! The only fault I can find with the system is Virgil's overenthusiastic response to the idea of breaking down doors. <br><br>What aspects of Arcanum would you like to see "Bleed out" into more mainstream RPGs?<br> U...</code> | <code>Original Post: New Arcanum player, Looking for mod recommendations.. Hey y'all. I just downloaded this game and I'm looking for some good mods to download, preferably with links to where I can. I'm mainly looking for quality of life and bug fixing stuff. User 1: For a base build, use the official patch to 1.0.7.4 and then the unofficial patch to 2.02 for best results on modern systems. In addition to the UAP mod, multiverse mod has a lot of support, but it has heavily re-balanced the game. And then there are misc mods and downloads galore at Terra Arcanum that you can pick and choose through. User 2: first off, ya need drog blacktooth's unofficial patch. it restores and fixes literally thousands of issues with arcanum including content.</code> | | <code>how do i solve tulla puzzle</code> | <code>Tulla. Tulla. "I can't STAND Tulla..everyone is so bloody boring. You'd think it was a damned graveyard with all of the walking dead around here..". —Geoffrey Tarellond-Ashe. Tulla Exterior. Area Note. You can find a lot of good magical loot in the city, but if you attack any magicians to get it, the entire city will turn again you. Also, if you joined the dark elves in T'sen-Ang, the gate guard won't let you in, and fighting him will turn the city against you, giving you little reason to go in. 1 - Entrance Gate. The only normal way into Tulla is to use the teleportation gate outside the city. When you talk to the elf next to it, he'll inform you that Jorian is expecting you, and he'll allow you to use the gate. Early access is possible by using a pathing glitch, however. 2 - Study Room. Inside you'll meet Herzod Munk, who is something less than an eager student. He'll ask you to take his final Phantasm College exam for him. If you agree, he'll give you Fa'al Kin's Coin, the key to t...</code> | <code>Shrouded Hills. Shrouded Hills. Shrouded Hills Type: Town Coordinates: West 1410, South 1317 Inhabitants: Constable OwensLloyd GurloesDoc RobertsJongle DunneGaylinGypsySogg Mead MugPercival TooneBessie Toone (deceased) Quests: Destroy the Town's Steam EngineDestroy the construction materials for the new bridgeFind the Amulet of N'TalaFind Pure Ore for LloydFree the Ghost of Bessie TooneFix the Town's Steam EnginePickup Jongle's PackageRistrezze: find a Camera OR some Bessie Toone paraphenaliaRob the BankStop The Bank RobberyThe Thieves and the Bridge. Shrouded Hills is a small mining town east of the Stonewall Range, south-west of Tarant and north-west of Dernholm. It is well-known for the Bessie Toone Mine and its agriculture, where a majority of the towns production comes from. It is also a part of the Unified Kingdom, and is governed by Constable Owens. The town is primitive in that it has been barely touched by either magick or technology. Services. Shrouded Hills is small, yet pro...</code> |
- Loss: <code>GISTEmbedLoss</code> with these parameters:
{
"guide": "SentenceTransformer('BAAI/bge-m3')",
"temperature": 0.07,
"margin_strategy": "absolute",
"margin": 0.0,
"contrast_anchors": true,
"contrast_positives": true,
"gather_across_devices": false
}Training Hyperparameters
Non-Default Hyperparameters
per_device_train_batch_size: 5num_train_epochs: 1learning_rate: 1e-05lr_scheduler_type: cosinewarmup_steps: 0.1weight_decay: 0.01gradient_accumulation_steps: 2per_device_eval_batch_size: 5batch_sampler: no_duplicates
All Hyperparameters
<details><summary>Click to expand</summary>
per_device_train_batch_size: 5num_train_epochs: 1max_steps: -1learning_rate: 1e-05lr_scheduler_type: cosinelr_scheduler_kwargs: Nonewarmup_steps: 0.1optim: adamwtorchfusedoptim_args: Noneweight_decay: 0.01adam_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: 5prediction_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: 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: Falseignore_data_skip: Falserestore_callback_states_from_checkpoint: Falsefull_determinism: Falseseed: 42data_seed: Noneuse_cpu: Falseaccelerator_config: {'splitbatches': False, 'dispatchbatches': None, 'evenbatches': True, 'useseedablesampler': True, 'nonblocking': False, 'gradientaccumulationkwargs': None}parallelism_config: Nonedataloader_drop_last: Falsedataloader_num_workers: 0dataloader_pin_memory: Truedataloader_persistent_workers: Falsedataloader_prefetch_factor: Noneremove_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: Nonewarmup_ratio: Nonelocal_rank: -1prompts: Nonebatch_sampler: no_duplicatesmulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}
</details>
Training Logs
Training Time
- Training: 30.7 minutes
Framework Versions
- Python: 3.12.13
- Sentence Transformers: 5.6.0
- Transformers: 5.13.1
- PyTorch: 2.11.0+cu128
- Accelerate: 1.14.0
- Datasets: 4.0.0
- Tokenizers: 0.22.2
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",
}GISTEmbedLoss
@misc{solatorio2024gistembed,
title={GISTEmbed: Guided In-sample Selection of Training Negatives for Text Embedding Fine-tuning},
author={Aivin V. Solatorio},
year={2024},
eprint={2402.16829},
archivePrefix={arXiv},
primaryClass={cs.LG}
}<!--
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. -->
