This commit is contained in:
josc146 2023-05-20 17:07:27 +08:00
parent caf7fe08e6
commit 82ea93ef3d
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -131,7 +131,7 @@ export const getStrategy = (modelConfig: ModelConfig | undefined = undefined) =>
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)