LaWGPT icon indicating copy to clipboard operation
LaWGPT copied to clipboard

卡在bash scripts/webui.sh

Open Re-hd opened this issue 1 year ago • 24 comments

我使用wsl执行此命令,得到以下错误: C:\Users\123456\LaWGPT>bash scripts/webui.sh scripts/webui.sh: line 2: $'\r': command not found scripts/webui.sh: line 3: $'\r': command not found scripts/webui.sh: line 5: python: command not found scripts/webui.sh: line 6: --load_8bit: command not found scripts/webui.sh: line 7: --base_model: command not found scripts/webui.sh: line 8: --lora_weights: command not found scripts/webui.sh: line 9: --prompt_template: command not found scripts/webui.sh: line 10: --server_name: command not found scripts/webui.sh: line 11: --share_gradio: command not found scripts/webui.sh: line 12: $'\r': command not found scripts/webui.sh: line 13: $'\r': command not found 因为对unix平台不熟,希望得到大佬帮助,谢谢。

Re-hd avatar Jun 01 '23 13:06 Re-hd

在cmd上执行的,写错了,但在已安装wsl的情况下

Re-hd avatar Jun 01 '23 13:06 Re-hd

请问解决了吗?

guo-zh avatar Jun 03 '23 06:06 guo-zh

没有

Re-hd avatar Jun 03 '23 09:06 Re-hd

没有

我现在直接运行webui.py,可以运行,但是输出的要么是乱码,要么是重复回答,webui.py里只修改bash和lora的路径

guo-zh avatar Jun 03 '23 09:06 guo-zh

webui.py怎么直接运行

Re-hd avatar Jun 05 '23 04:06 Re-hd

C:\Users\123456\LaWGPT>python webui.py Traceback (most recent call last): File "C:\Users\Xiaoshi High School\LaWGPT\webui.py", line 4, in import fire ModuleNotFoundError: No module named 'fire' 我运行webui.py出现问题

Re-hd avatar Jun 05 '23 04:06 Re-hd

webui.py怎么直接运行

命令行python webui.py呀 webui.sh也只是加参数的这个命令,你没有“fire”在你的环境里pip一个就好 缺什么安什么

guo-zh avatar Jun 05 '23 07:06 guo-zh

这个是Linux和Windows换行符不一样导致,Linux是\n,Windows上是\r\n。 解决方式:更改换行符为unix格式就行。先用vi打开webui.sh,在命令模式下输入: set ff=unix (注意有个冒号)

hoxiansen avatar Jun 08 '23 01:06 hoxiansen

这个是Linux和Windows换行符不一样导致,Linux是\n,Windows上是\r\n。 解决方式:更改换行符为unix格式就行。先用vi打开webui.sh,在命令模式下输入: set ff=unix (注意有个冒号)

其实这个倒没什么,用webui.py也一样,主要是我目前的输出,都是这样 lawgpt输出结果

guo-zh avatar Jun 08 '23 01:06 guo-zh

是不是算力不够?

Re-hd avatar Jun 08 '23 11:06 Re-hd

是不是算力不够?

不应该 我是单张A800(80G)

guo-zh avatar Jun 09 '23 08:06 guo-zh

请问webui.py这个文件怎么生成的

mossee avatar Jun 09 '23 17:06 mossee

请问webui.py这个文件怎么生成的

仓库里有

guo-zh avatar Jun 10 '23 02:06 guo-zh

请问webui.py这个文件怎么生成的

仓库里有

谢谢,找到了。但是运行 python webui.py 报ImportError: cannot import name 'GenerationConfig' from 'transformers' (D:\ProgramData\anaconda3\lib\site-packages\transformers_init_.py) 已经安装过transformers 了

mossee avatar Jun 10 '23 07:06 mossee

(lawgpt) C:\Users\123456\LaWGPT>pip install -r requirements.txt Collecting git+https://github.com/huggingface/peft.git@e536616888d51b453ed354a6f1e243fecb02ea08 (from -r requirements.tx t (line 8)) Cloning https://github.com/huggingface/peft.git (to revision e536616888d51b453ed354a6f1e243fecb02ea08) to c:\users\123456\appdata\local\temp\pip-req-build-mifewk6q Running command git clone --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\123456\AppData\Local\Temp\pip-req-build-mifewk6q' fatal: unable to access 'https://github.com/huggingface/peft.git/': Failed to connect to github.com port 443 after 210 59 ms: Couldn't connect to server error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\123456\AppData Local\Temp\pip-req-build-mifewk6q' did not run successfully. │ exit code: 128 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\123456\AppData\Lo cal\Temp\pip-req-build-mifewk6q' did not run successfully. │ exit code: 128 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. 这个怎么解决,谢谢。

