add web-rwkv-converter (Safetensors Convert no longer depends on Python)

This commit is contained in:
josc146
2023-12-07 23:26:39 +08:00
parent 1c683087f4
commit 5ce84edc3d
8 changed files with 16 additions and 30 deletions

View File

@@ -273,7 +273,7 @@ const Configs: FC = observer(() => {
}} /> :
<ToolTipButton text={t('Convert To Safe Tensors Format')}
desc=""
onClick={() => convertToSt(navigate, selectedConfig)} />
onClick={() => convertToSt(selectedConfig)} />
}
<Labeled label={t('Strategy')} content={
<Dropdown style={{ minWidth: 0 }} className="grow" value={t(selectedConfig.modelParameters.device)!}

View File

@@ -474,7 +474,8 @@ const LoraFinetune: FC = observer(() => {
'models/' + loraParams.baseModel, 'lora-models/' + loraParams.loraLoad,
outputPath).then(async () => {
if (!await FileExists(outputPath)) {
toast(t('Failed to merge model') + ' - ' + await GetPyError(), { type: 'error' });
if (commonStore.platform === 'windows' || commonStore.platform === 'linux')
toast(t('Failed to merge model') + ' - ' + await GetPyError(), { type: 'error' });
} else {
toast(t('Merge model successfully'), { type: 'success' });
}