Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.41 KB

File metadata and controls

60 lines (41 loc) · 1.41 KB

Starmie

The overall architecture of Starmie

Folder Structure

.
├─── pretrain.py             # Pretrain
├─── index.py                # Index the columns of tables
├─── query.py                # Get the union results                         
├─── hnsw_search.py     
└─── starmie.md

Training Steps

Step1: Check your environment

You need to properly install nvidia driver first. To use GPU in a docker container You also need to install nvidia-docker2 (Installation Guide). Then, Please check your CUDA version via nvidia-smi

Step2: Pretrain

Here are some parameters:

-- task [Choose task, str] [opendata, opendata_large, webtable, webtable_large]

python pretrain.py --task webtable

Step3: Indexing

Here are some parameters:

--benchmark [Choose benchmark, str] [opendata, opendata_large, webtable, webtable_large]

python index.py --benchmark webtable

Step4: Querying

--benchmark [Choose benchmark, str] [opendata, opendata_large, webtable, webtable_large]

--K [Choose top-k ,int] [5~60]

--threshold [Choose threshold, float] [0.5~1.0]

--N [Choose N, int] [4, 10, 16, 25, 50]

python query.py --benchmark webtable --K 5 --N 10 --threshold 0.7