Re-hd avatar Jun 14 '23 08:06 Re-hd

(lawgpt) C:\Users\123456\LaWGPT>pip install -r requirements.txt Collecting git+https://github.com/huggingface/peft.git@e536616888d51b453ed354a6f1e243fecb02ea08 (from -r requirements.tx t (line 8)) Cloning https://github.com/huggingface/peft.git (to revision e536616888d51b453ed354a6f1e243fecb02ea08) to c:\users\123456\appdata\local\temp\pip-req-build-mifewk6q Running command git clone --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\123456\AppData\Local\Temp\pip-req-build-mifewk6q' fatal: unable to access 'https://github.com/huggingface/peft.git/': Failed to connect to github.com port 443 after 210 59 ms: Couldn't connect to server error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\123456\AppData Local\Temp\pip-req-build-mifewk6q' did not run successfully. │ exit code: 128 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\123456\AppData\Lo cal\Temp\pip-req-build-mifewk6q' did not run successfully. │ exit code: 128 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. 这个怎么解决,谢谢。

你的reqxxxxx.txt里边都有什么

guo-zh avatar Jun 14 '23 08:06 guo-zh

就是一些model(模型)的名称啊。 accelerate appdirs bitsandbytes black black[jupyter] datasets fire git+https://github.com/huggingface/peft.git@e536616888d51b453ed354a6f1e243fecb02ea08 git+https://github.com/huggingface/transformers.git gradio sentencepiece wandb

Re-hd avatar Jun 14 '23 12:06 Re-hd

我一个个试着安装了一下,在单独安装“git+https://github.com/huggingface/peft.git@e536616888d51b453ed354a6f1e243fecb02ea08”和“git+https://github.com/huggingface/transformers.git”时遇到了相同的错误。

Re-hd avatar Jun 14 '23 12:06 Re-hd

git+https://github.com/huggingface/peft.git@e536616888d51b453ed354a6f1e243fecb02ea08 git+https://github.com/huggingface/transformers.git

我是先把两个git.........的删了装

guo-zh avatar Jun 15 '23 02:06 guo-zh

(lawgpt) C:\Users\123456\LaWGPT>pip install -r requirements.txt Collecting git+https://github.com/huggingface/peft.git@e536616888d51b453ed354a6f1e243fecb02ea08 (from -r requirements.tx t (line 8)) Cloning https://github.com/huggingface/peft.git (to revision e536616888d51b453ed354a6f1e243fecb02ea08) to c:\users\123456\appdata\local\temp\pip-req-build-mifewk6q Running command git clone --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\123456\AppData\Local\Temp\pip-req-build-mifewk6q' fatal: unable to access 'https://github.com/huggingface/peft.git/': Failed to connect to github.com port 443 after 210 59 ms: Couldn't connect to server error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\123456\AppData Local\Temp\pip-req-build-mifewk6q' did not run successfully. │ exit code: 128 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× git clone --filter=blob:none --quiet https://github.com/huggingface/peft.git 'C:\Users\123456\AppData\Lo cal\Temp\pip-req-build-mifewk6q' did not run successfully. │ exit code: 128 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. 这个怎么解决,谢谢。

把github改成kgithub

tdwaofei avatar Jun 20 '23 01:06 tdwaofei

webui.sh后闪了个黑框,然后关闭了。似乎没有启动起来的意思@hoxiansen 求大神解答

tdwaofei avatar Jun 20 '23 01:06 tdwaofei

原来大家都是遇到这个问题。

mainxx avatar Jun 21 '23 03:06 mainxx

其实这个倒没什么,用webui.py也一样,主要是我目前的输出,都是这样 lawgpt输出结果

@guo-zh 请问,这个问题解决了嘛

soultrans avatar Aug 03 '23 02:08 soultrans

这个模型应该是废了

Re-hd avatar Aug 10 '23 06:08 Re-hd