From e666c63938e5870965c5ebce2bff865b5fd85b5a Mon Sep 17 00:00:00 2001 From: Xin Liu Date: Fri, 7 Feb 2025 20:28:24 +0800 Subject: [PATCH] chore: improve the format of ubatch fields added to `config.json` Signed-off-by: Xin Liu --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 435d17b..515e323 100644 --- a/install.sh +++ b/install.sh @@ -387,28 +387,28 @@ if [ "$upgrade" -eq 1 ]; then if ! grep -q '"chat_batch_size":' $gaianet_base_dir/config.json; then # Prepend the field to the beginning of the JSON object sed_in_place '2i\ - "chat_batch_size": "16", + "chat_batch_size": "16", ' "$gaianet_base_dir/config.json" fi if ! grep -q '"chat_ubatch_size":' $gaianet_base_dir/config.json; then # Prepend the field to the beginning of the JSON object sed_in_place '2i\ - "chat_ubatch_size": "16", + "chat_ubatch_size": "16", ' "$gaianet_base_dir/config.json" fi if ! grep -q '"embedding_batch_size":' $gaianet_base_dir/config.json; then # Prepend the field to the beginning of the JSON object sed_in_place '2i\ - "embedding_batch_size": "512", + "embedding_batch_size": "512", ' "$gaianet_base_dir/config.json" fi if ! grep -q '"embedding_ubatch_size":' $gaianet_base_dir/config.json; then # Prepend the field to the beginning of the JSON object sed_in_place '2i\ - "embedding_ubatch_size": "512", + "embedding_ubatch_size": "512", ' "$gaianet_base_dir/config.json" fi