deepspeedai / deepspeedai/DeepSpeedExamples
Questing about why we need to add a space before prompt in stage3?
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 6.8k
- Forks
- 1.1k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 1
Description
# The prompt should be in the format of: " Human: " + actual_prompt_sentence + " Assistant:"
def get_prompt(self, sample):
if sample['prompt'] is not None:
return " " + sample['prompt']
return None
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the stage3 implementation of get_prompt and inspect how its returned value is combined with the Human and Assistant markers. Trace the prompt construction and document the reason for the leading space, if one is established; done means the formatting behavior and rationale are clear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100