This README is a depot for manual validation, as much of it requires root and is not automated.
Before copy-pasting the commands below, set the repository root once:
export INFOTHEORY_REPO=/path/to/infotheoryThe tuner, at least for passive compression, outputs a raw CompressionBackend JSON Object. By the library, you can use parse_compression_backend_json directly on this output.
You can compress with the CompressionBackend object like this:
infotheory compress /input.bin /output.bin --compression-backend-json /path/to/compression_backend.jsoncd "$INFOTHEORY_REPO"
sudo ./scripts/delegate_tuner_cgroup_v2.sh setup theo infotheory-tunerStrict non-MC-AIXI smoke:
cd "$INFOTHEORY_REPO"
sudo --preserve-env=PATH ./scripts/delegate_tuner_cgroup_v2.sh run-in-session theo infotheory-tuner -- \
env INFOTHEORY_TUNER_EVAL_CGROUP_PARENT=/sys/fs/cgroup/infotheory-tuner/evals \
cargo run -p infotheory --no-default-features --features 'tuner cli backend-ctw' -- \
tune examples/tuner/strict-smoke-spec.json \
--rss-mode hybrid_strict_max \
--evaluator-cgroup-parent /sys/fs/cgroup/infotheory-tuner/evals \
--max-evaluations 1Strict MC-AIXI smoke:
cd "$INFOTHEORY_REPO"
sudo --preserve-env=PATH ./scripts/delegate_tuner_cgroup_v2.sh run-in-session theo infotheory-tuner -- \
env INFOTHEORY_TUNER_EVAL_CGROUP_PARENT=/sys/fs/cgroup/infotheory-tuner/evals \
cargo run -p infotheory --no-default-features --features 'tuner cli backend-ctw' -- \
tune examples/tuner/strict-smoke-mc-aixi-spec.json \
--exact-reward-encoding-certificate examples/tuner/strict-smoke-mc-aixi-reward-cert.json \
--rss-mode hybrid_strict_max \
--evaluator-cgroup-parent /sys/fs/cgroup/infotheory-tuner/evals \
--max-evaluations 1Annealed simple TSV:
cd "$INFOTHEORY_REPO"
sudo --preserve-env=PATH ./scripts/delegate_tuner_cgroup_v2.sh run-in-session theo infotheory-tuner -- \
env INFOTHEORY_TUNER_EVAL_CGROUP_PARENT=/sys/fs/cgroup/infotheory-tuner/evals \
cargo run -p infotheory --no-default-features --features 'tuner cli backend-ctw' -- \
tune examples/tuner/strict-annealed-simple-tsv-spec.json \
--rss-mode hybrid_strict_max \
--evaluator-cgroup-parent /sys/fs/cgroup/infotheory-tuner/evals \
--max-evaluations 1Annealed advanced neural-mixture TSV:
cd "$INFOTHEORY_REPO"
sudo --preserve-env=PATH ./scripts/delegate_tuner_cgroup_v2.sh run-in-session theo infotheory-tuner -- \
env INFOTHEORY_TUNER_EVAL_CGROUP_PARENT=/sys/fs/cgroup/infotheory-tuner/evals \
cargo run -p infotheory --no-default-features --features 'tuner cli backend-ctw backend-mixture' -- \
tune examples/tuner/strict-annealed-advanced-neural-mixture-tsv-spec.json \
--rss-mode hybrid_strict_max \
--evaluator-cgroup-parent /sys/fs/cgroup/infotheory-tuner/evals \
--max-evaluations 1MC-AIXI advanced neural-mixture TSV:
cd "$INFOTHEORY_REPO"
sudo --preserve-env=PATH ./scripts/delegate_tuner_cgroup_v2.sh run-in-session theo infotheory-tuner -- \
env INFOTHEORY_TUNER_EVAL_CGROUP_PARENT=/sys/fs/cgroup/infotheory-tuner/evals \
cargo run -p infotheory --no-default-features --features 'tuner cli backend-ctw backend-mixture' -- \
tune examples/tuner/strict-mcaixi-advanced-neural-mixture-tsv-spec.json \
--exact-reward-encoding-certificate examples/tuner/strict-mcaixi-advanced-neural-mixture-tsv-exact-reward-cert-hybrid-strict-max.json \
--rss-mode hybrid_strict_max \
--evaluator-cgroup-parent /sys/fs/cgroup/infotheory-tuner/evals \
--max-evaluations 1Walkthrough:
Script:
Run default strict comparison (subject = git show HEAD:README.md):
cd "$INFOTHEORY_REPO"
sudo --preserve-env=PATH ./scripts/delegate_tuner_cgroup_v2.sh run-in-session theo infotheory-tuner -- \
env INFOTHEORY_TUNER_EVAL_CGROUP_PARENT=/sys/fs/cgroup/infotheory-tuner/evals \
./scripts/benchmark_tuner_two_json_modes.shRun strict comparison on explicit subject file:
cd "$INFOTHEORY_REPO"
sudo --preserve-env=PATH ./scripts/delegate_tuner_cgroup_v2.sh run-in-session theo infotheory-tuner -- \
env INFOTHEORY_TUNER_EVAL_CGROUP_PARENT=/sys/fs/cgroup/infotheory-tuner/evals \
./scripts/benchmark_tuner_two_json_modes.sh /path/to/input.bin 2 1Strict MC-AIXI smoke cert:
cd "$INFOTHEORY_REPO"
sudo --preserve-env=PATH ./scripts/delegate_tuner_cgroup_v2.sh run-in-session theo infotheory-tuner -- \
env INFOTHEORY_TUNER_EVAL_CGROUP_PARENT=/sys/fs/cgroup/infotheory-tuner/evals \
cargo run -p infotheory --no-default-features --features 'tuner cli backend-ctw' -- \
tune examples/tuner/strict-smoke-mc-aixi-spec.json \
--rss-mode hybrid_strict_max \
--evaluator-cgroup-parent /sys/fs/cgroup/infotheory-tuner/evals \
--emit-exact-reward-encoding-certificate examples/tuner/strict-smoke-mc-aixi-reward-cert.jsonStrict MC-AIXI advanced TSV cert:
cd "$INFOTHEORY_REPO"
sudo --preserve-env=PATH ./scripts/delegate_tuner_cgroup_v2.sh run-in-session theo infotheory-tuner -- \
env INFOTHEORY_TUNER_EVAL_CGROUP_PARENT=/sys/fs/cgroup/infotheory-tuner/evals \
cargo run -p infotheory --no-default-features --features 'tuner cli backend-ctw backend-mixture' -- \
tune examples/tuner/strict-mcaixi-advanced-neural-mixture-tsv-spec.json \
--rss-mode hybrid_strict_max \
--evaluator-cgroup-parent /sys/fs/cgroup/infotheory-tuner/evals \
--emit-exact-reward-encoding-certificate examples/tuner/strict-mcaixi-advanced-neural-mixture-tsv-exact-reward-cert-hybrid-strict-max.json