Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infer.py无非正常推理 #1

Open
evanweiguohua opened this issue Aug 4, 2023 · 1 comment
Open

infer.py无非正常推理 #1

evanweiguohua opened this issue Aug 4, 2023 · 1 comment

Comments

@evanweiguohua
Copy link

UserWarning: You have modified the pretrained model configuration to control generation. This is a deprecated strategy to control generation and will be removed soon, in a future version. Please use a generation configuration file (see https://huggingface.co/docs/transformers/main_classes/text_generation )
warnings.warn(
input 请提供三个管理时间的建议。
output

官方示例:
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("/home/dev/model/internlm-chat-7b-8k", trust_remote_code=True)

model = AutoModelForCausalLM.from_pretrained("/home/dev/model/internlm-chat-7b-8k", trust_remote_code=True).cuda()
model = model.eval()
response, history = model.chat(tokenizer, "请提供三个管理时间的建议。", history=[])
print(response)

  1. 制定优先级:将任务按照紧急程度和重要性排序,然后逐一完成。2. 时间分配:合理分配时间,根据任务的重要性和紧急程度,合理分配时间,避免过度压缩时间导致效率低下。3. 时间规划:制定长期和短期计划,合理规划时间,避免时间浪费,提高效率。
@ssbuild
Copy link
Owner

ssbuild commented Aug 4, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants