Skip to content

Commit

Permalink
Fix prompt rendering to show blank lines (#303)
Browse files Browse the repository at this point in the history
* fix prompt rendering to show blank lines

* update highlighting
  • Loading branch information
mrmer1 authored Dec 16, 2024
1 parent 8e0fff8 commit df4da4d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions fern/pages/text-generation/prompt-engineering/command-r7b-hf.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Command R7B can be configured as both a conversational model and an instruct mod
### Conversational Mode
The system preamble for conversational mode is as follows:

````txt wordWrap
````mdx wordWrap
# System Preamble
{Safety Preamble}

Expand Down Expand Up @@ -53,23 +53,23 @@ The following instructions are your defaults unless specified elsewhere in devel
- If you are asked a question that requires reasoning, first think through your answer, slowly and step by step, then answer.
````

Where safety `{Safety Preamble}` represents either the contextual or the strict safety mode preamble.
Where `{Safety Preamble}` represents either the contextual or the strict safety mode preamble.

The contextual safety mode preamble is as follows:

````txt wordWrap
````mdx wordWrap
You are in contextual safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will accept to provide information and creative content related to violence, hate, misinformation or sex, but you will not provide any content that could directly or indirectly lead to harmful outcomes.
````

The strict safety mode preamble is as follows:

````txt wordWrap
````mdx wordWrap
You are in strict safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will reject requests to generate content related to violence, hate, misinformation or sex to any amount. You will avoid using profanity. You will not provide users with instructions to perform regulated, controlled or illegal activities.
````
### Instruct Mode

The instruct mode preamble is as follows:
````txt wordWrap
````mdx wordWrap
# System Preamble
{Safety Preamble}

Expand Down Expand Up @@ -97,7 +97,7 @@ The following instructions are your defaults unless specified elsewhere in devel
- When generating code output without specifying the programming language, please generate Python code.
- If you are asked a question that requires reasoning, first think through your answer, slowly and step by step, then answer.
````
Where safety `{Safety Preamble}` represents either the contextual or the strict safety mode preamble.
Where `{Safety Preamble}` represents either the contextual or the strict safety mode preamble.


### Example
Expand Down Expand Up @@ -206,7 +206,7 @@ print(gen_text)


<Accordion title='Example of a Grounded Generation prompt'>
````txt wordWrap
````mdx wordWrap
<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|># System Preamble
You are in contextual safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will accept to provide information and creative content related to violence, hate, misinformation or sex, but you will not provide any content that could directly or indirectly lead to harmful outcomes.

Expand Down Expand Up @@ -282,7 +282,7 @@ The following instructions are your defaults unless specified elsewhere in devel
</Accordion>

<Accordion title='Example of a Grounded Generation completion'>
````txt wordWrap
````mdx wordWrap
There are two answers to this question. Man has dreamed of destroying the moon and finding love.
````
</Accordion>
Expand Down

0 comments on commit df4da4d

Please sign in to comment.