yosefw commited on
Commit
22b5317
·
verified ·
1 Parent(s): 61d43f7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -3
README.md CHANGED
@@ -37,15 +37,14 @@ from sentence_transformers import SparseEncoder
37
  from splade_index import SPLADE
38
 
39
  # Download the SPLADE model that was used to create the index from the HuggingFace Hub
40
- model_id = "the-splade-model-id" # Enter the splade model id
41
  model = SparseEncoder(model_id)
42
 
43
  # Set your huggingface token if repo is private
44
- token = os.environ["HF_TOKEN"]
45
  repo_id = "yosefw/msmarco_1M_splade_index"
46
 
47
  # Load a SPLADE index from the Hugging Face model hub
48
- retriever = SPLADE.load_from_hub(repo_id, model=model, token=token)
49
  ```
50
 
51
  ## Stats
 
37
  from splade_index import SPLADE
38
 
39
  # Download the SPLADE model that was used to create the index from the HuggingFace Hub
40
+ model_id = "naver/splade-v3-distilbert" # Enter the splade model id
41
  model = SparseEncoder(model_id)
42
 
43
  # Set your huggingface token if repo is private
 
44
  repo_id = "yosefw/msmarco_1M_splade_index"
45
 
46
  # Load a SPLADE index from the Hugging Face model hub
47
+ retriever = SPLADE.load_from_hub(repo_id, model=model)
48
  ```
49
 
50
  ## Stats