huggingface / huggingface-llama-recipes

531 stars 59 forks source link

Llama2-7b output text has irrelevant \n # characters for QA #83

Open DeekshithaDPrakash opened 1 week ago

DeekshithaDPrakash commented 1 week ago

I finetuned llama2-ko-7b with LORA for Answering Questions based on the Context.

My training data was jsonl file with multiple texts:

Model was trained for 20 epochs and I am trying to inference on triton server

I am facing output text issue!⬇️

The output always generates [\n\n\n or ### or Input] after the first sentence.

Q: How can I prevent this issue during inference?