oobabooga / one-click-installers

Simplified installers for oobabooga/text-generation-webui.
GNU Affero General Public License v3.0
550 stars 186 forks source link

Set --xformers by default after install, for the run.cmd or windows.cmd #125

Open samfisherirl opened 1 year ago

samfisherirl commented 1 year ago

in the default directory, Ive used the bat and cmd files and worked very hard to find where to flag the server.py or webui.py.

I am having a tough time finding how to add "--xformers", or as a fall back, a session that saver that applies flags.

I have tried:

quick help would be appreciated


@rem setup installer env
call python webui.py --xformers
call python server.py 

@rem below are functions for the script   next line skips these during normal execution
goto end

:PrintBigMessage
echo. && echo.
echo *******************************************************************
for %%M in (%*) do echo * %%~M
echo *******************************************************************
echo. && echo.
exit /b

webui.py: error: unrecognized arguments: --xformers

samfisherirl commented 1 year ago

solution

add to cmd_windows.bat line 26


@rem enter commands
cd text-generation-webui
python server.py --xformers --auto-devices --rwkv-cuda-on   

:end
pause
missionfloyd commented 1 year ago

Commandline arguments go in CMD_FLAGS.txt