From 35e4963e34b9d8771de8ceeacebccb0f61adaf7a Mon Sep 17 00:00:00 2001 From: David Galindo <35235550+dagacha@users.noreply.github.com> Date: Wed, 1 Nov 2023 15:04:12 +0000 Subject: [PATCH 1/3] run_service.sh with best mech tools --- run_service.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/run_service.sh b/run_service.sh index 1fd897e3..099bb485 100755 --- a/run_service.sh +++ b/run_service.sh @@ -177,11 +177,7 @@ get_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" > /dev/null - 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" > /dev/null - echo '{}' | sudo tee "$PWD/../$store/utilized_tools.json" > /dev/null -} + # Function to add a volume to a service in a Docker Compose file add_volume_to_service() { @@ -773,6 +769,7 @@ export BET_AMOUNT_PER_THRESHOLD_090=80000000000000000 export BET_AMOUNT_PER_THRESHOLD_100=100000000000000000 export BET_THRESHOLD=5000000000000000 export PROMPT_TEMPLATE="Please take over the role of a Data Scientist to evaluate the given question. With the given question \"@{question}\" and the \`yes\` option represented by \`@{yes}\` and the \`no\` option represented by \`@{no}\`, what are the respective probabilities of \`p_yes\` and \`p_no\` occurring?" +export IRRELEVANT_TOOLS='["openai-text-davinci-002", "openai-text-davinci-003", "openai-gpt-3.5-turbo", "openai-gpt-4", "stabilityai-stable-diffusion-v1-5", "stabilityai-stable-diffusion-xl-beta-v2-2-2", "stabilityai-stable-diffusion-512-v2-1", "stabilityai-stable-diffusion-768-v2-1", "deepmind-optimization-strong", "deepmind-optimization", "claude-prediction-offline", "prediction-offline", "prediction-offline-sme", "claude-prediction-online"]' service_dir="trader_service" build_dir="abci_build" @@ -816,7 +813,9 @@ poetry run autonomy deploy build --n $n_agents -ltm cd .. -warm_start +#Uncomment line below if warm_start() is present +#warm_start + add_volume_to_service "$PWD/trader_service/abci_build/docker-compose.yaml" "trader_abci_0" "/data" "$PWD/../$store/" # Run the deployment From ea17badc36eeeadef17790e537f8579269f486da Mon Sep 17 00:00:00 2001 From: David Minarsch Date: Wed, 1 Nov 2023 16:11:31 +0000 Subject: [PATCH 2/3] chore: add staking command to readme --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 99bc4f28..6f979b35 100644 --- a/README.md +++ b/README.md @@ -18,13 +18,22 @@ Ensure your machine satisfies the requirements: ## Run the script -Clone this repository locally and execute: +Clone this repository locally and + +- either execute (no staking): ```bash chmod +x run_service.sh ./run_service.sh ``` +- or execute (with staking): + +```bash +chmod +x run_service.sh +./run_service.sh --with-staking +``` + Once the command has completed, i.e. the service is running, you can see the live logs with: ```bash From 7e1615df3840225d114ca03792329b77102088c7 Mon Sep 17 00:00:00 2001 From: David Galindo <35235550+dagacha@users.noreply.github.com> Date: Wed, 1 Nov 2023 16:25:53 +0000 Subject: [PATCH 3/3] warm start back in run_service.sh --- run_service.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/run_service.sh b/run_service.sh index 099bb485..f6f8bf47 100755 --- a/run_service.sh +++ b/run_service.sh @@ -177,7 +177,11 @@ get_private_key() { } # Function to warm start the policy - +warm_start() { + echo '["prediction-online", "prediction-online-sme", "prediction-online-summarized-info", "prediction-sentence-embedding-bold", "prediction-sentence-embedding-conservative"]' | sudo tee "$PWD/../$store/available_tools_store.json" > /dev/null + echo '{"counts": [1,1,1,1,1], "eps": 0.1, "rewards": [0.0,0.0,0.0,0.0,0.0]}' | sudo tee "$PWD/../$store/policy_store.json" > /dev/null + echo '{}' | sudo tee "$PWD/../$store/utilized_tools.json" > /dev/null +} # Function to add a volume to a service in a Docker Compose file add_volume_to_service() { @@ -813,8 +817,7 @@ poetry run autonomy deploy build --n $n_agents -ltm cd .. -#Uncomment line below if warm_start() is present -#warm_start +warm_start add_volume_to_service "$PWD/trader_service/abci_build/docker-compose.yaml" "trader_abci_0" "/data" "$PWD/../$store/"