From 82ea93ef3d964450e4ea9b2fb0caa002aad6b8f8 Mon Sep 17 00:00:00 2001 From: josc146 Date: Sat, 20 May 2023 17:07:27 +0800 Subject: [PATCH] update --- backend-python/requirements.txt | Bin 0 -> 152 bytes backend-python/requirements_versions.txt | Bin 0 -> 260 bytes frontend/src/utils/index.tsx | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 backend-python/requirements.txt create mode 100644 backend-python/requirements_versions.txt diff --git a/backend-python/requirements.txt b/backend-python/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..c241a89d61f6cd942f0ea8255d42a05a1ac36779 GIT binary patch literal 152 zcmXZUTMB?M3`EiUEw~gHB|eLyrB=nwtCJ{&l1xwMxic$?hLMs&)5*l)^Gwac;BPfS tvx#2mM%EpbS+dIqDeL*nCecy-E-`D%I-UE-MeE(!|5-}BW1NDCAu2@e0673V%TMtIeYGWKZz$DCvL1+se5r} zz38sZ)5`4+ else params = commonStore.getCurrentModelConfig().modelParameters; let strategy = ''; strategy += (params.device === 'CPU' ? 'cpu' : 'cuda') + ' '; - strategy += (params.precision === 'fp16' ? 'fp16' : params.precision === 'int8' ? 'fp16i8' : 'fp32'); + strategy += params.device === 'CPU' ? 'fp32' : (params.precision === 'fp16' ? 'fp16' : params.precision === 'int8' ? 'fp16i8' : 'fp32'); if (params.storedLayers < params.maxStoredLayers) strategy += ` *${params.storedLayers}+`; if (params.enableHighPrecisionForLastLayer)