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({})
)pip install -U sentence-transformers1from sentence_transformers import SentenceTransformer
2
3# Download from the 🤗 Hub
4model = SentenceTransformer("pameydorke/arcanum-quests-retriever")
5# Run inference
6sentences = [
7 'steps to rescue prisoner',
8 "Rescue Tollo Underhill. If the party finds and rescues Tollo randomly (without being assigned by K'an Hua) then the rewards are still the same The Pits has some interesting loot, so exploring it in its entirety may be a consideration",
9 "Clean Up the Boil. Damian Maug's Path. The Closed Sewers (optional) If the player does not want to conduct a direct frontal assault on Damian Maug, then they may try a stealth approach The Bentley (see below) and the Port of Tarant have access to the closed sewers of Tarant Point 1 is the Port entrance and Point 3 is the access to the Bentley This route can be used to avoid the bulk of Maug's defenses The Bentley The player can find Maug (point 1) in his house on the west side of The Boil If the party goes for a frontal assault then they will have to slowly work their way through a maze of rooms with about a dozen powerful and well armed gang members scattered a few at a time Defeating them and getting to the final room will let the party finish off Maug and his bodyguard",
10]
11embeddings = model.encode(sentences)
12print(embeddings.shape)
13# [3, 1024]
14
15# Get the similarity scores for the embeddings
16similarities = model.similarity(embeddings, embeddings)
17print(similarities)
18# tensor([[1.0000, 0.3610, 0.2773],
19# [0.3610, 1.0000, 0.1856],
20# [0.2773, 0.1856, 1.0000]])arcanum-testInformationRetrievalEvaluator| Metric | Value |
|---|---|
| cosine_accuracy@1 | 0.7456 |
| cosine_accuracy@3 | 0.9079 |
| cosine_accuracy@5 | 0.9737 |
| cosine_accuracy@10 | 0.9825 |
| cosine_precision@1 | 0.7456 |
| cosine_precision@3 | 0.3026 |
| cosine_precision@5 | 0.1947 |
| cosine_precision@10 | 0.0982 |
| cosine_recall@1 | 0.7456 |
| cosine_recall@3 | 0.9079 |
| cosine_recall@5 | 0.9737 |
| cosine_recall@10 | 0.9825 |
| cosine_ndcg@10 | 0.8729 |
| cosine_mrr@10 | 0.8365 |
| cosine_map@100 | 0.8378 |
anchor, positive, and negative| anchor | positive | negative | |
|---|---|---|---|
| type | string | string | string |
| details |
|
|
|
| anchor | positive | negative |
|---|---|---|
kill king caladon guide | Kill the King of Caladon. After talking with Mr Willoughsby, a man, Heinrich Jenks appears in the room outside. He wants you to assassinate the King Of Caladon, he tells you to meet Vernon in the Kitchen for more details. When the job is done he will meet you again in Grant’s Tavern and give you 20,000 gold.You can tell Mr Willoughsby and he will send Lorham, his bodyguard to deal with him (this botches the quest).Travelling to Caladon, you need to talk with Renard first and then you will find Vernon who gives you a key.You can also get into the palace by hiding in a crate on the Caladon waterfront.Upstairs you will find a guard patrolling, he will try and kill you on sight (getting past him depends on your style prowling and backstab work well here). Make sure you loot the rooms as there is a lot of jewellery. Go through the ventilation system and explore.It is worthwhile making your way to the treasure vault. The door can be difficult to pick (or break down without damaging weapons).... | Find Dudley Crosston. This quest is found in the "rumor" tab of the player's logbook, rather than in the "quest" tab If the player has expert training in Bow when he talks to Kietzal in Black Root, then this quest can be done concurrently with the Bow Mastery Quest Otherwise the Mastery Quest cannot be started until reaching Caladon, and talking to Kietzal a second time And since access to Caladon is only available later in the game, it can be advantageous to get expert training in Bow BEFORE taking the Dudley quest if Bow Mastery is desired, or simply if the player wishes to get the Bow of Ecclesiastes early |
gambliing quest walkthrough | Skill mastery quest. Gambling mastery. Gamble with Gurin Rockharrow. Women are refused entry to the Gentlemen's Club, but they still have a few avenues: Pick Pocket the key from the doorman Use Unlocking Cantrip to unbar the door Find out the name of the Club Owner from the doorman, getting his address from the Hall of Records, and then paying him a visit Once you meet with Wendell Wellington the options branch further: Pay a bribe and sleep with him for a special invitation Pick Pocket the invite Kill him and his bodyguard and loot his corpse for the invite With 8 points (2 ranks) of melee, you can threaten him for it With 4 points (1 rank) of persuasion and a Reaction Modifier of 81 you can sweet talk him for it Using this invitation will allow a lady to come and go as she pleases | Skill mastery quest. Persuasion mastery. Negotiations with Caladon. Willoughsby will comment about Orator of Ashbury reputation from the quest Monument Planning. Willoughsby will remain in Caladon for the rest of the game. The City Hall dialogue will be inaccessible, making it impossible for Sebastian to appear in The Boil. If the copy of the Agreement is somehow lost, the living one can still report its content to Willoughsby. After the negotiations are completed, independently of the result, King Farad will be "Leaving immediately for Tarant" and disappear; furthermore, the quest will be botched if the King is killed. Making it mutually exclusive with Assassinate King Farad of Caladon. There is a cut outcome left in the game code. If Tarant's counter was lower or equal to 1, currently an impossible result, Willoughsby would have been furious and wouldn't have given a reward, |
where is the key for big warehouse | Rid Mr. Plough's Warehouses of Rats. Talk to Simon Plough at the warehouse entrance and ask about his problem. Visit the smaller warehouse to the left first and kill the rats inside. You will also find a key in one of the barrels. Use the key to enter the bigger warehouse and kill everything inside. Return to Simon to finish the quest. | Caladon Thieves Underground. Adam Maxwell. Steal the book "Divinations and Magicks For The Adept Wizard" The book is found in a locked case in the library of the Misk Residence. The front room is guarded by the butler at night, and also by Mrs. Misk by day. Steal the Necklace of Queen Kna Sea The necklace is found in a locked safe in the Caladon Museum. The museum has no other visitors, but it is guarded by several mechanical arachnids. |
MultipleNegativesRankingLoss with these parameters:
1{
2 "scale": 20.0,
3 "similarity_fct": "cos_sim",
4 "gather_across_devices": false,
5 "directions": [
6 "query_to_doc"
7 ],
8 "partition_mode": "joint",
9 "hardness_mode": null,
10 "hardness_strength": 0.0
11}eval_strategy: stepsper_device_train_batch_size: 16per_device_eval_batch_size: 16gradient_accumulation_steps: 4learning_rate: 1e-05weight_decay: 0.01num_train_epochs: 1lr_scheduler_type: cosinewarmup_steps: 0.1do_predict: Falseeval_strategy: stepsprediction_loss_only: Trueper_device_train_batch_size: 16per_device_eval_batch_size: 16gradient_accumulation_steps: 4eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 1e-05weight_decay: 0.01adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 1max_steps: -1lr_scheduler_type: cosinelr_scheduler_kwargs: Nonewarmup_ratio: Nonewarmup_steps: 0.1log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Trueenable_jit_checkpoint: Falsesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseuse_cpu: Falseseed: 42data_seed: Nonebf16: Falsefp16: Falsebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: -1ddp_backend: Nonedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonedisable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}parallelism_config: Nonedeepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torch_fusedoptim_args: Nonegroup_by_length: Falselength_column_name: lengthproject: huggingfacetrackio_space_id: trackioddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Truepush_to_hub: Falseresume_from_checkpoint: Nonehub_model_id: Nonehub_strategy: every_savehub_private_repo: Nonehub_always_push: Falsehub_revision: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_for_metrics: []eval_do_concat_batches: Trueauto_find_batch_size: Falsefull_determinism: Falseddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneinclude_num_input_tokens_seen: noneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseliger_kernel_config: Noneeval_use_gather_object: Falseaverage_tokens_across_devices: Trueuse_cache: Falseprompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}| Epoch | Step | Training Loss | arcanum-test_cosine_ndcg@10 |
|---|---|---|---|
| 0.7018 | 10 | 0.8921 | 0.8700 |
| 1.0 | 15 | - | 0.8729 |
1@inproceedings{reimers-2019-sentence-bert,
2 title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
3 author = "Reimers, Nils and Gurevych, Iryna",
4 booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
5 month = "11",
6 year = "2019",
7 publisher = "Association for Computational Linguistics",
8 url = "https://arxiv.org/abs/1908.10084",
9}1@misc{oord2019representationlearningcontrastivepredictive,
2 title={Representation Learning with Contrastive Predictive Coding},
3 author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
4 year={2019},
5 eprint={1807.03748},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG},
8 url={https://arxiv.org/abs/1807.03748},
9}