-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for Llama 3.1 (#91)
- Loading branch information
Showing
12 changed files
with
790 additions
and
688 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#!/bin/sh | ||
cd llama.cpp | ||
make server | ||
make llama-server | ||
cd .. | ||
|
||
export LLAMA_N_CTX=32000 | ||
poetry run python -m uvicorn skynet.main:app --reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,16 @@ | ||
action_items_conversation_prompt = """ | ||
## Instructions | ||
You will be provided a text transcript of a conversation which may or may not contain some action items that need to be taken by the conversation participants. | ||
An action item is valid when a participant commits to doing something in the future. | ||
Each action item should be on a separate line. | ||
If there is at least one action item, start your response with "Action_items:". | ||
If nobody has any action items, please write "No action items." | ||
You will be provided a conversation transcript which may or may not contain some action items that need to be taken by the conversation participants. | ||
An action item can be extracted when someone commits to doing something in the future. | ||
If there are no action items, respond just with "N/A". | ||
## Transcript | ||
{text} | ||
## Response | ||
""" | ||
|
||
|
||
action_items_text_prompt = """ | ||
## Instructions | ||
You will be provided a text transcript which may or may not contain some action items that need to be taken by the conversation participants. | ||
An action item is valid when a participant commits to doing something in the future. | ||
Each action item should be on a separate line. | ||
If there is at least one action item, start your response with "Action_items:". | ||
If nobody has any action items, please write "No action items." | ||
An action item can be extracted when someone commits to doing something in the future. | ||
If there are no action items, respond just with "N/A". | ||
## Transcript | ||
{text} | ||
## Response | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,11 @@ | ||
summary_conversation_prompt = """ | ||
## Instructions | ||
Provide a summary of the given conversation, following the instructions | ||
The summary should be just plain text. | ||
The only formatting allowed is adding a new line between main ideas. | ||
Do not add any other formatting, such as bullet points, numbering, or asterisks. | ||
Start your response with "Summary:". | ||
## Transcript | ||
Summarize the following conversation. Start your response with "Response:". | ||
You should not use any formatting like bullet points, numbering, or asterisks. | ||
{text} | ||
## Response | ||
""" | ||
|
||
summary_text_prompt = """ | ||
## Instructions | ||
Provide a summary of the given transcript, following the instructions | ||
The summary should be just plain text. | ||
The only formatting allowed is adding a new line between main ideas. | ||
Do not add any other formatting, such as bullet points, numbering, or asterisks. | ||
Start your response with "Summary:". | ||
## Transcript | ||
Summarize the following text. Start your response with "Response:". | ||
You should not use any formatting like bullet points, numbering, or asterisks. | ||
{text} | ||
## Response | ||
""" |