wyangw commited on
Commit
6c006eb
·
verified ·
1 Parent(s): 33c7651

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +42 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - question-answering
5
+ tags:
6
+ - xbridge
7
+ - llama
8
+ - eval-cache
9
+ ---
10
+
11
+ # XBridge Evaluation Caches (Llama-3.1-8B sender)
12
+
13
+ Precomputed evaluation caches for the [XBridge](https://github.com/WooseongYang/XBridge) repo.
14
+ Each file stores, for a fixed set of eval items per task, the sender's
15
+ (Llama-3.1-8B-Instruct) last-layer hidden states `H_S` and attention-sorted
16
+ context token IDs — the inputs the Latent Enrichment Bridge (LEB) module
17
+ queries at inference time. This is a cache of a Llama forward pass, not a
18
+ copy of the underlying QA datasets themselves.
19
+
20
+ | File | Task | Source dataset | Eval items |
21
+ |---|---|---|---|
22
+ | `countries_task_split.pt` | countries | local (`dataloader/data/countries.jsonl`) | 100 |
23
+ | `tipsheets_task_split.pt` | tipsheets | local (`dataloader/data/tipsheets.jsonl`) | 200 |
24
+ | `twowikimqa_task_split.pt` | twowikimqa | `Xnhyacinth/LongBench` (`2wikimqa`, test) | 100 |
25
+ | `multifieldqa_en_task_split.pt` | multifieldqa_en | `Xnhyacinth/LongBench` (`multifieldqa_en`, test) | 75 |
26
+ | `hotpotqa_attnselect.pt` | hotpotqa | `hotpot_qa` (`distractor`, train, seed=42 shuffle, first 200) | 200 |
27
+
28
+ ## Usage
29
+
30
+ Download into `precomputed/` at the repo root:
31
+ ```bash
32
+ huggingface-cli download wyangw/xbridge-eval-cache --repo-type dataset --local-dir precomputed
33
+ ```
34
+
35
+ Then run Option A from the [repo README](https://github.com/WooseongYang/XBridge#reproduction).
36
+
37
+ ## Regenerating from scratch
38
+
39
+ Each file can also be rebuilt from public sources using the scripts in the repo
40
+ (`scripts/precompute_task_split.py`, `scripts/precompute_tipsheets_split.py`,
41
+ `scripts/precompute_hotpotqa_eval.py`) — requires `meta-llama/Llama-3.1-8B-Instruct`
42
+ access (gated on HF) and a GPU. See the repo README for exact commands.