Views
No views yet
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-v2")
5# Run inference
6sentences = [
7 'dernholm marry lady druella task guide',
8 "Adkin Chambers and Sir Garrick Stout. Melee Mastery only. This path is for players who only desire Melee Mastery. However they may still obtain Dodge Mastery later (see path 3) Seek out Sir Garrick Stout in Dernholm Accept his quest to Find Lady Druella with an offer of marriage and return her to Dernholm The offer comes with a bribe of a potion to restore the sight of the blinded Adkin Chambers Go to the Gyr Dolours' lair which Stout marked on your map Rescue Lady Druella without her being killed You can convince Druella to return if you tell her (lie or the truth) that you will kill Stout as soon as he provides the Potion Return to Dernholm and present Druella to Stout Stout will then give Druella the Potion; and your reward is Master Training and 8,500 xp",
9 "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",
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.5645, 0.3405],
19# [0.5645, 1.0000, 0.3979],
20# [0.3405, 0.3979, 1.0000]])arcanum-testInformationRetrievalEvaluator| Metric | Value |
|---|---|
| cosine_accuracy@1 | 0.7544 |
| cosine_accuracy@3 | 0.9167 |
| cosine_accuracy@5 | 0.9737 |
| cosine_accuracy@10 | 0.9868 |
| cosine_precision@1 | 0.7544 |
| cosine_precision@3 | 0.3056 |
| cosine_precision@5 | 0.1947 |
| cosine_precision@10 | 0.0987 |
| cosine_recall@1 | 0.7544 |
| cosine_recall@3 | 0.9167 |
| cosine_recall@5 | 0.9737 |
| cosine_recall@10 | 0.9868 |
| cosine_ndcg@10 | 0.8783 |
| cosine_mrr@10 | 0.8424 |
| cosine_map@100 | 0.8433 |
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).... | The Main Quest. Getting Information at P. Schuyler and Sons. P. Schuyler and Sons is at 44 Devonshire Way. Inside you find James Kingford who fobs you off. To continue, you can: Kill him, quick and messy Pick pocket his key Convince him that you belong to the Tarant Authorities and he needs to cooperate (which can lead to his death) You can then use it to go down the trapdoor in the back room. This leads to a room full of zombies and some random treasure. Once the zombies are dispatched, you can go down the next trapdoor. This leads to a tunnel with even more zombies and traps. Go down the next trapdoor. Here you will find a dwarven tomb. You will find the Schuylers here. To get the information you require you can Kill them all, find they key and open the wood chest Use your pick pocket skill to get the key Come to an agreement with them to get the information (this will annoy Magnus) Use you pick locks skill to open the wood chest. In the end, you find that the ring belongs to Gilbert... |
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. | Find Vegard's Family Heirloom. Receive the quest from Vegard MoltenFlow. Go down into The Dredge. You will eventually come across a room to the right side of a tunnel. The heirloom is in an unlocked chest inside, but the door leading inside is locked. You can either... Navigate through the dark parts of the Dredge further ahead and find the key to the door lying on the ground. Destroy the door or pick its lock. Return the heirloom to Vegard to receive your rewards. |
GISTEmbedLoss with these parameters:
1{
2 "guide": "SentenceTransformer('BAAI/bge-m3')",
3 "temperature": 0.07,
4 "margin_strategy": "absolute",
5 "margin": 0.0,
6 "contrast_anchors": true,
7 "contrast_positives": true,
8 "gather_across_devices": false
9}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.1batch_sampler: no_duplicatesdo_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: no_duplicatesmulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}| Epoch | Step | Training Loss | arcanum-test_cosine_ndcg@10 |
|---|---|---|---|
| 0.7018 | 10 | 1.6453 | 0.8751 |
| 1.0 | 15 | - | 0.8783 |
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{solatorio2024gistembed,
2 title={GISTEmbed: Guided In-sample Selection of Training Negatives for Text Embedding Fine-tuning},
3 author={Aivin V. Solatorio},
4 year={2024},
5 eprint={2402.16829},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG}
8}