lm-sys / lm-sys/FastChat

Modifying the answer format (### Human: xxx , ### Assistant: xxx)

Open
#1,050 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

I've been using Vicuna for Question-Answering.

I'm using the py-bindings (llama-cpp-python) and LangChain.

My prompt template is:

template = """Use the following pieces of context to answer the question at the end. Use three sentences maximum. 
{context}
Question: {question}
Answer: Think step by step """

I'm initializing the model:

llm = LlamaCpp(
                model_path="/<path>/vicuna_13B/ggml-vicuna-13b-4bit.bin",
                callback_manager=callback_manager,
                verbose=True,
                n_threads=6,
                n_ctx=2048,
                use_mlock=True)

I notice it will answer questions in a rhetorical style with ### Human: and ### Assistant: in the answer:

### Human: xxx? 
### Assistant: xxx

Have others seen this and / or should I be using an alternative prompt?

(Note: this question also exists here.)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported prompt template and LlamaCpp initialization, then compare the observed Vicuna output with the expected answer format. The issue provides no repository files or tests; done would require identifying whether the prompt or model configuration causes the extra Human and Assistant markers and documenting a reproducible resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.