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
File size: 1,664 Bytes
4a8c0a7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | {
"best_global_step": null,
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 0.918133129303749,
"eval_steps": 500,
"global_step": 1500,
"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": false
},
"attributes": {}
}
},
"total_flos": 0.0,
"train_batch_size": 16,
"trial_name": null,
"trial_params": null
}
|