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

adding llama3 to model docs #4

Merged
merged 6 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fern/docs/pages/models/details.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ Open access models are amazing these days! Each of these models was trained by a

| Model Name | Type | Use Case | Prompt Format | Context Length | More Info |
| ---------------------------- | --------------- | ------------------------------------------------------- | ---------------------------------- | -------------- | ----------------------------------------------------------------------- |
| Meta-Llama-3-8B-Instruct | Chat | Instruction following or chat-like applications | [Llama3](prompts#llama3) | 4096 | [link](https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct) |
| Nous-Hermes-Llama2-13B | Text Generation | Generating output in response to arbitrary instructions | [Alpaca](prompts#alpaca) | 4096 | [link](https://huggingface.co/NousResearch/Nous-Hermes-Llama2-13b) |
| Hermes-2-Pro-Mistral-7B | Chat | Instruction following or chat-like applications | [ChatML](prompts#chatml) | 4096 | [link](https://huggingface.co/NousResearch/Hermes-2-Pro-Mistral-7B) |
| Neural-Chat-7B | Chat | Instruction following or chat-like applications | [Neural Chat](prompts#neural-chat) | 4096 | [link](https://huggingface.co/Intel/neural-chat-7b-v3-1) |
| Yi-34B-Chat | Chat | Instruction following in English or Chinese | [ChatML](prompts#chatml) | 2048 | [link](https://huggingface.co/01-ai/Yi-34B-Chat) |
| deepseek-coder-6.7b-instruct | Code Generation | Generating computer code or answering tech questions | [Deepseek](prompts#deepseek) | 4096 | [link](https://huggingface.co/deepseek-ai/deepseek-coder-6.7b-instruct) |
| sqlcoder-7b-2 | Code Generation | Generating SQL queries from natural language prompts | [SQLCoder](prompts#sqlcoder) | 4096 | [link](https://huggingface.co/defog/sqlcoder-7b-2) |

### Other models available

Expand Down
27 changes: 10 additions & 17 deletions fern/docs/pages/models/prompts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,6 @@ For prompts where context is injected:
<|im_start|>assistant<|im_end|>
```

## SQLCoder

(Replace the portions of the prompt below in curly braces `{...}` with the appropriate information, and do not keep the curly braces)

```
### Task
Generate a SQL query to answer [QUESTION]{user_question}[/QUESTION]

### Database Schema
The query will run on a database with the following schema:
{table_metadata_string_DDL_statements}

### Answer
Given the database schema, here is the SQL query that [QUESTION]{user_question}[/QUESTION]
[SQL]
```

## Deepseek

(Replace the portions of the prompt below in curly braces `{...}` with the appropriate information, and do not keep the curly braces)
Expand All @@ -98,3 +81,13 @@ Given the database schema, here is the SQL query that [QUESTION]{user_question}[
{context or user message}
### Response:
```

## Llama3

(Replace the portions of the prompt below in curly braces `{...}` with the appropriate information, and do not keep the curly braces)

```
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
{system prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>
{context or user message}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
```
Loading