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-base-retriever")
5# Run inference
6sentences = [
7 'whiskey pickup tarant',
8 "The Boil When chatting with Caleb Malloy in his pub, he will explain the geography of The Boil and how the gangs (or Clans) operate. If the player is unwilling to commit to joining one of the gangs, then Caleb can offer them some neutral work This is to retrieve a scheduled whiskey delivery that has been getting waylaid of late by one of the gangs Caleb's delivery boy is stalled on Garillon Bridge, so the party needs to go there to make the pickup Garillon Bridge The player can find Caleb's boy (actually Dwarf) on the bridge between The Boil and Tarant The party will get jumped by a rival gang as they approach. This may happen before or after actually getting the whiskey. Regardless of order, dispatch the gang and take possession of the whiskey The Boil Return to the pub and give Caleb the Whiskey He will give you his thanks, and a reward of 500 gp and 3100 exp",
9 "Gladys in Dernholm will tell you that she wants a ring that used to belong to her son. Speak with Archibald by the dock and ask him about the ring. He is unwilling to hand it over to you. Talk to his son Bernard (just outside the house-on the docks), he will tell you its some sort of game between the two. Glady sends someone looking for the ring every so often. The ring belongs to Gladys son, who gave it to Bernard sister. Hints to a possible romantic connection between the two. Option 1: Pickpocket the ring from Archibald. Tell Glady he gave it to you. Then you'll receive 800 experience and some alignment. Option 2: Kill Archibald and Bernard for the ring, Gladys will be very upset with you. No reward. Option 3: Use Persuasion (at least 1+ point in skill) and talk to Bernard and Archibald to hand over the ring. Go back to Archibald and tell him you think Gladys is attracted to him, and he'll give you the ring. Then when you return it to Gladys you'll receive 1600 experience and a boost to your alignment.",
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.5063, 0.2837],
19# [0.5063, 1.0000, 0.4145],
20# [0.2837, 0.4145, 1.0000]])arcanum-testInformationRetrievalEvaluator| Metric | Value |
|---|---|
| cosine_accuracy@1 | 0.6884 |
| cosine_accuracy@3 | 0.8333 |
| cosine_accuracy@5 | 0.8768 |
| cosine_accuracy@10 | 0.9348 |
| cosine_precision@1 | 0.6884 |
| cosine_precision@3 | 0.2778 |
| cosine_precision@5 | 0.1754 |
| cosine_precision@10 | 0.0935 |
| cosine_recall@1 | 0.6884 |
| cosine_recall@3 | 0.8333 |
| cosine_recall@5 | 0.8768 |
| cosine_recall@10 | 0.9348 |
| cosine_ndcg@10 | 0.8099 |
| cosine_mrr@10 | 0.7701 |
| cosine_map@100 | 0.7735 |
anchor and positive| anchor | positive | |
|---|---|---|
| type | string | string |
| details |
|
|
| anchor | positive |
|---|---|
gnome and ring quest | So, you've got this ring you got from a gnome, and you want to find out about it. The first person to ask would be the gnome standing a bit to the northeast of the town well. He will ask you about the crash if you talk to him, and will be especially interested in the ring if you tell him about it. This little bastard is obviously not to be trusted, so don't give him the ring. He'll attack you for it later, but he's a wussy little gnome so you have nothing to fear. The next person to ask about the ring is Ristezze of Ristezze's Imported Goods, right next to the blacksmith. Ask him all about the ring. He will tell you everything, EXCEPT for where P. Schuyler & Sons, the store that originally sold it, is located. There's a couple of ways you can get this info from him: Trade him Bessie Toone’s boot (found in Bessie Toone’s mine) or the camera found on the body of Isaac Zapruder (crash site) for it. In the full game, I suggest you hang on to the camera, as it might help later on. A charism... |
sorcerous beast amulet | From talking with the guard outside the isle of despair fort, you will learn that there is a sorcerous beast that has been threatening the locals. The guard will give you an amulet to dispose of it. Follow the shoreline until you find footprints and follow them back to its lair. The amulet increases you healing power with respect to poison but causes people to have a negative reaction to you. |
Find Liam Cameron | 1 - Starting Point2 - Liam's WorkshopThere are two things to loot inside: the chest at the foot of the bed (for a magickal trap and a scroll of disperse magick) and the dresser beside the bed (for Liam Cameron's Journal). The journal tells of a portal that has been releasing strange creatures into the area, and Liam's attempt to destroy it. Hang onto the journal so you can return it to Mrs. Cameron.3 - PathFollow the path away from Liam's Workshop. You'll have to fight some void creatures along the way, but eventually you'll stumble upon Liam's body. You'll find another magickal trap if you loot it. So obviously Liam didn't close the portal.West of Liam's body you'll find the portal. If you had an easy time with the void creatures along the path, then you might want to hang around the portal for a while killing void creatures (the portal will keep producing them).When you want to destroy the portal, there are two ways to do it. If you have a technological aptitude then you should use t... |
GISTEmbedLoss with these parameters:
1{
2 "guide": "SentenceTransformer('BAAI/bge-m3')",
3 "temperature": 0.01,
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: 4per_device_eval_batch_size: 4gradient_accumulation_steps: 4warmup_steps: 0.1fp16: Truebatch_sampler: no_duplicatesdo_predict: Falseeval_strategy: stepsprediction_loss_only: Trueper_device_train_batch_size: 4per_device_eval_batch_size: 4gradient_accumulation_steps: 4eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 5e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 3max_steps: -1lr_scheduler_type: linearlr_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: Truebf16_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.2899 | 10 | 0.2124 | - |
| 0.5797 | 20 | 0.2401 | - |
| 0.8696 | 30 | 0.3161 | - |
| 1.1449 | 40 | 0.1497 | - |
| 1.4348 | 50 | 0.0967 | - |
| 1.7246 | 60 | 0.1864 | - |
| 2.0 | 70 | 0.1121 | - |
| 2.2899 | 80 | 0.0535 | - |
| 2.5797 | 90 | 0.0365 | - |
| 2.8696 | 100 | 0.0068 | 0.8099 |
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}