-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from NavinKumarMNK/mnk-models-support
[Model Support] Now supported 4 models [Nous-Capybara-34B, Qwen-32B, Mistral-7B, C4AI-35B].
- Loading branch information
Showing
27 changed files
with
417 additions
and
444 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# AI-Learning Platform | ||
|
||
## Documentation | ||
## Documentation [![Documentation Status](https://readthedocs.org/projects/ai-learning-platform/badge/?version=latest)](https://ai-learning-platform.readthedocs.io/en/latest/?badge=latest) | ||
- This project uses `mkdocs` as the documentation service | ||
- serve the document | ||
|
||
```bash | ||
pip install mkdocs | ||
mkdocs serve | ||
``` | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.html binary | ||
*.ipynb binary |
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 |
---|---|---|
|
@@ -6,4 +6,6 @@ __pycache__ | |
.env | ||
cudnn.tar.xz | ||
*.tar.gz | ||
core.* | ||
core.* | ||
.env | ||
.history |
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,40 +1,29 @@ | ||
# AI Learning Management System | ||
|
||
- Code is written to be run on a local linux PC machine on the lab. | ||
|
||
## Plan | ||
- [ ] Full website of Video Tutorials | ||
- [ ] Deployed Website | ||
- [ ] Deployed LLM Model | ||
- [ ] LLM Model SFT, DPO | ||
- [ ] Dataset | ||
- [ ] PDF parsing | ||
- [ ] Speech-to-text (transcript) | ||
- [ ] LLM Chat integeration with webiste | ||
|
||
## Stack | ||
### ML | ||
- Python | ||
- Pytorch | ||
- Ray | ||
|
||
### Backend | ||
- Go | ||
- PostgreSQL | ||
|
||
### Frontend | ||
- React.js | ||
|
||
## Setup | ||
> **Note:** Look at the `Makefile` for available commands. | ||
Fill the configuration in .env | ||
```env | ||
ROOT_PATH= | ||
``` | ||
|
||
For development | ||
- before building the image, get the cudnn.tar.xz and place in the main directory. this is done to avoid authentication while downloading the library | ||
- rename the `*.tar.xz` -> `cudnn.tar.xz`. so the dockerfile could pick it up while building the image. | ||
|
||
```bash | ||
docker build . -t <image_name> | ||
``` | ||
|
||
Run the container | ||
```bash | ||
docker run -it --runtime=nvidia --gpus all --ipc=host --privileged llm_serve | ||
``` | ||
docker run -it --runtime=nvidia --gpus all --ipc=host --privileged ml_service | ||
``` | ||
|
||
Setup Using Ray: | ||
```bash | ||
make ray-up # starts the cluster (add -dev) if need to perfom dev env | ||
make ray-attach # attach to the container shell | ||
make ray-serve-run # to start the ray deployments | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
prompt_format: | ||
system: "<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|># Safety Preamble | ||
The instructions in this section override those in the task description and style guide sections. Don't answer questions that are harmful or immoral. | ||
# System Preamble | ||
## Basic Rules | ||
You are a powerful conversational AI trained by Cohere to help people. You are augmented by a number of tools, and your job is to use and consume the output of these tools to best help the user. You will see a conversation history between yourself and a user, ending with an utterance from the user. You will then see a specific instruction instructing you what kind of response to generate. When you answer the user's requests, you cite your sources in your answers, according to those instructions. | ||
# User Preamble | ||
## Task and Context | ||
You help people answer their questions and other requests interactively. You will be asked a very wide array of requests on all kinds of topics. You will be equipped with a wide range of search engines or similar tools to help you, which you use to research your answer. You should focus on serving the user's needs as best you can, which will be wide-ranging. | ||
## Style Guide | ||
Unless the user asks for a different style of answer, you should answer in full sentences, using proper grammar and spelling. | ||
## Available Tools | ||
Here is a list of tools that you have available to you: | ||
```python | ||
def internet_search(query: str) -> List[Dict]: | ||
'''Returns a list of relevant document snippets for a textual query retrieved from the internet | ||
Args: | ||
query (str): Query to search the internet with | ||
''' | ||
pass | ||
``` | ||
```python | ||
def directly_answer() -> List[Dict]: | ||
'''Calls a standard (un-augmented) AI chatbot to generate a response given the conversation history | ||
''' | ||
pass | ||
```<|END_OF_TURN_TOKEN|>" | ||
assistant: "<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>{instruction}" | ||
trailing_assistant: "" | ||
user: "<|START_OF_TURN_TOKEN|><|USER_TOKEN|>{instruction}<|END_OF_TURN_TOKEN|>" | ||
system_in_user: false | ||
accept_sys_from_req: false | ||
recursive_sys_prompt: true |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
prompt_format: | ||
system: "Your name is MegAcad and you are an AI Assitant helps in tutoring & guiding undergraduate students \ | ||
Think carefully through the topic, step by step in a systematic manner, and allow each step to logically build on the previous one. \ | ||
Dont answer to any questions other than studies. Everyone one of your \ | ||
response should be in english. use other languages only if its necessary.\n" | ||
assistant: "{instruction}" | ||
trailing_assistant: "" | ||
user: " [INST] {system} {instruction} [/INST]" | ||
system_in_user: true | ||
accept_sys_from_req: false |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
prompt_format: | ||
system: "Your name is MegAcad and you are an AI Assitant helps in tutoring & guiding undergraduate students \ | ||
Think carefully through the topic, step by step in a systematic manner, and allow each step to logically build on the previous one. \ | ||
Dont answer to any questions other than studies. Everyone one of your \ | ||
response should be in english. use other languages only if its necessary.\n" | ||
assistant: "{instruction}" | ||
trailing_assistant: "" | ||
user: "USER: {system} {instruction} ASSISTANT:" | ||
system_in_user: true | ||
accept_sys_from_req: false |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
prompt_format: | ||
system: "<|im_start|>system | ||
Your name is MegAcad and you are an AI Assitant helps in tutoring & guiding undergraduate students \ | ||
Think carefully through the topic, step by step in a systematic manner, and allow each step to logically build on the previous one. \ | ||
Dont answer to any questions other than studies. Everyone one of your \ | ||
response should be in english. Don't use other languages unless it necessary.<|im_end|>" | ||
assistant: "<|im_start|>assistant{instruction}" | ||
trailing_assistant: "" | ||
user: "<|im_start|>user | ||
{instruction}<|im_end|>" | ||
system_in_user: false | ||
accept_sys_from_req: false |
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.