Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion run_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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