Comments (3)
并且控制台报错:
`
load model...
load model end.
D:\Development-Projects\Python-Projects\ShareAI\deploy\web_streamlit_for_instruct.py:80: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn( # pylint: disable=W4902
--- Logging error ---
Traceback (most recent call last):
File "D:\Soft\Python3\Lib\logging_init_.py", line 1110, in emit
msg = self.format(record)
^^^^^^^^^^^^^^^^^^^
File "D:\Soft\Python3\Lib\logging_init_.py", line 953, in format
return fmt.format(record)
^^^^^^^^^^^^^^^^^^
File "D:\Soft\Python3\Lib\logging_init_.py", line 687, in format
record.message = record.getMessage()
^^^^^^^^^^^^^^^^^^^
File "D:\Soft\Python3\Lib\logging_init_.py", line 377, in getMessage
msg = msg % self.args
~~~~^~~~~~~~~~~
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\Soft\Python3\Lib\threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
File "D:\Soft\Python3\Lib\threading.py", line 1045, in _bootstrap_inner
self.run()
File "D:\Soft\Python3\Lib\threading.py", line 982, in run
self._target(*self._args, **self._kwargs)
File "D:\Development-Projects\Python-Projects\ShareAI.venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 307, in _run_script_thread
self._run_script(request.rerun_data)
File "D:\Development-Projects\Python-Projects\ShareAI.venv\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 600, in _run_script
exec(code, module.dict)
File "D:\Development-Projects\Python-Projects\ShareAI\deploy\web_streamlit_for_instruct.py", line 314, in
main(model_name_or_path, adapter_name_or_path)
File "D:\Development-Projects\Python-Projects\ShareAI\deploy\web_streamlit_for_instruct.py", line 288, in main
for cur_response in generate_interactive(
File "D:\Development-Projects\Python-Projects\ShareAI.venv\Lib\site-packages\torch\utils_contextlib.py", line 35, in generator_context
response = gen.send(None)
File "D:\Development-Projects\Python-Projects\ShareAI\deploy\web_streamlit_for_instruct.py", line 80, in generate_interactive
logger.warn( # pylint: disable=W4902
Message: "Both 'max_new_tokens' (=660) and 'max_length'(=862) seem to have been set. 'max_new_tokens' will take precedence. Please refer to the documentation for more information. (https://huggingface.co/docs/transformers/main/en/main_classes/text_generation)"
Arguments: (<class 'UserWarning'>,)
`
from llama3-chinese-chat.
可能是显卡性能有点低,可以试试用llama.cpp配合cpu多线程跑的方案
from llama3-chinese-chat.
我的也慢,原生的8b很快,控制台报错我把启动脚本里面的deploy\web_streamlit_for_v1.py这个文件81行改了,就好了: logger.warning( # pylint: disable=W4902
f"Both 'max_new_tokens' (={generation_config.max_new_tokens}) "
f"and 'max_length'(={generation_config.max_length}) seem to "
"have been set. 'max_new_tokens' will take precedence. "
'Please refer to the documentation for more information. '
'(https://huggingface.co/docs/transformers/main/'
'en/main_classes/text_generation)'
)
from llama3-chinese-chat.
Related Issues (20)
- llama3-8x8b-MoE-Base/Instruct 初始权重和模型文件已发布 HOT 1
- 感觉不太行,输出像是一堆乱码? HOT 5
- DPO训练问题 HOT 6
- 问了几个弱智吧的问题,感觉白微调了 HOT 2
- DPO问题 HOT 3
- Yi-1.5-9B-chat能出个16k上下文的吗?
- 您好,看你的发布的项目挺厉害的,我有一个疑惑的地方希望能帮我解答一下,我微调了一个llama3我该如果去测评他呢? HOT 1
- Llama3-Chinese_v2版本回答很奇怪 HOT 2
- 请问有没有针对情感分析任务的模型? HOT 3
- 你这个训完,中文效果还略低于 llama3-instruct ? HOT 2
- 你好,想问一下,怎么把你提供的语言模型,和一些视觉模型例如CLIP ViT-L/14,自己合并成多模态的大模型,请问有这方面的教程吗 HOT 1
- Llama3-Chinese-instruct-DPO-beta0.5模型推理结果出现大量重复生成的现象 HOT 3
- 您好,我如何检验模型的上下文长度呢 HOT 2
- 你好,请问在哪才能获得你30B版本的模型? HOT 2
- Infer result with line number is incorrect HOT 1
- 您好,想请教一下微调成本。 HOT 3
- 你好,大佬,弱弱的问一下,繁体中文的训练也是一样的吗 HOT 1
- 关于生成速度 HOT 5
- 怎么才能有联网功能呢 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llama3-chinese-chat.