Instructions to use Waqf-AI/arabic-splade-efficient with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Waqf-AI/arabic-splade-efficient with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Waqf-AI/arabic-splade-efficient") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 1.0, | |
| "eval_steps": 500, | |
| "global_step": 1634, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "base_loss": 7.996, | |
| "document_regularizer_loss": 0.0003, | |
| "epoch": 0.306044376434583, | |
| "grad_norm": 0.008376441895961761, | |
| "learning_rate": 1.3892288861689107e-05, | |
| "loss": 7.99669580078125, | |
| "query_regularizer_loss": 0.0004, | |
| "step": 500 | |
| }, | |
| { | |
| "base_loss": 0.0149, | |
| "document_regularizer_loss": 0.0007, | |
| "epoch": 0.612088752869166, | |
| "grad_norm": 0.10282868891954422, | |
| "learning_rate": 7.77233782129743e-06, | |
| "loss": 0.016533720016479493, | |
| "query_regularizer_loss": 0.0009, | |
| "step": 1000 | |
| }, | |
| { | |
| "base_loss": 0.0096, | |
| "document_regularizer_loss": 0.0005, | |
| "epoch": 0.918133129303749, | |
| "grad_norm": 0.007446900941431522, | |
| "learning_rate": 1.6523867809057528e-06, | |
| "loss": 0.010761536598205567, | |
| "query_regularizer_loss": 0.0007, | |
| "step": 1500 | |
| } | |
| ], | |
| "logging_steps": 500, | |
| "max_steps": 1634, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 1, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": true, | |
| "should_training_stop": true | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 0.0, | |
| "train_batch_size": 16, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |