A powerful python project for hypergraph simulation, focusing on knowledge reasoning and question-answering over diverse datasets like HotpotQA, MuSiQue, ConTRoL, and ECON.
This project uses Pixi for environment and task management.
# Build for HotpotQA
pixi run -e hypergraph build --rebuild --data_path /path/to/dataset --task hotpotqa
# Build for MuSiQue
pixi run -e hypergraph build --rebuild --data_path /path/to/dataset --task musique# Run Hyper Simulation
pixi run -e simulation hyper_simulation --data_path /path/to/dataset --task <task_name>- Run Baseline (e.g., Contradoc):
pixi run -e simulation rag_no_retrival --data_path /path/to/dataset --output_path data/baseline/contradoc --method contradoc --task musique
- SpaCy Debugging:
pixi run -e hypergraph display --steps 1
The project includes a comprehensive scalability analysis across multiple datasets:
- ECON: Most efficient (≤15.5s total for 100 instances).
- HotpotQA & MuSiQue: Execution times scale linearly with parameter
band are heavily influenced bysigma. - Delta Parameter: Minimal impact on overall execution time (~1-2% variance).
For detailed analysis, refer to Scalability.md.
To run time benchmarks, execute sh scripts/run/time_benchmark.sh.
For offline environments, set the following environment variables before running:
export TRANSFORMERS_OFFLINE="1"
export HF_DATASETS_OFFLINE="1"
# Example run with local models
pixi run -e simulation remote --task docnli --dataset-path data/nli/docnli_50.jsonl --source-root data/debug/docnli/sample50 --max-workers 8