Sentence Similarity
sentence-transformers
Safetensors
qwen2
feature-extraction
Generated from Trainer
dataset_size:99000
loss:MultipleNegativesSymmetricRankingLoss
custom_code
text-embeddings-inference
Instructions to use FINGU-AI/Fingu-instruct-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use FINGU-AI/Fingu-instruct-2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("FINGU-AI/Fingu-instruct-2", trust_remote_code=True) sentences = [ "Instruct: Given a web search query, retrieve relevant passages that answer the query.\nQuery: Glay", "The Theory of Good and Evil is a 1907 book about ethics by the English philosopher Hastings Rashdall, in which the author expounds a theory he calls \"ideal utilitarianism\". It has been seen as Rashdall's most important philosophical work.", "GLAY is a Japanese rock band , formed in Hakodate in 1988 . Glay primarily composes songs in the rock and pop genres , but they have also arranged songs using elements from a wide variety of genres , including punk , electronic , R&B , progressive rock , folk , reggae , gospel , and ska . Originally a visual kei band , the group slowly shifted to less dramatic attire through the years . As of 2008 , Glay had sold an estimated 51 million records ; 28 million singles and 23 million albums , making them one of the top ten best-selling artists of all time in Japan .", "Aashirwad is a 1968 Bollywood film , directed by Hrishikesh Mukherjee . The film stars Ashok Kumar and Sanjeev Kumar . The film is notable for its inclusion of a rap-like song performed by Ashok Kumar , `` Rail Gaadi '' ." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
| { | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 1.2932428063368897, | |
| "eval_steps": 500, | |
| "global_step": 1000, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 0.6466214031684449, | |
| "grad_norm": 1.7960103750228882, | |
| "learning_rate": 1.5060539027168317e-05, | |
| "loss": 0.0424, | |
| "step": 500 | |
| }, | |
| { | |
| "epoch": 0.6466214031684449, | |
| "eval_retrival_loss": 0.0060070110484957695, | |
| "eval_retrival_runtime": 2.5865, | |
| "eval_retrival_samples_per_second": 386.62, | |
| "eval_retrival_steps_per_second": 24.357, | |
| "step": 500 | |
| }, | |
| { | |
| "epoch": 1.2932428063368897, | |
| "grad_norm": 0.3418584167957306, | |
| "learning_rate": 5.030361696847706e-06, | |
| "loss": 0.0073, | |
| "step": 1000 | |
| }, | |
| { | |
| "epoch": 1.2932428063368897, | |
| "eval_retrival_loss": 0.004016744904220104, | |
| "eval_retrival_runtime": 2.5619, | |
| "eval_retrival_samples_per_second": 390.338, | |
| "eval_retrival_steps_per_second": 24.591, | |
| "step": 1000 | |
| } | |
| ], | |
| "logging_steps": 500, | |
| "max_steps": 1500, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 2, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 0.0, | |
| "train_batch_size": 8, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |