yzong12138 commited on
Commit
aff456e
1 Parent(s): 4bb2bdc
Files changed (5) hide show
  1. README.md +27 -0
  2. checkpoint/info.json +1 -0
  3. checkpoint/model.pth +3 -0
  4. config.json +1 -0
  5. definition.json +1 -0
README.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: xpmir
3
+ ---
4
+ # Runs an experiment
5
+
6
+ None
7
+
8
+ ## Using the model)
9
+ The model can be loaded with [experimaestro IR](https://experimaestro-ir.readthedocs.io/en/latest/)
10
+
11
+ ```py
12
+ from xpmir.models import AutoModel
13
+
14
+ # Model that can be re-used in experiments
15
+ model = AutoModel.load_from_hf_hub("xpmir/SPLADE_DistilMSE")
16
+
17
+ # Use this if you want to actually use the model
18
+ model = AutoModel.load_from_hf_hub("xpmir/SPLADE_DistilMSE", as_instance=True)
19
+ model.initialize(None)
20
+ model.rsv("walgreens store sales average", "The average Walgreens salary ranges from approximately $15,000 per year for Customer Service Associate / Cashier to $179,900 per year for District Manager...")
21
+ ```
22
+
23
+ ## Results
24
+ | Dataset | AP | P@20 | RR | RR@10 | nDCG | nDCG@10 | nDCG@20 |
25
+ |----| ---|------|------|------|------|------|------|
26
+ | trec2019 | 0.5102 | 0.7360 | 0.9612 | 0.9612 | 0.7407 | 0.7300 | 0.7097 |
27
+ | msmarco_dev | 0.3623 | 0.0384 | 0.3673 | 0.3560 | 0.4870 | 0.4207 | 0.4451 |
checkpoint/info.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"epoch": 976, "steps": 124928}
checkpoint/model.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9eedbde37eb03a90b6c2919ecd8eea058765da23e441ee17e5b7a1fa93dea393
3
+ size 268063957
config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {}
definition.json ADDED
@@ -0,0 +1 @@
 
 
1
+ [{"id": 139993107703040, "module": "xpmir.text.huggingface", "type": "TransformerVocab", "identifier": "1b34882d3bb2bdecb562df9dbc0611309178933028292b272c8d2b6121e5f6b2", "typename": "xpmir.text.huggingface.TransformerVocab", "ignored": [], "fields": {"model_id": "distilbert-base-uncased", "trainable": true, "layer": 0, "dropout": 0.0}}, {"id": 139993107702992, "module": "xpmir.neural.splade", "type": "MaxAggregation", "identifier": "6d85ac05decb4f139354ac3f79990a2afdb8ced21c8861f2dd5c720484514f48", "typename": "xpmir.neural.splade.MaxAggregation", "ignored": [], "fields": {}}, {"id": 139993107703472, "module": "xpmir.neural.splade", "type": "SpladeTextEncoder", "identifier": "e54501ae9b19387204445bec69bc5a860d9e68f1e44d75733fe66b4e02418098", "typename": "xpmir.neural.splade.SpladeTextEncoder", "ignored": [], "fields": {"encoder": {"type": "python", "value": 139993107703040}, "aggregation": {"type": "python", "value": 139993107702992}, "maxlen": 200}}, {"id": 139993107704720, "module": "xpmir.neural.splade", "type": "SpladeTextEncoder", "identifier": "1e5b132f4b528e408796f70295156b3ad0d6c41f669f2b43a5a1e3ab5ac7906e", "typename": "xpmir.neural.splade.SpladeTextEncoder", "ignored": [], "fields": {"encoder": {"type": "python", "value": 139993107703040}, "aggregation": {"type": "python", "value": 139993107702992}, "maxlen": 30}}, {"id": 139993107853856, "module": "xpmir.neural.dual", "type": "DotDense", "identifier": "f4bacc4feb44bae72cbe080cad5b588a32de094a89fd4524520842e342a1a48d", "fields": {"checkpoint": {"type": "path.serialized", "value": "checkpoint", "is_folder": true}, "encoder": {"type": "python", "value": 139993107703472}, "query_encoder": {"type": "python", "value": 139993107704720}}}]