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

[BUG/Help] <title>6b-chat基模型输出bug #647

Open
1 task
HaomingX opened this issue Dec 19, 2023 · 0 comments
Open
1 task

[BUG/Help] <title>6b-chat基模型输出bug #647

HaomingX opened this issue Dec 19, 2023 · 0 comments

Comments

@HaomingX
Copy link

HaomingX commented Dec 19, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

基模型推理,任何问题都会在回答问题之后输出训练数据
image
温度低时输出完数据还会一直重复某些句子
image

Expected Behavior

No response

Steps To Reproduce

  1. 按照huggingface上的配置
  2. 导入和参数设置
    tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
    model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, device='cuda')

response, _history = model.chat(tokenizer, request, history=history, max_length= 512, num_beams=1,
do_sample=True, top_p=0.8, temperature=0.1)

Environment

- OS:Ubuntu 20.04
- Python:3.10
- Transformers:4.33.2
- PyTorch:
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :True

Anything else?

No response

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

1 participant