diff --git a/run_service.sh b/run_service.sh index 8cf86472..fe803c12 100755 --- a/run_service.sh +++ b/run_service.sh @@ -129,6 +129,13 @@ get_private_key() { echo -n "$private_key" } +# Function to warm start the policy +warm_start() { + echo '["claude-prediction-offline", "claude-prediction-online", "deepmind-optimization", "deepmind-optimization-strong", "prediction-offline", "prediction-offline-sme", "prediction-online", "prediction-online-sme"]' >| sudo tee "$PWD/../$store/available_tools_store.json" + echo '{"counts": [23, 16, 54, 52, 20, 113, 33, 54], "eps": 0.1, "rewards": [0.21330030417382723, -0.06394516434480157, 0.5042296458897277, 0.38925697131774417, -0.2978133327512751, 1.055336834629253, -0.5935249657470777, 0.507192767958923]}' >| sudo tee "$PWD/../$store/policy_store.json" + echo '{}' >| sudo tee ".trader_runner/utilized_tools.json" +} + # Function to add a volume to a service in a Docker Compose file add_volume_to_service() { local compose_file="$1" @@ -688,7 +695,8 @@ poetry run autonomy deploy build --n $n_agents -ltm cd .. -add_volume_to_service "$PWD/trader_service/abci_build/docker-compose.yaml" "trader_abci_0" "/data" "$PWD/../.trader_runner/" +warm_start +add_volume_to_service "$PWD/trader_service/abci_build/docker-compose.yaml" "trader_abci_0" "/data" "$PWD/../$store/" # Run the deployment poetry run autonomy deploy run --build-dir $directory --detach